(Sorry for the double post to openpkg-dev, I only realised later that this question
is more appropriate for the users list)

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: [EMAIL PROTECTED]

E-mail Solutions, Kolab Specialists.
http://www.codefusion.co.za
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
User Communication List                      [EMAIL PROTECTED]

Reply via email to