Hi, I am very bad with static linking (dont know if it is just me :-)
I have tried the following CFLAGS: #export CFLAGS="-L/kolab/lib -I/kolab/include -lldap -llber" #export LD_LIBRARY_PATH=/kolab/lib and #export CFLAGS="-L/kolab/lib -I/kolab/include -lldap" And still the same results, here's the dump from config.log (not much has changed) configure:1674: gcc -o conftest -L/kolab/lib -I/kolab/include -lldap -llber conftest.c -lresolv -lcrypto -llber -lldap 1>&5 /kolab/lib/libldap.a(open.o)(.text+0x198): In function `ldap_create': : undefined reference to `ber_memcalloc_x' /kolab/lib/libldap.a(open.o)(.text+0x1f4): In function `ldap_create': : undefined reference to `ber_sockbuf_alloc' /kolab/lib/libldap.a(open.o)(.text+0x228): In function `ldap_create': Any structured way I can start to track this problem down? On Tuesday 20 July 2004 18:24, Michael van Elst wrote: > On Tue, Jul 20, 2004 at 01:23:24PM +0200, Stephan Buys wrote: > > > l/ conftest.c -lresolv -lcrypto -llber -lldap 1>&5 > > /kolab/lib//libldap.a(open.o)(.text+0x198): In function `ldap_create': > > : undefined reference to `ber_memcalloc_x' > > /kolab/lib//libldap.a(open.o)(.text+0x1f4): In function `ldap_create': > > : undefined reference to `ber_sockbuf_alloc' > > /kolab/lib//libldap.a(open.o)(.text+0x228): In function `ldap_create': > > : undefined reference to `ber_memfree_x' > > > I think the issue here is with how configure is trying to compile agains statically > > linked libraries. > > > Static libraries require a correct link order while references to > dynamic libraries are sorted at run time. > > In this case you need to link with libldap first, i.e. -lldap -llber. > > Greetings, -- Stephan Buys Code Fusion cc. Tel: +27 11 391 1412 Mobile: +27 83 294 1876 Email: [EMAIL PROTECTED] E-mail Solutions, Kolab Specialists. http://www.codefusion.co.za ______________________________________________________________________ The OpenPKG Project www.openpkg.org User Communication List [EMAIL PROTECTED]
