php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22095 Won't configure correctly with libmcrypt enabled
Submitted: 2003-02-06 13:35 UTC Modified: 2003-02-07 11:24 UTC
From: Nicolas dot Ross at cybercat dot ca Assigned:
Status: Closed Package: *Configuration Issues
PHP Version: 4.3.0 OS: Mac OS X darwin
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: Nicolas dot Ross at cybercat dot ca
New email:
PHP Version: OS:

 

 [2003-02-06 13:35 UTC] Nicolas dot Ross at cybercat dot ca
On our Mac OS X (Darwin) server, I used to compile php with some twists and tricks, but 4.2.3 configured and compiled correctly width mcrypt enabled. Now I can't configure 4.3.0 with libmcrypt enabled.

Configure line :

./configure --with-apxs=/usr/local/apache/bin/apxs \
--with-mysql \
--with-fbsql \
--with-xml \
--enable-ftp \
--with-zlib \
--with-zlib-dir=../zlib \
--with-png \
--with-png-dir=../libpng-1.2.0 \
--with-jpeg \
--with-jpeg-dir=../jpeg-6b \
--with-gd \
--with-mcrypt \
--enable-track-vars \
--enable-trans-id

I get :

checking for mcrypt support... yes
checking for mcrypt_module_open in -lmcrypt... no
checking for init_mcrypt in -lmcrypt... no
configure: error: Sorry, I was not able to diagnose which libmcrypt version you have installed.

Here's the tail of config.log
char init_mcrypt();

int main() {
init_mcrypt()
; return 0; }

This configure line works perfectly without the mcrypt part, and results in a working php installation.

libmcrypt 2.5.5 is install in /usr/local and other php version (4.2.3) configure and compile againts it successfully.

I tried every combinaison of

--with-mcrypt=../libmcrypt-2.5.5
--with-mcrypt=/usr/local

and so on.

So any hints ?

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-02-06 14:38 UTC] Nicolas dot Ross at cybercat dot ca
It works in deed. But I had to remove all gd/png/jpeg/zlib stuff because of configure errors regarding png or zlib.

Is there a way to back-port the fix to distro php-4.3.0 ?
 [2003-02-06 14:40 UTC] derick@php.net
Copy ext/mcrypt/config.m4 to the php-4.2.3 directory (in ext/mcrypt), go to the php-4.2.3 directory and execute:
rm configure
rm config.cache
./buildconf

(and make sure you have autoconf 2.13)

then you can run configure with the options of your liking.

Derick
 [2003-02-07 11:24 UTC] Nicolas dot Ross at cybercat dot ca
Just a quick note, I took the config.m4 from ext/mcrypt/ of 4.2.3 and copied it into 4.3.0 tree, ran buildconf and now I get :

/usr/bin/ld: Undefined symbols:
_mcrypt_module_entry
/usr/bin/ld: warning unused multiple definitions of symbol _regerror
/usr/local/apache/bin/httpd definition of _regerror
/usr/lib/libm.dylib(regerror.o) unused definition of _regerror
make: *** [libs/libphp4.bundle] Error 1

And that even with all gd/tiff/png removed...
 [2003-02-20 18:35 UTC] spookey at spookey dot org
I'm actually seeing a similar problem on FreeBSD... there's a lot of documentation on it, but none of it is really working.  With --with-java, the configure breaks.  I've tried modifying the configure (as well as creating a new one from a copied .m4 ...).  None of the above 'solutions' worked.  When I remove --with-java, the mcrypt issue disappears.

checking for mcrypt support... yes
checking for mcrypt_module_open in -lmcrypt... no
checking for init_mcrypt in -lmcrypt... no
configure: error: Sorry, I was not able to diagnose which libmcrypt version you have installed.

Thanks for any help you may be able to provide.
 [2003-02-22 07:06 UTC] spookey at spookey dot org
Okay.. I figured it out.. looks like the java dist wasn't working and was causing the config to fail on mcrypt.  config.log revealed my mistakes.

Thanks.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 21 14:01:33 2024 UTC