[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Compile Errors, Undefined References



Hi Daniel,

Re: the first set of errors with BerkeleyDB:
Which version of BerkeleyDB was SASL 2.1.12 compiled against? Are you
sure it was not 4.0 or 3.x? If it was compiled dynamicaly, is the old
version still there?

Re: the second set of errors (with gssapi):
OpenLDAP (or, more to the point, your compiler) can't find your
Kerberos 5 libraries. Are they on your system? If so, is the path to
them in /etc/ld.so.conf, and put into ld.so.cache with the ldconfig
command?

Mike.

>>> Daniel Bush <thunderwolf66102@yahoo.com> 04/01/03 09:25am >>>
Hello,

I am attempting to compile OpenLDAP 2.1.16 with the
following options:

--disable-cleartext --disable-rlookups --with-tls
--enable-kpasswd --with-cyrus-sasl --enable-slapd
--enable-crypt --enable-spasswd

Using BerkeleyDB 4.1 and cyrus sasl 2.1.12

./configure appears to run fine, make depend runs
without problem, but make all fails starting with this
step/error

cc -g -O2 -I../../include        -I../../include  
-I/usr/local/BerkeleyDB.4.1/include
-I/usr/local/include/sasl  
-I/usr/local/BerkeleyDB.4.1/include
-I/usr/local/include/sasl  -c -o apitest.o apitest.c
/bin/sh /root/openldap-2.1.16/libtool --mode=link cc
-static -g -O2  -L/usr/local/BerkeleyDB.4.1/lib
-L/usr/local/lib/sasl2   -o apitest apitest.o
libldap.la ../../libraries/liblber/liblber.la
../../libraries/liblutil/liblutil.a -lsasl2 -lkrb4
-ldes425 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto 
-lcrypt -lresolv -ldl
cc -g -O2 -o apitest apitest.o 
-L/usr/local/BerkeleyDB.4.1/lib -L/usr/local/lib/sasl2
./.libs/libldap.a
/root/openldap-2.1.16/libraries/liblber/.libs/liblber.a
-L/usr/local/lib -L/usr/local/ssl/lib
../../libraries/liblber/.libs/liblber.a
../../libraries/liblutil/liblutil.a
/usr/local/lib/libsasl2.a -lkrb4 -ldes425 -lkrb5
-lk5crypto -lcom_err -lssl -lcrypto -lcrypt -lresolv
-ldl
/usr/local/lib/libsasl2.a(db_berkeley.o): In function
`berkeleydb_open':
/root/cyrus-sasl-2.1.12/sasldb/db_berkeley.c:85:
undefined reference to `db_create'


continuing with a series of related errors:


/root/cyrus-sasl-2.1.12/sasldb/db_berkeley.c:102:
undefined reference to `db_strerror'
/usr/local/lib/libsasl2.a(db_berkeley.o): In function
`berkeleydb_close':
/root/cyrus-sasl-2.1.12/sasldb/db_berkeley.c:122:
undefined reference to `db_strerror'
/usr/local/lib/libsasl2.a(db_berkeley.o): In function
`_sasldb_getdata':
/root/cyrus-sasl-2.1.12/sasldb/db_berkeley.c:198:
undefined reference to `db_strerror'
/usr/local/lib/libsasl2.a(db_berkeley.o): In function
`_sasldb_putdata':
/root/cyrus-sasl-2.1.12/sasldb/db_berkeley.c:284:
undefined reference to `db_strerror'
/root/cyrus-sasl-2.1.12/sasldb/db_berkeley.c:296:
undefined reference to `db_strerror'
/usr/local/lib/libsasl2.a(gssapi.o): In function
`sasl_gss_seterror':
/root/cyrus-sasl-2.1.12/plugins/gssapi.c:169:
undefined reference to `gss_display_status'
/root/cyrus-sasl-2.1.12/plugins/gssapi.c:190:
undefined reference to `gss_release_buffer'
/root/cyrus-sasl-2.1.12/plugins/gssapi.c:209:
undefined reference to `gss_display_status'
/root/cyrus-sasl-2.1.12/plugins/gssapi.c:230:
undefined reference to `gss_release_buffer'
/usr/local/lib/libsasl2.a(gssapi.o): In function
`sasl_gss_encode':
/root/cyrus-sasl-2.1.12/plugins/gssapi.c:283:
undefined reference to `gss_wrap'
/root/cyrus-sasl-2.1.12/plugins/gssapi.c:295:
undefined reference to `gss_release_buffer'
/root/cyrus-sasl-2.1.12/plugins/gssapi.c:306:
undefined reference to `gss_release_buffer'
/root/cyrus-sasl-2.1.12/plugins/gssapi.c:322:
undefined reference to `gss_release_buffer'
/usr/local/lib/libsasl2.a(gssapi.o): In function
`gssapi_decode_once':
/root/cyrus-sasl-2.1.12/plugins/gssapi.c:419:
undefined reference to `gss_unwrap'
/root/cyrus-sasl-2.1.12/plugins/gssapi.c:430:
undefined reference to `gss_release_buffer'
/root/cyrus-sasl-2.1.12/plugins/gssapi.c:443:
undefined reference to `gss_release_buffer'
/root/cyrus-sasl-2.1.12/plugins/gssapi.c:449:
undefined reference to `gss_release_buffer'
/usr/local/lib/libsasl2.a(gssapi.o): In function
`sasl_gss_free_context_contents':
/root/cyrus-sasl-2.1.12/plugins/gssapi.c:497:
undefined reference to `gss_delete_sec_context'
/root/cyrus-sasl-2.1.12/plugins/gssapi.c:502:
undefined reference to `gss_release_name'
/root/cyrus-sasl-2.1.12/plugins/gssapi.c:507:
undefined reference to `gss_release_name'
/root/cyrus-sasl-2.1.12/plugins/gssapi.c:512:
undefined reference to `gss_release_cred'
/usr/local/lib/libsasl2.a(gssapi.o): In function
`gssapi_server_mech_step':
/root/cyrus-sasl-2.1.12/plugins/gssapi.c:630:
undefined reference to `gss_nt_service_name'
/root/cyrus-sasl-2.1.12/plugins/gssapi.c:630:
undefined reference to `gss_import_name'
/root/cyrus-sasl-2.1.12/plugins/gssapi.c:645:
undefined reference to `gss_release_cred'
/root/cyrus-sasl-2.1.12/plugins/gssapi.c:649:
undefined reference to `gss_acquire_cred'
/root/cyrus-sasl-2.1.12/plugins/gssapi.c:670:
undefined reference to `gss_accept_sec_context'
/root/cyrus-sasl-2.1.12/plugins/gssapi.c:685:
undefined reference to `gss_release_buffer'
/root/cyrus-sasl-2.1.12/plugins/gssapi.c:707:
undefined reference to `gss_release_buffer'
/root/cyrus-sasl-2.1.12/plugins/gssapi.c:730:
undefined reference to `gss_display_name'
/root/cyrus-sasl-2.1.12/plugins/gssapi.c:740:
undefined reference to `gss_release_buffer'
/root/cyrus-sasl-2.1.12/plugins/gssapi.c:742:
undefined reference to `gss_release_name'
/root/cyrus-sasl-2.1.12/plugins/gssapi.c:768:
undefined reference to `gss_import_name'
/root/cyrus-sasl-2.1.12/plugins/gssapi.c:776:
undefined reference to `gss_release_buffer'
/root/cyrus-sasl-2.1.12/plugins/gssapi.c:778:
undefined reference to `gss_release_name'
/root/cyrus-sasl-2.1.12/plugins/gssapi.c:784:
undefined reference to `gss_compare_name'
/root/cyrus-sasl-2.1.12/plugins/gssapi.c:792:
undefined reference to `gss_release_buffer'
/root/cyrus-sasl-2.1.12/plugins/gssapi.c:794:
undefined reference to `gss_release_name'
/root/cyrus-sasl-2.1.12/plugins/gssapi.c:800:
undefined reference to `gss_release_name'
/root/cyrus-sasl-2.1.12/plugins/gssapi.c:822:
undefined reference to `gss_release_buffer'
/root/cyrus-sasl-2.1.12/plugins/gssapi.c:872:
undefined reference to `gss_wrap'
/root/cyrus-sasl-2.1.12/plugins/gssapi.c:883:
undefined reference to `gss_release_buffer'
/root/cyrus-sasl-2.1.12/plugins/gssapi.c:896:
undefined reference to `gss_release_buffer'
/root/cyrus-sasl-2.1.12/plugins/gssapi.c:903:
undefined reference to `gss_release_buffer'
/root/cyrus-sasl-2.1.12/plugins/gssapi.c:918:
undefined reference to `gss_unwrap'
/root/cyrus-sasl-2.1.12/plugins/gssapi.c:953:
undefined reference to `gss_release_buffer'
/root/cyrus-sasl-2.1.12/plugins/gssapi.c:996:
undefined reference to `gss_release_buffer'
/root/cyrus-sasl-2.1.12/plugins/gssapi.c:1011:
undefined reference to `gss_release_buffer'
/usr/local/lib/libsasl2.a(gssapi.o): In function
`gssapi_client_mech_step':
/root/cyrus-sasl-2.1.12/plugins/gssapi.c:1211:
undefined reference to `gss_nt_service_name'
/root/cyrus-sasl-2.1.12/plugins/gssapi.c:1211:
undefined reference to `gss_import_name'
/root/cyrus-sasl-2.1.12/plugins/gssapi.c:1235:
undefined reference to `gss_delete_sec_context'
/root/cyrus-sasl-2.1.12/plugins/gssapi.c:1250:
undefined reference to `gss_init_sec_context'
/root/cyrus-sasl-2.1.12/plugins/gssapi.c:1267:
undefined reference to `gss_release_buffer'
/root/cyrus-sasl-2.1.12/plugins/gssapi.c:1286:
undefined reference to `gss_release_buffer'
/root/cyrus-sasl-2.1.12/plugins/gssapi.c:1290:
undefined reference to `gss_inquire_context'
/root/cyrus-sasl-2.1.12/plugins/gssapi.c:1307:
undefined reference to `gss_display_name'
/root/cyrus-sasl-2.1.12/plugins/gssapi.c:1314:
undefined reference to `gss_release_buffer'
/root/cyrus-sasl-2.1.12/plugins/gssapi.c:1334:
undefined reference to `gss_release_buffer'
/root/cyrus-sasl-2.1.12/plugins/gssapi.c:1353:
undefined reference to `gss_unwrap'
/root/cyrus-sasl-2.1.12/plugins/gssapi.c:1364:
undefined reference to `gss_release_buffer'
/root/cyrus-sasl-2.1.12/plugins/gssapi.c:1425:
undefined reference to `gss_release_buffer'
/root/cyrus-sasl-2.1.12/plugins/gssapi.c:1464:
undefined reference to `gss_wrap'
/root/cyrus-sasl-2.1.12/plugins/gssapi.c:1478:
undefined reference to `gss_release_buffer'
/root/cyrus-sasl-2.1.12/plugins/gssapi.c:1490:
undefined reference to `gss_release_buffer'
/root/cyrus-sasl-2.1.12/plugins/gssapi.c:1497:
undefined reference to `gss_release_buffer'
collect2: ld returned 1 exit status
make[2]: *** [apitest] Error 1
make[2]: Leaving directory
`/root/openldap-2.1.16/libraries/libldap'
make[1]: *** [all-common] Error 1
make[1]: Leaving directory
`/root/openldap-2.1.16/libraries'
make: *** [all-common] Error 1

suggestions appreciated



__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://platinum.yahoo.com