Unable to configure rlm_ldap on Solaris 10 - doesn't find libldap_r
Hi list, I have been trying to configure FreeRADIUS 2.1.6 on Solaris 10 (sparc) but I am having issues with the rlm_ldap module not being able to locate libldap_r. I have installed the OpenSSL and OpenLDAP packages + dependencies from Sunfreeware. When issuing the plain "./configure" it returns the following:
root@radius0:/usr/local/src/freeradius/freeradius-server-2.1.6/src/modules/rlm_ldap # ./configure ... checking for ldap_init in -lldap_r... no checking for ldap.h... yes configure: WARNING: silently not building rlm_ldap. configure: WARNING: FAILURE: rlm_ldap requires: libldap_r. configure: creating ./config.status config.status: creating Makefile
When manually specifying the directories it still comes back with the same error:
root@radius0:/usr/local/src/freeradius/freeradius-server-2.1.6/src/modules/rlm_ldap # ./configure \
--with-rlm-ldap-lib-dir=/usr/local/lib \ --with-rlm-ldap-include-dir=/usr/local/include ... checking for ldap_init in -lldap_r... no checking for ldap.h... yes configure: WARNING: silently not building rlm_ldap. configure: WARNING: FAILURE: rlm_ldap requires: libldap_r. configure: creating ./config.status config.status: creating Makefile
Contents of the directories:
root@radius0:/usr/local/src/freeradius/freeradius-server-2.1.6/src/modules/rlm_ldap # ls -la /usr/local/lib/libldap* lrwxrwxrwx 1 root root 20 Jul 8 09:10 /usr/local/lib/libldap-2.4.so.2 -> libldap-2.4.so.2.4.2 -rwxr-xr-x 1 bin bin 306312 May 30 02:46 /usr/local/lib/libldap-2.4.so.2.4.2 -rw-r--r-- 1 bin bin 373348 May 30 02:46 /usr/local/lib/libldap.a -rw-r--r-- 1 bin bin 1290 May 30 02:46 /usr/local/lib/libldap.la lrwxrwxrwx 1 root root 20 Jul 8 09:10 /usr/local/lib/libldap.so -> libldap-2.4.so.2.4.2 lrwxrwxrwx 1 root root 22 Jul 8 09:10 /usr/local/lib/libldap_r-2.4.so.2 -> libldap_r-2.4.so.2.4.2 -rwxr-xr-x 1 bin bin 332016 May 30 02:46 /usr/local/lib/libldap_r-2.4.so.2.4.2 -rw-r--r-- 1 bin bin 410146 May 30 02:46 /usr/local/lib/libldap_r.a -rw-r--r-- 1 bin bin 1304 May 30 02:46 /usr/local/lib/libldap_r.la lrwxrwxrwx 1 root root 22 Jul 8 09:10 /usr/local/lib/libldap_r.so -> libldap_r-2.4.so.2.4.2
root@radius0:/usr/local/src/freeradius/freeradius-server-2.1.6/src/modules/rlm_ldap # ls -la /usr/local/include/ldap* -rw-r--r-- 1 bin bin 63828 May 30 02:46 /usr/local/include/ldap.h -rw-r--r-- 1 bin bin 9538 May 30 02:46 /usr/local/include/ldap_cdefs.h -rw-r--r-- 1 bin bin 1890 May 30 02:46 /usr/local/include/ldap_features.h -rw-r--r-- 1 bin bin 9523 May 30 02:46 /usr/local/include/ldap_schema.h -rw-r--r-- 1 bin bin 3539 May 30 02:46 /usr/local/include/ldap_utf8.h
Any ideas what is going wrong? Thanks Steve -- Steven Carr Systems Development Officer SLS/ITS/Systems - (0191) 515 3953
# ./configure ... checking for ldap_init in -lldap_r... no checking for ldap.h... yes configure: WARNING: silently not building rlm_ldap. configure: WARNING: FAILURE: rlm_ldap requires: libldap_r. configure: creating ./config.status config.status: creating Makefile
When manually specifying the directories it still comes back with the same error:
root@radius0:/usr/local/src/freeradius/freeradius-server-2.1.6/src/modules/rlm_ldap # ./configure \
--with-rlm-ldap-lib-dir=/usr/local/lib \ --with-rlm-ldap-include-dir=/usr/local/include ... checking for ldap_init in -lldap_r... no checking for ldap.h... yes configure: WARNING: silently not building rlm_ldap. configure: WARNING: FAILURE: rlm_ldap requires: libldap_r. configure: creating ./config.status config.status: creating Makefile
Contents of the directories:
root@radius0:/usr/local/src/freeradius/freeradius-server-2.1.6/src/modules/rlm_ldap # ls -la /usr/local/lib/libldap* lrwxrwxrwx 1 root root 20 Jul 8 09:10 /usr/local/lib/libldap-2.4.so.2 -> libldap-2.4.so.2.4.2 -rwxr-xr-x 1 bin bin 306312 May 30 02:46 /usr/local/lib/libldap-2.4.so.2.4.2 -rw-r--r-- 1 bin bin 373348 May 30 02:46 /usr/local/lib/libldap.a -rw-r--r-- 1 bin bin 1290 May 30 02:46 /usr/local/lib/libldap.la lrwxrwxrwx 1 root root 20 Jul 8 09:10 /usr/local/lib/libldap.so -> libldap-2.4.so.2.4.2 lrwxrwxrwx 1 root root 22 Jul 8 09:10 /usr/local/lib/libldap_r-2.4.so.2 -> libldap_r-2.4.so.2.4.2 -rwxr-xr-x 1 bin bin 332016 May 30 02:46 /usr/local/lib/libldap_r-2.4.so.2.4.2 -rw-r--r-- 1 bin bin 410146 May 30 02:46 /usr/local/lib/libldap_r.a -rw-r--r-- 1 bin bin 1304 May 30 02:46 /usr/local/lib/libldap_r.la lrwxrwxrwx 1 root root 22 Jul 8 09:10 /usr/local/lib/libldap_r.so -> libldap_r-2.4.so.2.4.2
root@radius0:/usr/local/src/freeradius/freeradius-server-2.1.6/src/modules/rlm_ldap # ls -la /usr/local/include/ldap* -rw-r--r-- 1 bin bin 63828 May 30 02:46 /usr/local/include/ldap.h -rw-r--r-- 1 bin bin 9538 May 30 02:46 /usr/local/include/ldap_cdefs.h -rw-r--r-- 1 bin bin 1890 May 30 02:46 /usr/local/include/ldap_features.h -rw-r--r-- 1 bin bin 9523 May 30 02:46 /usr/local/include/ldap_schema.h -rw-r--r-- 1 bin bin 3539 May 30 02:46 /usr/local/include/ldap_utf8.h
Any ideas what is going wrong?
Your linker is probably looking in /usr/lib but not in /usr/local/lib. Add the correct path.
On 8/7/09 12:00, Ivan Kalik wrote:
Your linker is probably looking in /usr/lib but not in /usr/local/lib. Add the correct path.
I have tried with the following set: export LD_LIBRARY_PATH=/usr/local/lib and I still get the same errors. Steve -- Steven Carr Systems Development Officer SLS/ITS/Systems - (0191) 515 3953
Am 08.07.2009 um 13:07 schrieb Steven Carr:
On 8/7/09 12:00, Ivan Kalik wrote:
Your linker is probably looking in /usr/lib but not in /usr/local/ lib. Add the correct path.
I have tried with the following set:
export LD_LIBRARY_PATH=/usr/local/lib
"checking for ldap_init in -lldap_r... no" -lldap means compile time linking. By using LD_LIBRARY_PATH you change only runtime linking, which is not the same
and I still get the same errors.
Steve
-- Steven Carr Systems Development Officer SLS/ITS/Systems - (0191) 515 3953
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Nicolas Goutte extragroup GmbH - Karlsruhe Waldstr. 49 76133 Karlsruhe Germany Geschäftsführer: Stephan Mönninghoff, Hans Martin Kern, Tilman Haerdle Registergericht: Amtsgericht Münster / HRB: 5624 Steuer Nr.: 337/5903/0421 / UstID: DE 204607841
On 8/7/09 12:12, Nicolas Goutte wrote:
"checking for ldap_init in -lldap_r... no"
-lldap means compile time linking. By using LD_LIBRARY_PATH you change only runtime linking, which is not the same
I have found the error, looking in the config.log file I have the following:
configure:2891: gcc -o conftest -g -O2 conftest.c -lldap_r -lpthread >&5 ld: fatal: file /usr/lib/libresolv.so.2: version `SUNW_2.2.2' does not exist: required by file /usr/local/lib/libldap_r.so ld: fatal: File processing errors. No output written to conftest
Now time to hunt down v2.2.2 of libresolv :| Thanks for your replies Steve -- Steven Carr Systems Development Officer SLS/ITS/Systems - (0191) 515 3953
participants (3)
-
Ivan Kalik -
Nicolas Goutte -
Steven Carr