[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
RE: Strange problems when trying to compile v2.2.4
> -----Original Message-----
> From: owner-openldap-software@OpenLDAP.org
> [mailto:owner-openldap-software@OpenLDAP.org]On Behalf Of Harry Ruter
> Hi everybody,
>
> i'm tryin' to install the new version 2.2.4 for
> testing purposes. I'm installing openldap versions
> since 2.0.5 and never had such problems as now ..
Your SASL build is broken; the version of libtool that Cyrus bundles is
unusable. Replace the generated Cyrus libtool script with the one generated
by OpenLDAP's configure and rebuild and re-install libsasl2.
The Cyrus version of libtool doesn't handle library dependencies correctly.
It is supposed to create a .la file that lists all of the other libraries
that a given library depends on. In this case, the libsasl2.la file should
indicate that it depends on libgssapi and libdb. The libtool script that
Cyrus bundles does many other things wrong too, so it's not just a matter of
fixing the .la file by hand. Rebuild.
> creating libldap.la
> (cd .libs && rm -f libldap.la && ln -s ../libldap.la libldap.la)
> cc -g -O2 -I../../include -I../../include
> -I/usr/local/bdb-4-2/include -I/usr/local/heimdal/include
> -I/usr/local/sasl2/include -I/usr/local/sasl2/include
> -I/usr/local/ssl/include -I/usr/local/bdb-4-2/include
> -I/usr/local/heimdal/include -I/usr/local/sasl2/include
> -I/usr/local/sasl2/include -I/usr/local/ssl/include -c -o apitest.o
> apitest.c
> /bin/sh /work/make/openldap-2.2.4/libtool --mode=link cc
> -static -g -O2
> -L/usr/local/bdb-4-2/lib -L/usr/local/heimdal/lib
> -L/usr/local/sasl2/lib/sasl2 -L/usr/local/sasl2/lib
> -L/usr/local/ssl/lib
> -lpthread -o apitest apitest.o libldap.la
> ../../libraries/liblber/liblber.la
> ../../libraries/liblutil/liblutil.a
> -lsasl2 -lssl -lcrypto -lresolv -ldl
> cc -g -O2 -o apitest apitest.o -L/usr/local/bdb-4-2/lib
> -L/usr/local/heimdal/lib -L/usr/local/sasl2/lib/sasl2
> -L/usr/local/sasl2/lib -L/usr/local/ssl/lib ./.libs/libldap.a
> /work/make/openldap-2.2.4/libraries/liblber/.libs/liblber.a
> -L/lib/security/lib ../../libraries/liblber/.libs/liblber.a
> ../../libraries/liblutil/liblutil.a
> /usr/local/sasl-2.1.17/lib/libsasl2.a -lpthread -lssl
> -lcrypto -lresolv -ldl
> /usr/local/sasl-2.1.17/lib/libsasl2.a(db_berkeley.o)(.text+0x78): In
> function `berkeleydb_open':
> /work/make/cyrus-sasl-2.1.17/sasldb/db_berkeley.c:85: undefined
> reference to `db_create'
> /usr/local/sasl-2.1.17/lib/libsasl2.a(db_berkeley.o)(.text+0xd
> 9):/work/make/cyrus-sasl-2.1.17/sasldb/db_berkeley.c:102:
> undefined reference to `db_strerror'
> /usr/local/sasl-2.1.17/lib/libsasl2.a(db_berkeley.o)(.text+0x153): In
> function `berkeleydb_close':
> /work/make/cyrus-sasl-2.1.17/sasldb/db_berkeley.c:122: undefined
> reference to `db_strerror'
> /usr/local/sasl-2.1.17/lib/libsasl2.a(db_berkeley.o)(.text+0x2e5): In
> function `_sasldb_getdata':
> /work/make/cyrus-sasl-2.1.17/sasldb/db_berkeley.c:198: undefined
> reference to `db_strerror'
> /usr/local/sasl-2.1.17/lib/libsasl2.a(db_berkeley.o)(.text+0x51c): In
> function `_sasldb_putdata':
> /work/make/cyrus-sasl-2.1.17/sasldb/db_berkeley.c:284: undefined
> reference to `db_strerror'
> /usr/local/sasl-2.1.17/lib/libsasl2.a(db_berkeley.o)(.text+0x5
> 7f):/work/make/cyrus-sasl-2.1.17/sasldb/db_berkeley.c:296:
> undefined reference to `db_strerror'
> /usr/local/sasl-2.1.17/lib/libsasl2.a(gssapi.o)(.text+0x9a):
> In function
> `sasl_gss_seterror_':
> /work/make/cyrus-sasl-2.1.17/plugins/gssapi.c:187: undefined
> reference
> to `gss_display_status'
> /usr/local/sasl-2.1.17/lib/libsasl2.a(gssapi.o)(.text+0x122):/
> work/make/cyrus-sasl-2.1.17/plugins/gssapi.c:213:
> undefined reference to `gss_release_buffer'
> /usr/local/sasl-2.1.17/lib/libsasl2.a(gssapi.o)(.text+0x186):/
> work/make/cyrus-sasl-2.1.17/plugins/gssapi.c:232:
> undefined reference to `gss_display_status'
> /usr/local/sasl-2.1.17/lib/libsasl2.a(gssapi.o)(.text+0x1fd):/
> work/make/cyrus-sasl-2.1.17/plugins/gssapi.c:258:
> undefined reference to `gss_release_buffer'
> /usr/local/sasl-2.1.17/lib/libsasl2.a(gssapi.o)(.text+0x35a): In
> function `sasl_gss_encode':
> /work/make/cyrus-sasl-2.1.17/plugins/gssapi.c:315: undefined
> reference
> to `gss_wrap'
> /usr/local/sasl-2.1.17/lib/libsasl2.a(gssapi.o)(.text+0x38a):/
> work/make/cyrus-sasl-2.1.17/plugins/gssapi.c:327:
> undefined reference to `gss_release_buffer'
> /usr/local/sasl-2.1.17/lib/libsasl2.a(gssapi.o)(.text+0x3ce):/
> work/make/cyrus-sasl-2.1.17/plugins/gssapi.c:338:
> undefined reference to `gss_release_buffer'
> /usr/local/sasl-2.1.17/lib/libsasl2.a(gssapi.o)(.text+0x421):/
> work/make/cyrus-sasl-2.1.17/plugins/gssapi.c:354:
> undefined reference to `gss_release_buffer'
> /usr/local/sasl-2.1.17/lib/libsasl2.a(gssapi.o)(.text+0x506): In
> function `gssapi_decode_packet':
> /work/make/cyrus-sasl-2.1.17/plugins/gssapi.c:396: undefined
> reference
> to `gss_unwrap'
> /usr/local/sasl-2.1.17/lib/libsasl2.a(gssapi.o)(.text+0x536):/
> work/make/cyrus-sasl-2.1.17/plugins/gssapi.c:407:
> undefined reference to `gss_release_buffer'
> /usr/local/sasl-2.1.17/lib/libsasl2.a(gssapi.o)(.text+0x584):/
> work/make/cyrus-sasl-2.1.17/plugins/gssapi.c:420:
> undefined reference to `gss_release_buffer'
> /usr/local/sasl-2.1.17/lib/libsasl2.a(gssapi.o)(.text+0x5b7):/
> work/make/cyrus-sasl-2.1.17/plugins/gssapi.c:426:
> undefined reference to `gss_release_buffer'
> /usr/local/sasl-2.1.17/lib/libsasl2.a(gssapi.o)(.text+0x686): In
> function `sasl_gss_free_context_contents':
> /work/make/cyrus-sasl-2.1.17/plugins/gssapi.c:468: undefined
> reference
> to `gss_delete_sec_context'
> /usr/local/sasl-2.1.17/lib/libsasl2.a(gssapi.o)(.text+0x6a6):/
> work/make/cyrus-sasl-2.1.17/plugins/gssapi.c:473:
> undefined reference to `gss_release_name'
> /usr/local/sasl-2.1.17/lib/libsasl2.a(gssapi.o)(.text+0x6c6):/
> work/make/cyrus-sasl-2.1.17/plugins/gssapi.c:478:
> undefined reference to `gss_release_name'
> /usr/local/sasl-2.1.17/lib/libsasl2.a(gssapi.o)(.text+0x6e6):/
> work/make/cyrus-sasl-2.1.17/plugins/gssapi.c:483:
> undefined reference to `gss_release_cred'
> /usr/local/sasl-2.1.17/lib/libsasl2.a(gssapi.o)(.text+0xa2f): In
> function `gssapi_server_mech_step':
> /work/make/cyrus-sasl-2.1.17/plugins/gssapi.c:599: undefined
> reference
> to `GSS_C_NT_HOSTBASED_SERVICE'
> /usr/local/sasl-2.1.17/lib/libsasl2.a(gssapi.o)(.text+0xa3a):/
> work/make/cyrus-sasl-2.1.17/plugins/gssapi.c:599:
> undefined reference to `gss_import_name'
> /usr/local/sasl-2.1.17/lib/libsasl2.a(gssapi.o)(.text+0xaa8):/
> work/make/cyrus-sasl-2.1.17/plugins/gssapi.c:614:
> undefined reference to `gss_release_cred'
> /usr/local/sasl-2.1.17/lib/libsasl2.a(gssapi.o)(.text+0xacd):/
> work/make/cyrus-sasl-2.1.17/plugins/gssapi.c:618:
> undefined reference to `gss_acquire_cred'
> /usr/local/sasl-2.1.17/lib/libsasl2.a(gssapi.o)(.text+0xb40):/
> work/make/cyrus-sasl-2.1.17/plugins/gssapi.c:639:
> undefined reference to `gss_accept_sec_context'
> /usr/local/sasl-2.1.17/lib/libsasl2.a(gssapi.o)(.text+0xb95):/
> work/make/cyrus-sasl-2.1.17/plugins/gssapi.c:656:
> undefined reference to `gss_release_buffer'
> /usr/local/sasl-2.1.17/lib/libsasl2.a(gssapi.o)(.text+0xc2a):/
> work/make/cyrus-sasl-2.1.17/plugins/gssapi.c:676:
> undefined reference to `gss_release_buffer'
> /usr/local/sasl-2.1.17/lib/libsasl2.a(gssapi.o)(.text+0xc7d):/
> work/make/cyrus-sasl-2.1.17/plugins/gssapi.c:702:
> undefined reference to `gss_display_name'
> /usr/local/sasl-2.1.17/lib/libsasl2.a(gssapi.o)(.text+0xcb6):/
> work/make/cyrus-sasl-2.1.17/plugins/gssapi.c:712:
> undefined reference to `gss_release_buffer'
> /usr/local/sasl-2.1.17/lib/libsasl2.a(gssapi.o)(.text+0xccf):/
> work/make/cyrus-sasl-2.1.17/plugins/gssapi.c:714:
> undefined reference to `gss_release_name'
> /usr/local/sasl-2.1.17/lib/libsasl2.a(gssapi.o)(.text+0xdf7):/
> work/make/cyrus-sasl-2.1.17/plugins/gssapi.c:740:
> undefined reference to `GSS_C_NT_USER_NAME'
> /usr/local/sasl-2.1.17/lib/libsasl2.a(gssapi.o)(.text+0xe05):/
> work/make/cyrus-sasl-2.1.17/plugins/gssapi.c:740:
> undefined reference to `gss_import_name'
> /usr/local/sasl-2.1.17/lib/libsasl2.a(gssapi.o)(.text+0xe3a):/
> work/make/cyrus-sasl-2.1.17/plugins/gssapi.c:754:
> undefined reference to `gss_release_buffer'
> /usr/local/sasl-2.1.17/lib/libsasl2.a(gssapi.o)(.text+0xe53):/
> work/make/cyrus-sasl-2.1.17/plugins/gssapi.c:756:
> undefined reference to `gss_release_name'
> /usr/local/sasl-2.1.17/lib/libsasl2.a(gssapi.o)(.text+0xe95):/
> work/make/cyrus-sasl-2.1.17/plugins/gssapi.c:762:
> undefined reference to `gss_compare_name'
> /usr/local/sasl-2.1.17/lib/libsasl2.a(gssapi.o)(.text+0xeca):/
> work/make/cyrus-sasl-2.1.17/plugins/gssapi.c:770:
> undefined reference to `gss_release_buffer'
> /usr/local/sasl-2.1.17/lib/libsasl2.a(gssapi.o)(.text+0xee3):/
> work/make/cyrus-sasl-2.1.17/plugins/gssapi.c:772:
> undefined reference to `gss_release_name'
> /usr/local/sasl-2.1.17/lib/libsasl2.a(gssapi.o)(.text+0xf29):/
> work/make/cyrus-sasl-2.1.17/plugins/gssapi.c:778:
> undefined reference to `gss_release_name'
> /usr/local/sasl-2.1.17/lib/libsasl2.a(gssapi.o)(.text+0xfb5):/
> work/make/cyrus-sasl-2.1.17/plugins/gssapi.c:800:
> undefined reference to `gss_release_buffer'
> /usr/local/sasl-2.1.17/lib/libsasl2.a(gssapi.o)(.text+0x1106):
> /work/make/cyrus-sasl-2.1.17/plugins/gssapi.c:850:
> undefined reference to `gss_wrap'
> /usr/local/sasl-2.1.17/lib/libsasl2.a(gssapi.o)(.text+0x113f):
> /work/make/cyrus-sasl-2.1.17/plugins/gssapi.c:861:
> undefined reference to `gss_release_buffer'
> /usr/local/sasl-2.1.17/lib/libsasl2.a(gssapi.o)(.text+0x11af):
> /work/make/cyrus-sasl-2.1.17/plugins/gssapi.c:874:
> undefined reference to `gss_release_buffer'
> /usr/local/sasl-2.1.17/lib/libsasl2.a(gssapi.o)(.text+0x11f6):
> /work/make/cyrus-sasl-2.1.17/plugins/gssapi.c:881:
> undefined reference to `gss_release_buffer'
> /usr/local/sasl-2.1.17/lib/libsasl2.a(gssapi.o)(.text+0x1237):
> /work/make/cyrus-sasl-2.1.17/plugins/gssapi.c:896:
> undefined reference to `gss_unwrap'
> /usr/local/sasl-2.1.17/lib/libsasl2.a(gssapi.o)(.text+0x133e):
> /work/make/cyrus-sasl-2.1.17/plugins/gssapi.c:932:
> undefined reference to `gss_release_buffer'
> /usr/local/sasl-2.1.17/lib/libsasl2.a(gssapi.o)(.text+0x140a):
> /work/make/cyrus-sasl-2.1.17/plugins/gssapi.c:975:
> undefined reference to `gss_release_buffer'
> /usr/local/sasl-2.1.17/lib/libsasl2.a(gssapi.o)(.text+0x1468):
> /work/make/cyrus-sasl-2.1.17/plugins/gssapi.c:987:
> undefined reference to `gss_wrap_size_limit'
> /usr/local/sasl-2.1.17/lib/libsasl2.a(gssapi.o)(.text+0x1486):
> /work/make/cyrus-sasl-2.1.17/plugins/gssapi.c:997:
> undefined reference to `gss_release_buffer'
> /usr/local/sasl-2.1.17/lib/libsasl2.a(gssapi.o)(.text+0x162d): In
> function `gssapiv2_server_plug_init':
> /work/make/cyrus-sasl-2.1.17/plugins/gssapi.c:1088: undefined
> reference
> to `gsskrb5_register_acceptor_identity'
> /usr/local/sasl-2.1.17/lib/libsasl2.a(gssapi.o)(.text+0x192a): In
> function `gssapi_client_mech_step':
> /work/make/cyrus-sasl-2.1.17/plugins/gssapi.c:1202: undefined
> reference
> to `GSS_C_NT_HOSTBASED_SERVICE'
> /usr/local/sasl-2.1.17/lib/libsasl2.a(gssapi.o)(.text+0x1935):
> /work/make/cyrus-sasl-2.1.17/plugins/gssapi.c:1202:
> undefined reference to `gss_import_name'
> /usr/local/sasl-2.1.17/lib/libsasl2.a(gssapi.o)(.text+0x19ca):
> /work/make/cyrus-sasl-2.1.17/plugins/gssapi.c:1229:
> undefined reference to `gss_delete_sec_context'
> /usr/local/sasl-2.1.17/lib/libsasl2.a(gssapi.o)(.text+0x1a27):
> /work/make/cyrus-sasl-2.1.17/plugins/gssapi.c:1247:
> undefined reference to `gss_init_sec_context'
> /usr/local/sasl-2.1.17/lib/libsasl2.a(gssapi.o)(.text+0x1a60):
> /work/make/cyrus-sasl-2.1.17/plugins/gssapi.c:1264:
> undefined reference to `gss_release_buffer'
> /usr/local/sasl-2.1.17/lib/libsasl2.a(gssapi.o)(.text+0x1af8):
> /work/make/cyrus-sasl-2.1.17/plugins/gssapi.c:1283:
> undefined reference to `gss_release_buffer'
> /usr/local/sasl-2.1.17/lib/libsasl2.a(gssapi.o)(.text+0x1b29):
> /work/make/cyrus-sasl-2.1.17/plugins/gssapi.c:1287:
> undefined reference to `gss_inquire_context'
> /usr/local/sasl-2.1.17/lib/libsasl2.a(gssapi.o)(.text+0x1b79):
> /work/make/cyrus-sasl-2.1.17/plugins/gssapi.c:1305:
> undefined reference to `gss_display_name'
> /usr/local/sasl-2.1.17/lib/libsasl2.a(gssapi.o)(.text+0x1b9b):
> /work/make/cyrus-sasl-2.1.17/plugins/gssapi.c:1312:
> undefined reference to `gss_release_buffer'
> /usr/local/sasl-2.1.17/lib/libsasl2.a(gssapi.o)(.text+0x1c4d):
> /work/make/cyrus-sasl-2.1.17/plugins/gssapi.c:1332:
> undefined reference to `gss_release_buffer'
> /usr/local/sasl-2.1.17/lib/libsasl2.a(gssapi.o)(.text+0x1ca9):
> /work/make/cyrus-sasl-2.1.17/plugins/gssapi.c:1351:
> undefined reference to `gss_unwrap'
> /usr/local/sasl-2.1.17/lib/libsasl2.a(gssapi.o)(.text+0x1cf5):
> /work/make/cyrus-sasl-2.1.17/plugins/gssapi.c:1362:
> undefined reference to `gss_release_buffer'
> /usr/local/sasl-2.1.17/lib/libsasl2.a(gssapi.o)(.text+0x1e26):
> /work/make/cyrus-sasl-2.1.17/plugins/gssapi.c:1425:
> undefined reference to `gss_release_buffer'
> /usr/local/sasl-2.1.17/lib/libsasl2.a(gssapi.o)(.text+0x1f59):
> /work/make/cyrus-sasl-2.1.17/plugins/gssapi.c:1464:
> undefined reference to `gss_wrap'
> /usr/local/sasl-2.1.17/lib/libsasl2.a(gssapi.o)(.text+0x1fb4):
> /work/make/cyrus-sasl-2.1.17/plugins/gssapi.c:1478:
> undefined reference to `gss_release_buffer'
> /usr/local/sasl-2.1.17/lib/libsasl2.a(gssapi.o)(.text+0x2028):
> /work/make/cyrus-sasl-2.1.17/plugins/gssapi.c:1490:
> undefined reference to `gss_release_buffer'
> /usr/local/sasl-2.1.17/lib/libsasl2.a(gssapi.o)(.text+0x2069):
> /work/make/cyrus-sasl-2.1.17/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
> `/work/make/openldap-2.2.4/libraries/libldap'
> make[1]: *** [all-common] Error 1
> make[1]: Leaving directory `/work/make/openldap-2.2.4/libraries'
> make: *** [all-common] Error 1
> [PTS2] root@486dx66:/work/make/openldap-2.2.4 #
>
> --snipp--
>
> So, i tried every hint i could find on the lists i'm in
> (Cyrus,Openldap),but i don't know what's the reason for those
> errors ...
> any hints from the list ?
>
> greets and thanks for help
> Harry
>
>
-- Howard Chu
Chief Architect, Symas Corp. Director, Highland Sun
http://www.symas.com http://highlandsun.com/hyc
Symas: Premier OpenSource Development and Support