Hi :

I am trying to build freeradius 0.5 with rlm_ldap enabled under solaris 7
with gcc 2.95.3. When compiling this module it produces an error and the
compilation fails.

I am using GNU make 3.79.1 and OpenLDAP 2.0.23 ( installed in
/usr/local/openldap ) . I configured with
CPPFLAGS=-I/usr/local/openldap/include LDFLAGS=-L/usr/local/openldap/lib
and --enable-ldap=yes.

The error output is as follows :

[snip]
Making static dynamic in rlm_ldap...
make[6]: Entering directory
`/export/home/rcc/software/freeradius/install/freeradius-0.5/src/modules/rlm
_ldap'
gcc  -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOURCE -DND
EBUG -I../../include -DHAVE_LDAP_START_TLS -c rlm_ldap.c -o rlm_ldap.o
rlm_ldap.c: In function `ldap_instantiate':
rlm_ldap.c:240: `LDAP_OPT_X_TLS_TRY' undeclared (first use in this function)
rlm_ldap.c:240: (Each undeclared identifier is reported only once
rlm_ldap.c:240: for each function it appears in.)
rlm_ldap.c: In function `perform_search':
rlm_ldap.c:477: warning: implicit declaration of function `ldap_get_option'
rlm_ldap.c: In function `ldap_connect':
rlm_ldap.c:1162: warning: implicit declaration of function `ldap_set_option'
rlm_ldap.c:1162: `LDAP_OPT_NETWORK_TIMEOUT' undeclared (first use in this
function)
rlm_ldap.c:1162: `LDAP_OPT_SUCCESS' undeclared (first use in this function)
rlm_ldap.c:1168: `LDAP_OPT_DEBUG_LEVEL' undeclared (first use in this
function)
rlm_ldap.c:1182: warning: implicit declaration of function
`ldap_start_tls_s'
rlm_ldap.c:1196: warning: passing arg 2 of `ldap_simple_bind' discards
qualifiers from pointer target type
rlm_ldap.c:1196: warning: passing arg 3 of `ldap_simple_bind' discards
qualifiers from pointer target type
rlm_ldap.c: In function `ldap_pairget':
rlm_ldap.c:1399: warning: passing arg 2 of `pairread' from incompatible
pointer type
make[6]: *** [rlm_ldap.o] Error 1
make[6]: Leaving directory
`/export/home/rcc/software/freeradius-0.5/src/modules/rlm_ldap'
make[5]: *** [common] Error 1
make[5]: Leaving directory
`/export/home/rcc/software/freeradius-0.5/src/modules'
make[4]: *** [all] Error 2
make[4]: Leaving directory
`/export/home/rcc/software/freeradius-0.5/src/modules'
make[3]: *** [common] Error 1
make[3]: Leaving directory `/export/home/rcc/software/freeradius-0.5/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/export/home/rcc/software/freeradius-0.5/src'
make[1]: *** [common] Error 1
make[1]: Leaving directory `/export/home/rcc/software/freeradius-0.5'
make: *** [all] Error 2

I did not get any error messages when I run configure.

Is there anything missing , maybe a required software or a library ? I have
also included /usr/local/openldap/lib in my LD_LIBRARY_PATH variable.

Thans in advance for any suggestion,

Richard Cotrina


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

Reply via email to