Subject: gnutls build failure (and related wireshark question)
To: None <pkgsrc-users@netbsd.org>
From: Mark E. Perkins <perkinsm@bway.net>
List: pkgsrc-users
Date: 01/21/2007 09:46:07
I'm trying to build net/wireshark from HEAD on Mac OS X 10.4.8, but
security/gnutls fails (error messages at end of this message).

Any suggestions on how to fix this?

A more fundamental question, though, is why wireshark appears to depend on
both openssl **and** gnutls.  Isn't just one of them sufficient?

Thanks,
Mark

==================================================
g++ -dynamiclib -single_module  -o .libs/libgnutlsxx.13.2.2.dylib
.libs/gnutlsxx.o  -L/Volumes/NetBSD/pkgsrc/security/gnutls/work/.buildlink/lib
./.libs/libgnutls.dylib
/Volumes/NetBSD/pkgsrc/security/gnutls/work/.buildlink/lib/libtasn1.dylib
/Volumes/NetBSD/pkgsrc/security/gnutls/work/.buildlink/lib/libgcrypt.dylib
/Volumes/NetBSD/pkgsrc/security/gnutls/work/.buildlink/lib/libgpg-error.dylib
/Volumes/NetBSD/pkgsrc/security/gnutls/work/.buildlink/lib/libintl.dylib
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../..//libiconv.dylib
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../..//libc.dylib  -install_name
/Volumes/NetBSD/pkg/lib/libgnutlsxx.13.dylib -Wl,-compatibility_version -Wl,16
-Wl,-current_version -Wl,16.2
ld: Undefined symbols:
__ZN6gnutls11credentials7set_ptrEPv
/usr/bin/libtool: internal link edit command failed

[wrapper.sh] note: The real command line, after the pkgsrc wrapper, was:
/Volumes/NetBSD/pkgsrc/security/gnutls/work/.gcc/bin/g++ -dynamiclib
-single_module -o .libs/libgnutlsxx.13.2.2.dylib .libs/gnutlsxx.o
-L/Volumes/NetBSD/pkgsrc/security/gnutls/work/.buildlink/lib
./.libs/libgnutls.dylib -L/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../
-install_name /Volumes/NetBSD/pkg/lib/libgnutlsxx.13.dylib
-Wl,-compatibility_version -Wl,16 -Wl,-current_version -Wl,16.2
-I/Volumes/NetBSD/pkgsrc/security/gnutls/work/.buildlink/include  -ltasn1
-lgcrypt -lgpg-error -lintl -liconv -lc

[wrapper.sh] note: The real command line, after the pkgsrc wrapper, was:
/Volumes/NetBSD/pkg/bin/libtool --tag=CXX --mode=link g++ -I../includes/ -O2
-I/Volumes/NetBSD/pkgsrc/security/gnutls/work/.buildlink/include -no-undefined
-version-info 15:2:2
-L/Volumes/NetBSD/pkgsrc/security/gnutls/work/.buildlink/lib -o libgnutlsxx.la
-rpath /Volumes/NetBSD/pkg/lib gnutlsxx.lo libgnutls.la
gnumake[3]: *** [libgnutlsxx.la] Error 1
gnumake[2]: *** [all-recursive] Error 1
gnumake[1]: *** [all-recursive] Error 1
gnumake: *** [all] Error 2
*** Error code 2