Subject: pkg/32557: multimedia/libtheora Solaris10 gcc
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Gilles Dauphin <dauphin@enst.fr>
List: pkgsrc-bugs
Date: 01/17/2006 18:30:01
>Number:         32557
>Category:       pkg
>Synopsis:       multimedia/libtheora Solaris10 gcc
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 17 18:30:01 +0000 2006
>Originator:     Gilles Dauphin
>Release:        SunOS 5.10 i86pc
>Organization:
ENST 
>Environment:


System: SunOS bi.enst.fr 5.10 Generic_118844-20 i86pc


>Description:


===> Building for libtheora-1.0alpha5
/usr/pkg/bin/bmake  all-recursive
Making all in lib
/bin/ksh ../libtool --tag=CC --mode=link gcc  -g -O2 -Wall -O -I/usr/pkg/include   -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -o libtheora.la -rpath /usr/pkg/lib -version-info 2:0:2 -Wl,--version-script=Version_script libtheora_la-blockmap.lo  libtheora_la-comment.lo libtheora_la-dct.lo  libtheora_la-dct_decode.lo libtheora_la-decode.lo  libtheora_la-frarray.lo libtheora_la-frinit.lo  libtheora_la-huffman.lo libtheora_la-idct.lo  libtheora_la-mcomp.lo libtheora_la-misc_common.lo  libtheora_la-pb.lo libtheora_la-pp.lo libtheora_la-quant.lo  libtheora_la-reconstruct.lo libtheora_la-scan.lo  libtheora_la-toplevel.lo libtheora_la-dct_encode.lo  libtheora_la-encode.lo  libtheora_la-encoder_toplevel.lo -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -logg 
gcc -shared -Wl,-h -Wl,libtheora.so.0 -o .libs/libtheora.so.0.2.0  .libs/libtheora_la-blockmap.o .libs/libtheora_la-comment.o .libs/libtheora_la-dct.o .libs/libtheora_la-dct_decode.o .libs/libtheora_la-decode.o .libs/libtheora_la-frarray.o .libs/libtheora_la-frinit.o .libs/libtheora_la-huffman.o .libs/libtheora_la-idct.o .libs/libtheora_la-mcomp.o .libs/libtheora_la-misc_common.o .libs/libtheora_la-pb.o .libs/libtheora_la-pp.o .libs/libtheora_la-quant.o .libs/libtheora_la-reconstruct.o .libs/libtheora_la-scan.o .libs/libtheora_la-toplevel.o .libs/libtheora_la-dct_encode.o .libs/libtheora_la-encode.o .libs/libtheora_la-encoder_toplevel.o  -R/usr/pkgsrc/multimedia/libtheora/work/.buildlink/lib -R/usr/pkgsrc/multimedia/libtheora/work/.buildlink/lib -L/usr/pkgsrc/multimedia/libtheora/work/.buildlink/lib /usr/pkgsrc/multimedia/libtheora/work/.buildlink/lib/libogg.so -lc  -Wl,-R/usr/pkg/lib -Wl,--version-script=Version_script
/usr/ccs/bin/ld: illegal option -- version-script=Version_script
usage: ld [-6:abc:d:e:f:h:il:mo:p:rstu:z:B:CD:F:GI:L:M:N:P:Q:R:S:VY:?] file(s)
        [-64]           enforce a 64-bit link-edit
        [-a]            create an absolute file
        [-b]            do not do special PIC relocations in a.out



>How-To-Repeat:


bmake


>Fix:


in work/libtheora-1.0alpha5/configure patch 
--- configure.orig      Sat Aug 20 20:44:13 2005
+++ configure   Tue Jan 17 19:25:56 2006
@@ -19322,7 +19322,7 @@
 LDFLAGS="$LDFLAGS $ldflags_save"
 
 case "$target_os" in
-       linux* | solaris* )
+       linux* )
                SHLIB_VERSION_ARG="-Wl,--version-script=Version_script"
                ;;
        *)