freeradius 1.0.4 ldap compilation
This is my command to install freeradius from source on Suse installation de BerkeleyDB 4.3.28 NC cd build_unix ../dist/configure --prefix=/opt/db --enable-static --disable-shared make PREFIX=/opt/db install installation de openLDAP 2.2.26 LD_LIBRARY_PATH=/opt/db/lib export LD_LIBRARY_PATH CPPFLAGS=-I/opt/db/include export CPPFLAGS LDFLAGS=-L/opt/db/lib export LDFLAGS LIBS="-lresolv" export LIBS ./configure --prefix=/opt/openldap --enable-static --disable-shared --enable-syslog --with-threads --enable-bdb make depend make make install Installation de freeradius 1.0.4 ./configure --disable-shared --enable-static --prefix=/opt/ freeradius/radiusALL --with-rlm-ldap-lib-dir=/opt/openldap/lib --with- rlm-ldap-include-dir=/opt/openldap/include make but here I have a problem this is an extract ../modules/rlm_ldap/.libs/rlm_ldap.a(rlm_ldap.o)(.text+0x140): In function `ldap_detach': /opt/freeradius/distrib.freeradius-1.0.4/src/modules/rlm_ldap/ rlm_ldap.c:2181: undefined reference to `ldap_unbind_s' ../modules/rlm_ldap/.libs/rlm_ldap.a(rlm_ldap.o)(.text+0x368): In function `ldap_connect': /opt/freeradius/distrib.freeradius-1.0.4/src/modules/rlm_ldap/ rlm_ldap.c:1922: undefined reference to `ldap_initialize' ../modules/rlm_ldap/.libs/rlm_ldap.a(rlm_ldap.o)(.text+0x388):/opt/ freeradius/distrib.freeradius-1.0.4/src/modules/rlm_ldap/rlm_ldap.c: 1937: undefined reference to `ldap_set_option' ../modules/rlm_ldap/.libs/rlm_ldap.a(rlm_ldap.o)(.text+0x3a3):/opt/ freeradius/distrib.freeradius-1.0.4/src/modules/rlm_ldap/rlm_ldap.c: 1940: undefined reference to `ldap_set_option' ../modules/rlm_ldap/.libs/rlm_ldap.a(rlm_ldap.o)(.text+0x3d7):/opt/ freeradius/distrib.freeradius-1.0.4/src/modules/rlm_ldap/rlm_ldap.c: 1947: undefined reference to `ldap_set_option' ../modules/rlm_ldap/.libs/rlm_ldap.a(rlm_ldap.o)(.text+0x407):/opt/ freeradius/distrib.freeradius-1.0.4/src/modules/rlm_ldap/rlm_ldap.c: 1953: undefined reference to `ldap_set_option' Have you an idea ?
Marc-Henri Boisis-delavaud <marc-henri.boisis-delavaud@univ-lr.fr> wrote:
/opt/freeradius/distrib.freeradius-1.0.4/src/modules/rlm_ldap/ rlm_ldap.c:2181: undefined reference to `ldap_unbind_s'
Hmm... it looks like your version of OpenLDAP doesn't have the functions needed by FreeRADIUS. Or, the LDAP libraries aren't being found at compile-time. Alan DeKok.
Alan DeKok wrote:
Marc-Henri Boisis-delavaud <marc-henri.boisis-delavaud@univ-lr.fr> wrote:
/opt/freeradius/distrib.freeradius-1.0.4/src/modules/rlm_ldap/ rlm_ldap.c:2181: undefined reference to `ldap_unbind_s'
Hmm... it looks like your version of OpenLDAP doesn't have the functions needed by FreeRADIUS. Or, the LDAP libraries aren't being found at compile-time.
Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
And what is the version of openldap recomended by freeradius ?
Marc-Henri Boisis-Delavaud <marc-henri.boisis-delavaud@univ-lr.fr> wrote:
And what is the version of openldap recomended by freeradius ?
Most versions should work. My guess is that the LDAP libraries are in a non-standard place, where your linker can't find them. Alan DeKok.
Le 4 juil. 05 à 17:54, Alan DeKok a écrit :
Marc-Henri Boisis-delavaud <marc-henri.boisis-delavaud@univ-lr.fr> wrote:
/opt/freeradius/distrib.freeradius-1.0.4/src/modules/rlm_ldap/ rlm_ldap.c:2181: undefined reference to `ldap_unbind_s'
Hmm... it looks like your version of OpenLDAP doesn't have the functions needed by FreeRADIUS. Or, the LDAP libraries aren't being found at compile-time.
Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/ users.html
Do you preconise openldap 2.2.26 or 2.3.4 and with what options ? Marc
participants (3)
-
Alan DeKok -
Marc-Henri Boisis-delavaud -
Marc-Henri Boisis-Delavaud