pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/50865: gtexinfo has issues with XSParagraph



>Number:         50865
>Category:       pkg
>Synopsis:       gtexinfo has issues with XSParagraph
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Feb 28 10:30:00 +0000 2016
>Originator:     Richard PALO
>Release:        current
>Organization:
>Environment:
SunOS omnis 5.11 omnios-cc70d5b i86pc i386 i86pc

>Description:
building gtexinfo on current with gcc49 under SunOS 5.11 show the following in the configure log:
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I. -I./lib -I./lib -D_REENTRANT -I/opt/pbulk32/include -I/usr/include -I/opt/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DPERL_USE_SAFE_PUTENV -DVERSION=\"6.0\" -DXS_VERSION=\"6.0\" -I/opt/pbulk32/lib/perl5/5.22.0/i386-solaris-thread-multi/CORE -MT TestXS_la-TestXS.lo -MD -MP -MF .deps/TestXS_la-TestXS.Tpo -c TestXS.c  -fPIC -DPIC -o .libs/TestXS_la-TestXS.o
TestXS.xs:4:20: fatal error: EXTERN.h: No such file or directory
 #include "EXTERN.h"
                    ^
compilation terminated.
*** Error code 1

Stop.
make: stopped in /tmp/pkgsrc-pb/devel/gtexinfo/work/texinfo-6.1/tp/Texinfo/Convert/XSParagraph


This can be easily gotten over by explicitly including perls BL3
>.include "../../lang/perl5/buildlink3.mk"       # for EXTERN.h in XSParagraph

but then the error is:
libtool: link: gcc -shared  -fPIC -DPIC -Wl,-z -Wl,text -Wl,-h -Wl,TestXS.so -o .libs/TestXS.so  .libs/TestXS_la-TestXS.o   -R/opt/local/lib/perl5/5.22.0/i386-solaris-thread-multi/CORE -L/opt/local/lib/perl5/5.22.0/i386-solaris-thread-multi/CORE -lperl   
libtool: link: ar cru .libs/TestXS.a  TestXS_la-TestXS.o
libtool: link: ranlib .libs/TestXS.a
rm: TestXS.la: No such file or directory
rm: .libs/TestXS.lai: No such file or directory
libtool: link: ( cd ".libs" && /usr/bin/rm "TestXS.la" && ln -s "../TestXS.la" "TestXS.la" )
rm: TestXS.la: No such file or directory
*** Error code 2

Stop.
make: stopped in /tmp/pkgsrc/devel/gtexinfo/work/texinfo-6.1/tp/Texinfo/Convert/XSParagraph


this turns out to be a problem exhibited in the invocation of libtool
where for some reason 'RM' is undefined.  

adding then an override to RM
>ALL_ENV+=              RM="${RM} -f"

to Makefile gets over this finally, allowing the build to complete
but naturally with PLIST issues around the XSParagraph objects and
related perl module.
>How-To-Repeat:
simply build the package and *look* at the output
>Fix:
this may ultimately be, and probably is, a libtool issue, since here it seems to presume here that RM is defined with at least one option. 

simply do a `grep 'RM}r' /opt/local/bin/libtool` to see

Unfortunately libtool isn't quite up to date and I don't have spare time at the moment to try to update it again given the numerous issues encountered on SunOS with the manual update procedure seemingly related to auto* tools.



Home | Main Index | Thread Index | Old Index