Subject: pkg/25476: audio/libaudiofile link failure on Solaris 9/sparc
To: None <>
From: None <>
List: pkgsrc-bugs
Date: 05/05/2004 21:45:11
>Number:         25476
>Category:       pkg
>Synopsis:       audio/libaudiofile link failure on Solaris 9/sparc
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed May 05 21:46:00 UTC 2004
>Originator:     John D. Baker
>Release:        N/A
SunOS ss20a 5.9 Generic_112233-11 sun4m sparc SUNW,SPARCstation-20
Building audio/libaudiofile on SPARC Solaris 9 fails as follows:

/bin/ksh ../libtool --mode=link gcc -DNDEBUG -O -I/usr/pkg/include   -L/usr/pkg/gcc3/lib/gcc-lib/sparc-sun-solaris2/3.3.3 -Wl,-R/usr/pkg/gcc3/lib/gcc-lib/sparc-sun-solaris2/3.3.3 -L/usr/pkg/gcc3/lib -Wl,-R/usr/pkg/gcc3/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -o -rpath /usr/pkg/lib -version-info 0:2:0 -no-undefined  -export-symbols audiofile.exports openclose.lo setup.lo format.lo data.lo  pcm.lo error.lo byteorder.lo af_vfs.lo util.lo debug.lo aupv.lo  units.lo compression.lo aes.lo instrument.lo loop.lo marker.lo  misc.lo track.lo query.lo raw.lo aiff.lo aiffwrite.lo  extended.lo next.lo nextwrite.lo wave.lo wavewrite.lo ircam.lo  ircamwrite.lo avr.lo avrwrite.lo iff.lo iffwrite.lo nist.lo  nistwrite.lo g711.lo modules.lo modules/ -lm
/usr/ucb/echo "{ global:" > .libs/
cat audiofile.exports | /usr/pkg/bin/nbsed -e "s/\(.*\)/\1;/" >> .libs/
/usr/ucb/echo "local: *; };" >> .libs/
 gcc -shared -Wl,-M -Wl,.libs/ -Wl,-h -Wl, -o .libs/  .libs/openclose.o .libs/setup.o .libs/format.o .libs/data.o .libs/pcm.o .libs/error.o .libs/byteorder.o .libs/af_vfs.o .libs/util.o .libs/debug.o .libs/aupv.o .libs/units.o .libs/compression.o .libs/aes.o .libs/instrument.o .libs/loop.o .libs/marker.o .libs/misc.o .libs/track.o .libs/query.o .libs/raw.o .libs/aiff.o .libs/aiffwrite.o .libs/extended.o .libs/next.o .libs/nextwrite.o .libs/wave.o .libs/wavewrite.o .libs/ircam.o .libs/ircamwrite.o .libs/avr.o .libs/avrwrite.o .libs/iff.o .libs/iffwrite.o .libs/nist.o .libs/nistwrite.o .libs/g711.o .libs/modules.o -z allextract modules/.libs/libmodules.a -z defaultextract  -L/usr/pkgsrc/audio/libaudiofile/work/.buildlink/gcc3/lib/gcc-lib/sparc-sun-solaris2/3.3.3 -L/usr/pkgsrc/audio/libaudiofile/work/.buildlink/gcc3/lib -L/usr/pkgsrc/audio/libaudiofile/work/.buildlink/lib -lm -lc  -Wl,-R/usr/pkg/gcc3/lib/gcc-lib/sparc-su
 n-solaris2/3.3.3 -Wl,-R/usr/pkg/lib
ld: fatal: file .libs-L: stat failed: No such file or directory
collect2: ld returned 1 exit status
*** Error code 1

bmake: stopped in /usr/pkgsrc/audio/libaudiofile/work/audiofile-0.2.6/libaudiofile

Similar behavior was observed in the past (in multimedia/xvidcore)
when the build machinery incorrectly retained GNU 'ld' syntax for
building shared librariesinstead of using syntax appropriate for Sun/Solaris 'ld'.

On Solaris 9 system:

cd ${LOCALBASE}/audio/libaudiofile
[ time passes ]
[ observe error ]