#22073 [Csd]: --with-mcrypt won't compile
| From: | jc at mega-bucks dot co dot jp | Date: | Wed, 09 Apr 2003 08:45:40 +0000 |
| Subject: | #22073 [Csd]: --with-mcrypt won't compile | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-37406@lists.php.net to get a copy of this message | ||
ID: 22073
User updated by: jc at mega-bucks dot co dot jp
Reported By: jc at mega-bucks dot co dot jp
Status: Closed
Bug Type: Compile Failure
Operating System: Red Hat Linux 8.0
PHP Version: 4.3.0
New Comment:
I've been able to compile (after fighting with mcrypt for a few hours)
using:
libmcrypt-2.5.7
mcrypt-2.6.4
mhash-0.8.18
php-4.3.2RC1
Previous Comments:
------------------------------------------------------------------------
[2003-04-08 14:31:58] odell at actionforresults dot com
I also STILL encounter this error using the latest snapshot and
libmcrypt 2.5.7
running freebsd 4.4
------------------------------------------------------------------------
[2003-03-25 18:33:45] muti at afterglo dot ws
I am also encountering this problem using PHP 4.3.1 (also tried w/
latest CVS stable snapshot) and libmcrypt 2.5.7 on OpenBSD 3.2.
------------------------------------------------------------------------
[2003-03-25 12:20:47] syn_uw at hotmail dot com
Hello,
I just wanted to let you know that this bug should maybe be re-opened
as I have exactly the same problem, so I came on this bug then
downloaded the latest STABLE snapshot (php4-STABLE-200303251630) as
recommended in this bug but the bug is still here as you can see here
the output of the make:
...
/bin/sh /opt/source/php4-STABLE-200303251630/libtool --silent
--preserve-dup-deps --mode=compile gcc -Iext/mcrypt/
-I/opt/source/php4-STABLE-200303251630/ext/mcrypt/ -DPHP_ATOM_INC
-I/opt/source/php4-STABLE-200303251630/include
-I/opt/source/php4-STABLE-200303251630/main
-I/opt/source/php4-STABLE-200303251630
-I/opt/source/php4-STABLE-200303251630/Zend -I/opt/openssl/include
-I/usr/include/freetype2 -I/opt/source/imap-2002b/c-client
-I/opt/openldap-client/include -I/opt/mcryptlib/include
-I/opt/pdflib/include -I/opt/pgsqllib/include
-I/opt/source/php4-STABLE-200303251630/ext/xml/expat
-I/opt/source/php4-STABLE-200303251630/TSRM -g -O2 -prefer-pic -c
/opt/source/php4-STABLE-200303251630/ext/mcrypt/mcrypt.c -o
ext/mcrypt/mcrypt.lo
/opt/source/php4-STABLE-200303251630/ext/mcrypt/mcrypt.c:229: warning:
`MCRYPT_FAILED' redefined
/opt/mcryptlib/include/mcrypt.h:31: warning: this is the location of
the previous definition
/opt/source/php4-STABLE-200303251630/ext/mcrypt/mcrypt.c: In function
`zm_startup_mcrypt':
/opt/source/php4-STABLE-200303251630/ext/mcrypt/mcrypt.c:279: warning:
passing arg 3 of `zend_register_long_constant' makes integer from
pointer without a cast
/opt/source/php4-STABLE-200303251630/ext/mcrypt/mcrypt.c:280: warning:
passing arg 3 of `zend_register_long_constant' makes integer from
pointer without a cast
/opt/source/php4-STABLE-200303251630/ext/mcrypt/mcrypt.c:281:
`MCRYPT_BLOWFISH_128' undeclared (first use in this function)
/opt/source/php4-STABLE-200303251630/ext/mcrypt/mcrypt.c:281: (Each
undeclared identifier is reported only once
/opt/source/php4-STABLE-200303251630/ext/mcrypt/mcrypt.c:281: for each
function it appears in.)
/opt/source/php4-STABLE-200303251630/ext/mcrypt/mcrypt.c:282:
`MCRYPT_BLOWFISH_192' undeclared (first use in this function)
/opt/source/php4-STABLE-200303251630/ext/mcrypt/mcrypt.c:283:
`MCRYPT_BLOWFISH_256' undeclared (first use in this function)
/opt/source/php4-STABLE-200303251630/ext/mcrypt/mcrypt.c:284:
`MCRYPT_BLOWFISH_448' undeclared (first use in this function)
/opt/source/php4-STABLE-200303251630/ext/mcrypt/mcrypt.c:285: warning:
passing arg 3 of `zend_register_long_constant' makes integer from
pointer without a cast
/opt/source/php4-STABLE-200303251630/ext/mcrypt/mcrypt.c:286: warning:
passing arg 3 of `zend_register_long_constant' makes integer from
pointer without a cast
/opt/source/php4-STABLE-200303251630/ext/mcrypt/mcrypt.c:287: warning:
passing arg 3 of `zend_register_long_constant' makes integer from
pointer without a cast
/opt/source/php4-STABLE-200303251630/ext/mcrypt/mcrypt.c:288: warning:
passing arg 3 of `zend_register_long_constant' makes integer from
pointer without a cast
/opt/source/php4-STABLE-200303251630/ext/mcrypt/mcrypt.c:289:
`MCRYPT_IDEA' undeclared (first use in this function)
/opt/source/php4-STABLE-200303251630/ext/mcrypt/mcrypt.c:290: warning:
passing arg 3 of `zend_register_long_constant' makes integer from
pointer without a cast
/opt/source/php4-STABLE-200303251630/ext/mcrypt/mcrypt.c:291: warning:
passing arg 3 of `zend_register_long_constant' makes integer from
pointer without a cast
/opt/source/php4-STABLE-200303251630/ext/mcrypt/mcrypt.c:292: warning:
passing arg 3 of `zend_register_long_constant' makes integer from
pointer without a cast
/opt/source/php4-STABLE-200303251630/ext/mcrypt/mcrypt.c:293: warning:
passing arg 3 of `zend_register_long_constant' makes integer from
pointer without a cast
/opt/source/php4-STABLE-200303251630/ext/mcrypt/mcrypt.c:294:
`MCRYPT_RC2_128' undeclared (first use in this function)
/opt/source/php4-STABLE-200303251630/ext/mcrypt/mcrypt.c:295:
`MCRYPT_RC2_256' undeclared (first use in this function)
/opt/source/php4-STABLE-200303251630/ext/mcrypt/mcrypt.c:296:
`MCRYPT_RC2_1024' undeclared (first use in this function)
/opt/source/php4-STABLE-200303251630/ext/mcrypt/mcrypt.c:297:
`MCRYPT_RC4' undeclared (first use in this function)
/opt/source/php4-STABLE-200303251630/ext/mcrypt/mcrypt.c:298:
`MCRYPT_RC6_128' undeclared (first use in this function)
/opt/source/php4-STABLE-200303251630/ext/mcrypt/mcrypt.c:299:
`MCRYPT_RC6_192' undeclared (first use in this function)
/opt/source/php4-STABLE-200303251630/ext/mcrypt/mcrypt.c:300:
`MCRYPT_RC6_256' undeclared (first use in this function)
/opt/source/php4-STABLE-200303251630/ext/mcrypt/mcrypt.c:301:
`MCRYPT_SAFER_64' undeclared (first use in this function)
/opt/source/php4-STABLE-200303251630/ext/mcrypt/mcrypt.c:302:
`MCRYPT_SAFER_128' undeclared (first use in this function)
/opt/source/php4-STABLE-200303251630/ext/mcrypt/mcrypt.c:303: warning:
passing arg 3 of `zend_register_long_constant' makes integer from
pointer without a cast
/opt/source/php4-STABLE-200303251630/ext/mcrypt/mcrypt.c:304:
`MCRYPT_SERPENT_128' undeclared (first use in this function)
/opt/source/php4-STABLE-200303251630/ext/mcrypt/mcrypt.c:305:
`MCRYPT_SERPENT_192' undeclared (first use in this function)
/opt/source/php4-STABLE-200303251630/ext/mcrypt/mcrypt.c:306:
`MCRYPT_SERPENT_256' undeclared (first use in this function)
/opt/source/php4-STABLE-200303251630/ext/mcrypt/mcrypt.c:307:
`MCRYPT_TWOFISH_128' undeclared (first use in this function)
/opt/source/php4-STABLE-200303251630/ext/mcrypt/mcrypt.c:308:
`MCRYPT_TWOFISH_192' undeclared (first use in this function)
/opt/source/php4-STABLE-200303251630/ext/mcrypt/mcrypt.c:309:
`MCRYPT_TWOFISH_256' undeclared (first use in this function)
/opt/source/php4-STABLE-200303251630/ext/mcrypt/mcrypt.c:310: warning:
passing arg 3 of `zend_register_long_constant' makes integer from
pointer without a cast
/opt/source/php4-STABLE-200303251630/ext/mcrypt/mcrypt.c: In function
`zif_mcrypt_get_cipher_name':
/opt/source/php4-STABLE-200303251630/ext/mcrypt/mcrypt.c:1503: warning:
assignment makes pointer from integer without a cast
make: *** [ext/mcrypt/mcrypt.lo] Error 1
I am using the following configure command:
./configure --prefix=/opt/php --with-apxs=/opt/apache/bin/apxs
--with-pgsql=/opt/pgsqllib --with-mysql --with-gd --with-jpeg-dir
--with-png-dir --with-freetype-dir --with-pdflib=/opt/pdflib
--with-zlib --with-openssl=/opt/openssl --with-gettext
--with-mcrypt=/opt/mcryptlib --with-xml
--with-ldap=/opt/openldap-client --with-imap=/opt/source/imap-2002b
--with-imap-ssl=/opt/source/imap-2002b
The version of the mcrypt library is the latest: 2.5.7 and the OS is
Debian GNU/Linux (woody) 3.0r1 running the 2.4.18 kernel.
Please let me know if you need more informations.
Does anyone have an idea what the problem now could be ?
Many thanks for your help
------------------------------------------------------------------------
[2003-02-06 04:46:13] derick@php.net
PHP's configure still relied that libmcrypt used libltdl always, which
is no longer the case as of libmcrypt 2.5.6.
------------------------------------------------------------------------
[2003-02-05 20:53:46] jc at mega-bucks dot co dot jp
Any idea what the bug was?
If it's too much trouble to track down the source of the bug don't wory
about it but if someone knows please do tell :)
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/22073
--
Edit this bug report at http://bugs.php.net/?id=22073&edit=1