Subject: libgcrypt Build Failure on Solaris 8
To: None <tech-pkg@netbsd.org>
From: J. Alexander Jacocks <jjacocks@mac.com>
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:

<snip>
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/libgcrypt.la -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/libgcrypt.so -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/libgpg-error.so -lnsl /usr/pkgsrc/security/libgcrypt/work/.buildlink/lib/libintl.so -lc /usr/pkgsrc/security/libgcrypt/work/.buildlink/lib/libiconv.so -lsocket -R/usr/pkg/lib -R/usr/pkgsrc/security/libgcrypt/work/.buildlink/lib
Undefined                       first referenced
 symbol                             in file
__udiv_qrnnd                        ../src/.libs/libgcrypt.so
ld: fatal: Symbol referencing errors. No output written to .libs/prime
collect2: ld returned 1 exit status
<snip>

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.

Thanks!