On Tue, Jul 20, 2004, Stephan Buys wrote:
> [...]
> 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?
Your problem is that the "-lldap -llber" is occurring on the command
line before the "conftest.c", so it is effectively ignored (because no
object references it) and after "conftest.c" you have the incorrect
"-llber -lldap" where it breaks. You have to move the "-lldap -llber" to
the _END_ or reorder the one at the end to read this way.
Ralf S. Engelschall
[EMAIL PROTECTED]
www.engelschall.com
______________________________________________________________________
The OpenPKG Project www.openpkg.org
User Communication List [EMAIL PROTECTED]