Subject: libgcrypt Build Failure on Solaris 8
To: None <>
From: J. Alexander Jacocks <>
List: tech-pkg
Date: 04/29/2004 23:07:46
From pkgsrc-current, I encounter the following failure trying to build libgcrypt, using gcc-3.3.3 from pkgsrc:

Making all in tests
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../src   -I/usr/pkg/include -I/usr/pkg/include -O -I/usr/pkg/include -Wall -MT prime.o -MD -MP -MF ".deps/prime.Tpo"  -c -o prime.o `test -f 'prime.c' || echo './'`prime.c;  then mv -f ".deps/prime.Tpo" ".deps/prime.Po";  else rm -f ".deps/prime.Tpo"; exit 1;  fi
/bin/ksh ../libtool --mode=link gcc -I/usr/pkg/include -O -I/usr/pkg/include -Wall   -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 prime  prime.o ../src/ -lnsl -lintl -liconv -lsocket
mkdir .libs
gcc -I/usr/pkgsrc/security/libgcrypt/work/.buildlink/include -O -Wall -Wl,-R/usr/pkg/gcc3/lib/gcc-lib/sparc-sun-solaris2/3.3.3 -Wl,-R/usr/pkg/lib -o .libs/prime prime.o  ../src/.libs/ -L/usr/pkgsrc/security/libgcrypt/work/.buildlink/gcc3/lib/gcc-lib/sparc-sun-solaris2/3.3.3 -L/usr/pkgsrc/security/libgcrypt/work/.buildlink/gcc3/lib -L/usr/pkgsrc/security/libgcrypt/work/.buildlink/lib /usr/pkgsrc/security/libgcrypt/work/.buildlink/lib/ -lnsl /usr/pkgsrc/security/libgcrypt/work/.buildlink/lib/ -lc /usr/pkgsrc/security/libgcrypt/work/.buildlink/lib/ -lsocket -R/usr/pkg/lib -R/usr/pkgsrc/security/libgcrypt/work/.buildlink/lib
Undefined                       first referenced
 symbol                             in file
__udiv_qrnnd                        ../src/.libs/
ld: fatal: Symbol referencing errors. No output written to .libs/prime
collect2: ld returned 1 exit status

Anybody got a suggestion?  I've been encountering a good many failures recently, and I'm starting to suspect that something in my toolchain is bad.