[prev in list] [next in list] [prev in thread] [next in thread]
List: openpkg-dev
Subject: Compiling against OpenLDAP in OpenPKG - static linking problem
From: Stephan Buys <list () codefusion ! co ! za>
Date: 2004-07-20 10:58:21
Message-ID: 200407201258.21160.list () codefusion ! co ! za
[Download RAW message or body]
Hi all,
(www.freeradius.org, compiling on Solaris 8 SPARC)
I think I am running into a static linking problem with OpenPKG. When trying
to configure the freeradius package and trying to get it to link with OpenLDAP
in OpenPKG I get the following in the config.log:
Before running configure I did the following:
#export CFLAGS="-L/openpkg/lib -I/openpkg/include"
#eval `/openpkg/etc/rc --eval all env`
configure:1674: gcc -o conftest -I/kolab/include/ -L/kolab/lib/ -L/kolab/lib/sas
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 have checked that those simbols exist in liblber.a, as per the following procedure:
#strings liblber.a | grep ber_memcalloc_x
ber_memcalloc_x
ber_memcalloc_x
ber_memcalloc_x
I think the issue here is with how configure is trying to compile agains statically
linked libraries.
I think I need a bit of clever CFLAGS wizardry to get this working, or maybe there
is something wrong with ld?
Any assistance in this would be greatly appreciated.
Kind regards,
--
Stephan Buys
Code Fusion cc.
Tel: +27 11 391 1412
Mobile: +27 83 294 1876
Email: s.buys@codefusion.co.za
E-mail Solutions, Kolab Specialists.
http://www.codefusion.co.za
______________________________________________________________________
The OpenPKG Project www.openpkg.org
Developer Communication List openpkg-dev@openpkg.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic