Re: configure fails with --with-mcrypt and --with-ldap combination

From: Date: Thu, 24 Aug 2000 06:17:02 +0000
Subject: Re: configure fails with --with-mcrypt and --with-ldap combination
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-30476@lists.php.net to get a copy of this message
Yusuf Goolamabbas wrote: > Linux 2.2.9 on RH 6.2 > I have the following configure command > > CFLAGS=-O2 ../php4/configure \ > --with-apache=../apache_1.3.12 \ > --prefix=/usr/local/site/php \ > --with-db2=/usr/local/site/BerkeleyDB \ > --with-ldap=/usr/local/site/ldap \ > --with-gd=/usr/local/site/gd \ > --with-mhash \ > --with-mcrypt \ > --enable-calendar \ > --enable-track-vars \ > --enable-magic-quotes \ > --disable-debug \ > > Running this gives the following errors > > checking whether to include LDAP support... yes > checking for MCAL support... no > checking for mcrypt support... yes > checking for init_mcrypt in -lmcrypt... no > checking for mcrypt_module_open in -lmcrypt... no > configure: error: Sorry > > config.log has the following lines > > int main() { > init_mcrypt() > ; return 0; } > configure:21259: checking for mcrypt_module_open in -lmcrypt > configure:21278: gcc -o conftest -O2 -Wl,-rpath,/usr/local/lib > -L/usr/local/lib > conftest.c -lmcrypt -lldap -llber -lpng -lz -lgd -ldb -lresolv -lm > -ldl -lcryp > t -lnsl -lresolv -lltdl 1>&5 > /usr/bin/ld: cannot open -lldap: No such file or directory It seems dat the directory of the ldap don't get added to the include paths or something. However, I am not a build-process guru. Can somebody have a look at it? Problems with mcal and mcrypt are also reported.. > > collect2: ld returned 1 exit status > configure: failed program was: > #line 21267 "configure" > #include "confdefs.h" > /* Override any gcc2 internal prototype to avoid an error. */ > /* We use char because int might match the return type of a gcc2 > builtin and then its argument prototype would still apply. */ > char mcrypt_module_open(); > > int main() { > mcrypt_module_open() > ; return 0; } > > Changing the configure line to have either --with-mcrypt or --with-ldap > lets it run to completion, combining both leads to bad juju > -- Derick Rethans JDI Media Solutions H.v.Tussenbroekstraat 1 6952 BL Dieren The Netherlands e-mail: d.rethans@jdimedia.nl http://www.jdimedia.nl/

« previous php.dev (#30476) next »