Hi all,

I am trying to get freeRadius Release Candidate 3 running in and OpenPKG 
environment on Solaris 8 (SPARC). OpenPKG compiles all its libraries as 
static which is where the problem comes in. (The software compiles fine
on a base system with shared libraries).

Here is the breakdown of the problem:

To localize the problem I am just trying to configure the module is 
freeradius-1.0.0-pre3/src/modules/rlm_ldap/

Running configure gives me the following (truncated) output:

...
checking for SSL_new in -lssl... no
checking for ber_init in -llber... yes
checking for ldap_init in -lldap... no
checking for ldap_start_tls_s in -lldap... no
checking for ldap_initialize in -lldap... no
...

Looking in the config.log file I see that it cannot find certain symbols:
...
configure:1302: gcc -o conftest -g -O2       conftest.c -lresolv  -lcrypto -lssl
 1>&5
/kolab/lib/gcc/i686-pc-linux-gnu/3.4.1/../../../libssl.a(ssl_lib.o)(.text+0x2c):
 In function `SSL_CTX_set_ssl_version':
: undefined reference to `sk_num'
/kolab/lib/gcc/i686-pc-linux-gnu/3.4.1/../../../libssl.a(ssl_lib.o)(.text+0x5c):
 In function `SSL_CTX_set_ssl_version':
...
...
configure:1674: gcc -o conftest -g -O2       conftest.c -lresolv  -lcrypto -llbe
r -lldap 1>&5
/kolab/lib/gcc/i686-pc-linux-gnu/3.4.1/../../../libldap.a(os-ip.o)(.text+0x6e9):
 In function `ldap_connect_to_host':
: `sys_errlist' is deprecated; use `strerror' or `strerror_r' instead
/kolab/lib/gcc/i686-pc-linux-gnu/3.4.1/../../../libldap.a(os-ip.o)(.text+0x6dc):
 In function `ldap_connect_to_host':
: `sys_nerr' is deprecated; use `strerror' or `strerror_r' instead
/kolab/lib/gcc/i686-pc-linux-gnu/3.4.1/../../../libldap.a(open.o)(.text+0xc4): I
n function `ldap_create':
: undefined reference to `ber_memcalloc_x'
/kolab/lib/gcc/i686-pc-linux-gnu/3.4.1/../../../libldap.a(open.o)(.text+0x12e):
In function `ldap_create':
: undefined reference to `ber_sockbuf_alloc'
...


According to the folk at OpenPKG the order of the libraries are linking in the 
wrong order:
gcc -o conftest -g -O2       conftest.c -lresolv  -lcrypto -llber -lldap 1>&5

should be (switch -lldap and -llber around)
gcc -o conftest -g -O2       conftest.c -lresolv  -lcrypto -lldap -llber 1>&5

I have verified that the libraries are in place, also that the correct symbols exist
in those libraries.

The problem seems to be with the following lines in configure.in:
AC_SMART_CHECK_LIB(ssl, SSL_new)
AC_SMART_CHECK_LIB(ldap_r, ldap_init)
AC_SMART_CHECK_LIB(ldap, ldap_init)

Can anyone assist me with this? I have tried to build freeRadius using the following
switches:
./configure --disable-shared --enable-static

And it essential for me to get LDAP support running. I can provide more diagnostic
information if wanted.

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

- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to