#22898 [NEW]: Impossible to compile PHP with --with-mcrypt

2003-03-26 Thread syn_uw at hotmail dot com
From: syn_uw at hotmail dot com
Operating system: Debian GNU/Linux 3.0r1
PHP version:  4.3.1
PHP Bug Type: mcrypt related
Bug description:  Impossible to compile PHP with --with-mcrypt

I am trying to compile PHP 4.3.1 on a Linux box with support for mcrypt
(--with-mcrypt) using the latest version of the mcrypt library which is
2.5.7.

The problem is that when I use --with-mcrypt the compile fails with the
following error:

...snip...
/bin/sh libtool --silent --mode=compile gcc  -Iext/mcrypt/
-I/opt/source/php-4.3.1/ext/mcrypt/ -DPHP_ATOM_INC
-I/opt/source/php-4.3.1/include -I/opt/source/php-4.3.1/main
-I/opt/source/php-4.3.1 -I/opt/source/php-4.3.1/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/php-4.3.1/ext/xml/expat  -DLINUX=22 -DMOD_SSL=208114
-DUSE_HSREGEX -DEAPI -DEAPI_MM -DUSE_EXPAT -I/opt/source/php-4.3.1/TSRM 
-g -O2  -prefer-pic -c /opt/source/php-4.3.1/ext/mcrypt/mcrypt.c -o
ext/mcrypt/mcrypt.lo
/opt/source/php-4.3.1/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/php-4.3.1/ext/mcrypt/mcrypt.c: In function
`zm_startup_mcrypt':
/opt/source/php-4.3.1/ext/mcrypt/mcrypt.c:279: warning: passing arg 3 of
`zend_register_long_constant' makes integer from pointer without a cast
/opt/source/php-4.3.1/ext/mcrypt/mcrypt.c:280: warning: passing arg 3 of
`zend_register_long_constant' makes integer from pointer without a cast
/opt/source/php-4.3.1/ext/mcrypt/mcrypt.c:281: `MCRYPT_BLOWFISH_128'
undeclared (first use in this function)
/opt/source/php-4.3.1/ext/mcrypt/mcrypt.c:281: (Each undeclared identifier
is reported only once
/opt/source/php-4.3.1/ext/mcrypt/mcrypt.c:281: for each function it
appears in.)
/opt/source/php-4.3.1/ext/mcrypt/mcrypt.c:282: `MCRYPT_BLOWFISH_192'
undeclared (first use in this function)
/opt/source/php-4.3.1/ext/mcrypt/mcrypt.c:283: `MCRYPT_BLOWFISH_256'
undeclared (first use in this function)
/opt/source/php-4.3.1/ext/mcrypt/mcrypt.c:284: `MCRYPT_BLOWFISH_448'
undeclared (first use in this function)
/opt/source/php-4.3.1/ext/mcrypt/mcrypt.c:285: warning: passing arg 3 of
`zend_register_long_constant' makes integer from pointer without a cast
/opt/source/php-4.3.1/ext/mcrypt/mcrypt.c:286: warning: passing arg 3 of
`zend_register_long_constant' makes integer from pointer without a cast
/opt/source/php-4.3.1/ext/mcrypt/mcrypt.c:287: warning: passing arg 3 of
`zend_register_long_constant' makes integer from pointer without a cast
/opt/source/php-4.3.1/ext/mcrypt/mcrypt.c:288: warning: passing arg 3 of
`zend_register_long_constant' makes integer from pointer without a cast
/opt/source/php-4.3.1/ext/mcrypt/mcrypt.c:289: `MCRYPT_IDEA' undeclared
(first use in this function)
/opt/source/php-4.3.1/ext/mcrypt/mcrypt.c:290: warning: passing arg 3 of
`zend_register_long_constant' makes integer from pointer without a cast
/opt/source/php-4.3.1/ext/mcrypt/mcrypt.c:291: warning: passing arg 3 of
`zend_register_long_constant' makes integer from pointer without a cast
/opt/source/php-4.3.1/ext/mcrypt/mcrypt.c:292: warning: passing arg 3 of
`zend_register_long_constant' makes integer from pointer without a cast
/opt/source/php-4.3.1/ext/mcrypt/mcrypt.c:293: warning: passing arg 3 of
`zend_register_long_constant' makes integer from pointer without a cast
/opt/source/php-4.3.1/ext/mcrypt/mcrypt.c:294: `MCRYPT_RC2_128' undeclared
(first use in this function)
/opt/source/php-4.3.1/ext/mcrypt/mcrypt.c:295: `MCRYPT_RC2_256' undeclared
(first use in this function)
/opt/source/php-4.3.1/ext/mcrypt/mcrypt.c:296: `MCRYPT_RC2_1024'
undeclared (first use in this function)
/opt/source/php-4.3.1/ext/mcrypt/mcrypt.c:297: `MCRYPT_RC4' undeclared
(first use in this function)
/opt/source/php-4.3.1/ext/mcrypt/mcrypt.c:298: `MCRYPT_RC6_128' undeclared
(first use in this function)
/opt/source/php-4.3.1/ext/mcrypt/mcrypt.c:299: `MCRYPT_RC6_192' undeclared
(first use in this function)
/opt/source/php-4.3.1/ext/mcrypt/mcrypt.c:300: `MCRYPT_RC6_256' undeclared
(first use in this function)
/opt/source/php-4.3.1/ext/mcrypt/mcrypt.c:301: `MCRYPT_SAFER_64'
undeclared (first use in this function)
/opt/source/php-4.3.1/ext/mcrypt/mcrypt.c:302: `MCRYPT_SAFER_128'
undeclared (first use in this function)
/opt/source/php-4.3.1/ext/mcrypt/mcrypt.c:303: warning: passing arg 3 of
`zend_register_long_constant' makes integer from pointer without a cast
/opt/source/php-4.3.1/ext/mcrypt/mcrypt.c:304: `MCRYPT_SERPENT_128'
undeclared (first use in this function)
/opt/source/php-4.3.1/ext/mcrypt/mcrypt.c:305: `MCRYPT_SERPENT_192'
undeclared (first use in this function)
/opt/source/php-4.3.1/ext/mcrypt/mcrypt.c:306: `MCRYPT_SERPENT_256'
undeclared (first use in this function)
/opt/source/php-4.3.1/ext/mcrypt/mcrypt.c:307: `MCRYPT_TWOFISH_128'
undeclared

#22073 [Com]: --with-mcrypt won't compile

2003-03-25 Thread syn_uw at hotmail dot com
 ID:   22073
 Comment by:   syn_uw at hotmail dot com
 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:

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