pkgsrc-Bugs archive

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

pkg/30960: sunpro/libtool/C++ linking broken with wrappers, duplicate "-Qoption ld" arguments



>Number:         30960
>Category:       pkg
>Synopsis:       sunpro/libtool/C++ linking broken with wrappers, duplicate 
>"-Qoption ld" arguments
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Aug 10 06:55:01 +0000 2005
>Originator:     grant beattie
>Release:        SunOS 5.9
>Organization:
>Environment:
System: SunOS gargoyle 5.9 Generic_117171-17 sun4u sparc SUNW,Sun-Fire-V240
Architecture: sparc
Machine: sun4u
>Description:
libtool passes the argument "-Qoption ld" to ${CXX} to pass options to
the linker when using sunpro. however, some pkgsrc infrastructure
strips rpath arguments from the command line, which results in multiple
"-Qoption ld" following each other, and since "-Qoption" is not a
valid argument for ld(1), the build bombs.

[*] /tmp/obj/multimedia/smpeg/work/.wrapper/bin/CC -G -nolib 
-hlibsmpeg-0.4.so.0 -o .libs/libsmpeg-0.4.so.0.1.3 .libs/MPEG.o 
.libs/MPEGring.o .libs/MPEGlist.o .libs/MPEGstream.o .libs/MPEGsystem.o 
.libs/MPEGfilter.o .libs/smpeg.o -Qoption ld -z -Qoption ld 
allextract,audio/.libs/libaudio.a,video/.libs/libvideo.a -Qoption ld -z 
-Qoption ld defaultextract -R/tmp/obj/multimedia/smpeg/work/.buildlink/lib 
-R/tmp/obj/multimedia/smpeg/work/.buildlink/lib -R/usr/pkg/lib 
-L/tmp/obj/multimedia/smpeg/work/.buildlink/lib 
-L/tmp/obj/multimedia/smpeg/work/.x11-buildlink/lib -lc -ldl -lXext 
/tmp/obj/multimedia/smpeg/work/.buildlink/lib/libaa-x11.so -lX11 
/tmp/obj/multimedia/smpeg/work/.buildlink/lib/libintl.so 
/tmp/obj/multimedia/smpeg/work/.buildlink/lib/libiconv.so -lsocket -lnsl 
/tmp/obj/multimedia/smpeg/work/.buildlink/lib/libSDL.so -lpthread -lposix4 -lm 
-Qoption ld -R/usr/pkg/lib -Qoption ld -R/usr/openwin/lib

<.> /tmp/obj/multimedia/smpeg/work/.sunpro/bin/CC -G -nolib -hlibsmpeg-0.4.so.0 
-o .libs/libsmpeg-0.4.so.0.1.3 .libs/MPEG.o .libs/MPEGring.o .libs/MPEGlist.o 
.libs/MPEGstream.o .libs/MPEGsystem.o .libs/MPEGfilter.o .libs/smpeg.o -Qoption 
ld -z -Qoption ld allextract,audio/.libs/libaudio.a,video/.libs/libvideo.a 
-Qoption ld -z -Qoption ld defaultextract -R/usr/pkg/lib 
-L/tmp/obj/multimedia/smpeg/work/.buildlink/lib 
-L/tmp/obj/multimedia/smpeg/work/.x11-buildlink/lib -Qoption ld -Qoption ld 
-R/usr/openwin/lib -I/tmp/obj/multimedia/smpeg/work/.buildlink/include -lc -ldl 
-lXext -laa-x11 -lX11 -lintl -liconv -lsocket -lnsl -lSDL -lpthread -lposix4 
-lm -lCstd -lCrun

as can be seen, "-Qoption ld -R/usr/pkg/lib" became "-Qoption".

>How-To-Repeat:
build multimedia/smpeg with sunpro.
>Fix:
strip the leading "-Qoption ld" (if present) as well as the rpath argument




Home | Main Index | Thread Index | Old Index