Subject: Problems configuring inside the pkgsrc
To: None <netbsd-help@netbsd.org>
From: Daniel Eggert <danieleggert@mac.com>
List: netbsd-help
Date: 03/23/2003 18:46:51
I hope this is not too OT, but I'm having trouble with compiling apache
2.0.44 on NetBSD. I changed the Makefile to include support for LDAP.
When I run 'make' i get:
checking for ldap support...
setting APRUTIL_INCLUDES to "-I/usr/pkg/include"
setting APRUTIL_LDFLAGS to "-L/usr/pkg/lib"
checking for ldap_init in -lldap50... no
checking for ldap_init in -lldapssl41... no
checking for ldap_init in -lldapssl40... no
checking for ldap_init in -lldapssl30... no
checking for ldap_init in -lldapssl20... no
checking for ldap_init in -lldap... no
checking for ldap_init in -lldap... (cached) no
checking for ldap_init in -lldap... (cached) no
configure: error: could not find an LDAP library
configure failed for srclib/apr-util
*** Error code 1
Stop.
Inside
work/httpd-2.0.44/srclib/apr-util/config.log
I find the following:
configure:4124: result: no
configure:4290: checking for ldap_init in -lldap
configure:4317: cc -o conftest -O2 -I/usr/pkg/include
-I/usr/pkg/include -I/usr \
/pkg/include -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -L/usr/pkg/lib
conftest.c -lldap \
-llber >&5
ld: cannot find -lldap
Why can't configure find the LDAP library? I've got it inside
/usr/pkg/lib:
[kelvin] /usr/pkg/lib> ls /usr/pkg/lib/libldap*
/usr/pkg/lib/libldap.a /usr/pkg/lib/libldap_r.a
/usr/pkg/lib/libldap.la /usr/pkg/lib/libldap_r.la
/usr/pkg/lib/libldap.so /usr/pkg/lib/libldap_r.so
/usr/pkg/lib/libldap.so.2 /usr/pkg/lib/libldap_r.so.2
/usr/pkg/lib/libldap.so.2.17 /usr/pkg/lib/libldap_r.so.2.17
Any suggestions?
Daniel