Trying to build freeradius --with_ldap I changed BILL's freeradius.spec
adding:
diff ~/freeradius.spec freeradius/freeradius.spec
20,21c20
< %option with_gdbm_passwd no
< %option with_ldap no
---
> %option with_gdbm_passwd yes
97,100d95
< %if "%{with_ldap}" == "yes"
< --with-rlm-ldap-lib-dir=%{l_prefix}/lib \
< --with-rlm-ldap-include-dir=%{l_prefix}/include \
< %endif
But (as I do not understand enouth from compiling stuff) this doesn't helps.
While compiling I got:
configuring in src/modules/rlm_ldap
running /bin/sh ./configure --prefix=/opkg --with-raddbdir=/opkg/etc/freeradius
--with-logdir=/opkg/var/freeradius --localstatedir=/opkg/var/freeradius
--with-radacctdir=/opkg/var/freeradius/radacct
--with-mysql-include-dir=/opkg/include/mysql
--with-mysql-lib-dir=/opkg/lib/mysql
--with-rlm-sql-postgresql-lib-dir=/opkg/lib
--with-rlm-sql-postgresql-include-dir=/opkg/include/postgresql
--with-rlm-ldap-lib-dir=/opkg/lib --with-rlm-ldap-include-dir=/opkg/include
--with-threads --with-thread-pool --with-gnu-ld --enable-ltdl-install
--enable-ltdl-install --cache-file=../../.././config.cache --srcdir=.
loading cache ../../.././config.cache
checking for gcc... (cached) gcc
checking whether the C compiler (gcc -O2 -pipe -I/opkg/include
-DWITH_ANNEX_MD5_KLUDGE -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS
-DOPENSSL_NO_KRB5 -Wall -D_GNU_SOURCE -DNDEBUG ) works... yes
checking whether the C compiler (gcc -O2 -pipe -I/opkg/include
-DWITH_ANNEX_MD5_KLUDGE -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS
-DOPENSSL_NO_KRB5 -Wall -D_GNU_SOURCE -DNDEBUG ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for inet_aton in -lresolv... (cached) yes
checking for lber.h... yes
checking for ldap.h... yes
checking for sasl_encode in -lsasl... yes
checking for DH_new in -lcrypto... yes
checking for SSL_new in -lssl... no
checking for ber_init in -llber... yes
checking for ldap_init in -lldap_r... no
configure: warning: silently not building rlm_ldap.
configure: warning: FAILURE: rlm_ldap requires: libldap_r.
^^^^^^^
I checked that:
l /opkg/lib/libldap*
-rw-r--r-- 1 opkg opkg 270778 Jul 23 19:21 /opkg/lib/libldap.a
-rw-r--r-- 1 opkg opkg 687 Jul 23 19:21 /opkg/lib/libldap.la
-rw-r--r-- 1 opkg opkg 301078 Jul 23 19:21 /opkg/lib/libldap_r.a
-rw-r--r-- 1 opkg opkg 693 Jul 23 19:21 /opkg/lib/libldap_r.la
So what am I misssing ?
Do I also need to specify directory for openssl ?
Thanks,
Alex
--
ATIX Tecnologia e Com Ltda
Tel.: +55-(11) 4667-5900
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
______________________________________________________________________
The OpenPKG Project www.openpkg.org
User Communication List [EMAIL PROTECTED]