Re: Compiling --with-mcrypt [2.4.4] gives errors

From: Date: Wed, 23 Aug 2000 15:45:48 +0000
Subject: Re: Compiling --with-mcrypt [2.4.4] gives errors
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-30400@lists.php.net to get a copy of this message
Hi, I looked at config.log and this is what I saw 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 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; } I had --with-ldap=/usr/local/site/ldap in my configure line, I removed that and recompiled and everything worked smoothly. I then reinstalled OpenLDAP 1.2.11 from source and placed --with-ldap=/usr/local/site/ldap in the configure statement and I get the same error It seems to me that -L/usr/local/site/ldap is not being placed in the compile path > Hi, > > could you cut and paste the appropriate lines from configure.log > and send these to this list? > > Derick > > Yusuf Goolamabbas wrote: > > > Linux 2.2.16 with RH 6.2 > > > > Installed libmcrypt 2.4.4 with libmhash 0.8.2 and mcrypt 2.5.4 > > Compiling PHP4 out of CVS gives this error during configure > > checking for mcrypt support... yes > > checking for init_mcrypt in -lmcrypt... no > > checking for mcrypt_module_open in -lmcrypt... no > > configure: error: Sorry > > > > -- > > Yusuf Goolamabbas > > yusufg@outblaze.com > > > > -- > > PHP Development Mailing List <http://www.php.net/> > > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > > For additional commands, e-mail: php-dev-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > -- > Derick Rethans > JDI Media Solutions > > H.v.Tussenbroekstraat 1 > 6952 BL Dieren > The Netherlands > > e-mail: d.rethans@jdimedia.nl > http://www.jdimedia.nl/ > > -- Yusuf Goolamabbas yusufg@outblaze.com

« previous php.dev (#30400) next »