[Help-gnutls] opencdk build error?

John Lodder jlodder at ripco.com
Mon Nov 3 20:25:19 CET 2003

I'm trying to build opencdk on Solaris 8 using gcc 3.3.2.  The build
fails when it gets to the 'tests' subdirectory, with undefined symbol
vasprintf.  Same error happens with opencdk 0.5.1 and 0.5.2;  I've
appended a snippet from building 0.5.2, below.

Any help appreciated, and apologies if this is a common FAQ,

make[2]: Leaving directory `/local/stuff/tnt/gnutls/opencdk-0.5.2/doc'
Making all in tests
make[2]: Entering directory `/local/stuff/tnt/gnutls/opencdk-0.5.2/tests'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../src -I/local/stuff/tnt/gaim/build/include  -I/local/stuff/tnt/gaim/build/include   -g -O2 -Wall -Wcast-align -Wshadow -Wstrict-prototypes -MT t-stream.o -MD -MP -MF ".deps/t-stream.Tpo" \
  -c -o t-stream.o `test -f 't-stream.c' || echo './'`t-stream.c; \
then mv -f ".deps/t-stream.Tpo" ".deps/t-stream.Po"; \
else rm -f ".deps/t-stream.Tpo"; exit 1; \
t-stream.c: In function `stream_clearsign':
t-stream.c:446: warning: `rc' might be used uninitialized in this function
t-stream.c: In function `test_keydb_routines':
t-stream.c:787: warning: char format, void arg (arg 2)
t-stream.c: At top level:
t-stream.c:424: warning: `stream_verify' defined but not used
t-stream.c:442: warning: `stream_clearsign' defined but not used
/bin/bash ../libtool --mode=link gcc  -g -O2 -Wall -Wcast-align -Wshadow -Wstrict-prototypes   -o t-stream  t-stream.o ../src/libopencdk.la -L/local/stuff/tnt/gaim/build/lib -lgcrypt -L/local/stuff/tnt/gaim/build/lib -lgpg-error -lz 
mkdir .libs
gcc -g -O2 -Wall -Wcast-align -Wshadow -Wstrict-prototypes -o .libs/t-stream t-stream.o  ../src/.libs/libopencdk.so -L/local/stuff/tnt/gaim/build/lib /local/stuff/tnt/gaim/build/lib/libgcrypt.so -lnsl -lsocket /local/stuff/tnt/gaim/build/lib/libgpg-error.so -lz -R/local/stuff/tnt/gaim/build/lib
Undefined                       first referenced
 symbol                             in file
vasprintf                           ../src/.libs/libopencdk.so
ld: fatal: Symbol referencing errors. No output written to .libs/t-stream
collect2: ld returned 1 exit status
make[2]: *** [t-stream] Error 1
make[2]: Leaving directory `/local/stuff/tnt/gnutls/opencdk-0.5.2/tests'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/local/stuff/tnt/gnutls/opencdk-0.5.2'
make: *** [all] Error 2

More information about the Gnutls-help mailing list