Samba 4 on Solaris can't find /usr/local/lib/libgnutls

David Collier-Brown davecb at sun.com
Mon Jan 14 17:12:45 GMT 2008


  I was building 4, mostly to have the new smbtorture, but even
after doing a new configure, got 

froggy> gmake bin/smbtorture
Linking bin/smbtorture
Undefined                       first referenced
 symbol                             in file
gnutls_x509_crt_set_serial          bin/static/libtls.a(tlscert.o)
gnutls_x509_crt_set_ca_status       bin/static/libtls.a(tlscert.o)
gnutls_x509_crt_set_version         bin/static/libtls.a(tlscert.o)
gnutls_x509_crt_set_dn_by_oid       bin/static/libtls.a(tlscert.o)
gnutls_x509_crt_get_key_id          bin/static/libtls.a(tlscert.o)
gnutls_x509_crt_set_subject_key_id  bin/static/libtls.a(tlscert.o)
gnutls_x509_crt_set_key             bin/static/libtls.a(tlscert.o)
gnutls_x509_crt_sign                bin/static/libtls.a(tlscert.o)
gnutls_x509_crt_set_expiration_time bin/static/libtls.a(tlscert.o)
gnutls_x509_crt_set_activation_time bin/static/libtls.a(tlscert.o)
gnutls_x509_crt_set_key_purpose_oid bin/static/libtls.a(tlscert.o)
ld: fatal: Symbol referencing errors. No output written to bin/smbtorture
collect2: ld returned 1 exit status
gmake: *** [bin/smbtorture] Error 1

However, it's sitting is /usr/local/lib:

froggy> lsinterfaces  /usr/local/lib/libgnutls* | grep x509_crt_set_serial
/usr/local/lib/libgnutls.so:gnutls_x509_crt_set_serial
/usr/local/lib/libgnutls.so.13:gnutls_x509_crt_set_serial
/usr/local/lib/libgnutls.so.13.8.1:gnutls_x509_crt_set_serial

And the configure logs show us looking for and finding it:

config.log:configure:35384: checking for gnutls
config.log:configure:35525: checking gnutls/gnutls.h usability
config.log:configure:35566: checking gnutls/gnutls.h presence
config.log:configure:35629: checking for gnutls/gnutls.h
config.log:configure:35659: checking for gnutls_global_init in -lgnutls
config.log:configure:35692: gcc -o conftest    conftest.c -lgnutls    >&5
config.log:configure:35745: checking whether gnutls_x509_crt_set_version is declared
config.log:configure:35816: checking whether gnutls_x509_crt_set_subject_key_id is declared
config.log:configure:35898: checking for gnutls_datum
config.log:configure:35961: checking for gnutls_datum_t
config.log:ac_cv_have_decl_gnutls_x509_crt_set_subject_key_id=yes
config.log:ac_cv_have_decl_gnutls_x509_crt_set_version=yes
config.log:ac_cv_header_gnutls_gnutls_h=yes
config.log:ac_cv_lib_ext_gnutls=yes
config.log:ac_cv_lib_ext_gnutls_gnutls_global_init=yes
config.log:ac_cv_type_gnutls_datum=yes
config.log:ac_cv_type_gnutls_datum_t=yes

So it looks like configure is finding gnutls, 
but putting just -lgnutls in the Makefile, and never mentioning
/usr/local/lib !

This is on SunOS 5.10 Generic on a sun4u sparc, using gmake and gcc. 
Is this failing anywhere else?

--dave
-- 
David Collier-Brown            | Always do right. This will gratify
Sun Microsystems, Toronto      | some people and astonish the rest
davecb at sun.com                 |                      -- Mark Twain
(800) 555-9786 x56583 cell: (647) 833-9377 home off: (416) 223-5943 


More information about the samba-technical mailing list