ID:               30738
 Updated by:       [EMAIL PROTECTED]
 Reported By:      pauls at amersel dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         Compile Failure
 Operating System: FreeBSD 4.10-STABLE
 PHP Version:      4.3.9
 New Comment:

You don't have to compile with --disable-posix-threads anymore and this
error most likely is caused by having two different sets of mcrypt
headers. Remove all mcrypt headers and reinstall it from source.


Previous Comments:
------------------------------------------------------------------------

[2004-11-09 21:56:26] pauls at amersel dot com

Description:
------------
make fails when trying to build php with mcrypt support.  (configure
runs just fine, no complaints or warnings)

Configure line used:

--
./configure --with-apxs=/usr/local/apache/bin/apxs
--with-mysql=/usr/local --with-mm=../mm-1.3.1 --with-xml
--with-openssl=/usr/local/ssl --enable-ftp --with-sockets --with-mcrypt
--with-zip --with-pdf --with-expat
--

Tail end of make outpout starting from compile line which generates the
failure:

--
/bin/sh /usr/build/php-4.3.9/libtool --silent --preserve-dup-deps
--mode=compile gcc  -Iext/mcrypt/ -I/usr/build/php-4.
3.9/ext/mcrypt/ -DPHP_ATOM_INC -I/usr/build/php-4.3.9/include
-I/usr/build/php-4.3.9/main -I/usr/build/php-4.3.9 -I/usr
/build/php-4.3.9/Zend -I/usr/local/ssl/include -I/usr/local/include
-I/usr/local/include/mysql -I/usr/build/php-4.3.9/e
xt/xml/expat  -I/usr/build/php-4.3.9/TSRM  -g -O2  -prefer-pic -c
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c -o ext/mcryp
t/mcrypt.lo
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:229: warning: `MCRYPT_FAILED'
redefined
/usr/local/include/mcrypt.h:31: warning: this is the location of the
previous definition
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c: In function
`zm_startup_mcrypt':
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:280: warning: passing arg 3 of
`zend_register_long_constant' makes integer fro
m pointer without a cast
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:281: warning: passing arg 3 of
`zend_register_long_constant' makes integer fro
m pointer without a cast
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:282: `MCRYPT_BLOWFISH_128'
undeclared (first use in this function)
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:282: (Each undeclared
identifier is reported only once
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:282: for each function it
appears in.)
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:283: `MCRYPT_BLOWFISH_192'
undeclared (first use in this function)
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:284: `MCRYPT_BLOWFISH_256'
undeclared (first use in this function)
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:285: `MCRYPT_BLOWFISH_448'
undeclared (first use in this function)
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:286: warning: passing arg 3 of
`zend_register_long_constant' makes integer fro
m pointer without a cast
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:287: warning: passing arg 3 of
`zend_register_long_constant' makes integer fro
m pointer without a cast
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:288: warning: passing arg 3 of
`zend_register_long_constant' makes integer fro
m pointer without a cast
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:289: warning: passing arg 3 of
`zend_register_long_constant' makes integer fro
m pointer without a cast
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:290: `MCRYPT_IDEA' undeclared
(first use in this function)
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:291: warning: passing arg 3 of
`zend_register_long_constant' makes integer fro
m pointer without a cast
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:292: warning: passing arg 3 of
`zend_register_long_constant' makes integer fro
m pointer without a cast
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:293: warning: passing arg 3 of
`zend_register_long_constant' makes integer fro
m pointer without a cast
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:294: warning: passing arg 3 of
`zend_register_long_constant' makes integer fro
m pointer without a cast
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:295: `MCRYPT_RC2_128'
undeclared (first use in this function)
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:296: `MCRYPT_RC2_256'
undeclared (first use in this function)
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:297: `MCRYPT_RC2_1024'
undeclared (first use in this function)
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:298: `MCRYPT_RC4' undeclared
(first use in this function)
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:299: `MCRYPT_RC6_128'
undeclared (first use in this function)
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:300: `MCRYPT_RC6_192'
undeclared (first use in this function)
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:301: `MCRYPT_RC6_256'
undeclared (first use in this function)
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:302: `MCRYPT_SAFER_64'
undeclared (first use in this function)
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:303: `MCRYPT_SAFER_128'
undeclared (first use in this function)
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:304: warning: passing arg 3 of
`zend_register_long_constant' makes integer fro
m pointer without a cast
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:305: `MCRYPT_SERPENT_128'
undeclared (first use in this function)
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:306: `MCRYPT_SERPENT_192'
undeclared (first use in this function)
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:307: `MCRYPT_SERPENT_256'
undeclared (first use in this function)
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:308: `MCRYPT_TWOFISH_128'
undeclared (first use in this function)
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:309: `MCRYPT_TWOFISH_192'
undeclared (first use in this function)
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:310: `MCRYPT_TWOFISH_256'
undeclared (first use in this function)
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:311: warning: passing arg 3 of
`zend_register_long_constant' makes integer fro
m pointer without a cast
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c: In function
`zif_mcrypt_get_cipher_name':
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:1505: warning: assignment
makes pointer from integer without a cast
*** Error code 1

Stop in /usr/build/php-4.3.9.
--

I've also tried both with just the --with-mcrypt as well as
--with-mcrypt=/usr/local, specifying the path that mcrypt lib resides
in.

And, yes, I am compiled mcrypt with --disable-posix-threads

Any ideas?




------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=30738&edit=1

Reply via email to