ID:               22073
 User updated by:  [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Feedback
+Status:           Open
 Bug Type:         Compile Failure
 Operating System: Red Hat Linux 8.0
 PHP Version:      4.3.0
 New Comment:

I am not using mcrypt. I am only using libmcrypt (as per the PHP
documentation). The version is 2.5.6

> When you are using the --with-mcrypt=../libmcrypt-2.5.6/, does it
still
try to open /usr/local/include/mcrypt.h?

Uh ... don't know. How do I find the answer for you?

I followed your suggestions, here is the result:

# cd /usr/src/php-4.3.0/
# rm config.cache 
# make clean
find . -name \*.lo -o -name \*.o | xargs rm -f
find . -name \*.la -o -name \*.a | xargs rm -f 
find . -name \*.so | xargs rm -f
find . -name .libs -a -type d|xargs rm -rf
rm -f libphp4.la sapi/cli/php libphp4.la modules/* libs/*
# ./configure --without-mysql --with-apache=../apache_1.3.27/
--with-mcrypt          
[...]
Configuring extensions
[...]
checking for mcrypt support... yes
checking for mcrypt_module_open in -lmcrypt... no
checking for init_mcrypt in -lmcrypt... yes

# make
gcc  -Iext/ctype/ -I/usr/src/php-4.3.0/ext/ctype/ -DPHP_ATOM_INC
-I/usr/src/php-4.3.0/include -I/usr/src/php-4.3.0/main
-I/usr/src/php-4.3.0 -I/usr/src/php-4.3.0/Zend -I/usr/local/include
-I/usr/src/php-4.3.0/ext/xml/expat  -I/usr/src/php-4.3.0/TSRM  -g -O2 
-c /usr/src/php-4.3.0/ext/ctype/ctype.c -o ext/ctype/ctype.o  && echo >
ext/ctype/ctype.lo
cc1: warning: changing search order for system directory
"/usr/local/include"
cc1: warning:   as it has already been specified as a non-system
directory
gcc  -Iext/mcrypt/ -I/usr/src/php-4.3.0/ext/mcrypt/ -DPHP_ATOM_INC
-I/usr/src/php-4.3.0/include -I/usr/src/php-4.3.0/main
-I/usr/src/php-4.3.0 -I/usr/src/php-4.3.0/Zend -I/usr/local/include
-I/usr/src/php-4.3.0/ext/xml/expat  -I/usr/src/php-4.3.0/TSRM  -g -O2 
-c /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c -o ext/mcrypt/mcrypt.o  &&
echo > ext/mcrypt/mcrypt.lo
cc1: warning: changing search order for system directory
"/usr/local/include"
cc1: warning:   as it has already been specified as a non-system
directory
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:229:1: warning: "MCRYPT_FAILED"
redefined
In file included from /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:34:
/usr/local/include/mcrypt.h:31:1: warning: this is the location of the
previous definition
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c: In function
`zm_startup_mcrypt':
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:279: warning: passing arg 3 of
`zend_register_long_constant' makes integer from pointer without a
cast
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:280: warning: passing arg 3 of
`zend_register_long_constant' makes integer from pointer without a
cast
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:281: `MCRYPT_BLOWFISH_128'
undeclared (first use in this function)
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:281: (Each undeclared identifier
is reported only once
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:281: for each function it
appears in.)
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:282: `MCRYPT_BLOWFISH_192'
undeclared (first use in this function)
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:283: `MCRYPT_BLOWFISH_256'
undeclared (first use in this function)
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:284: `MCRYPT_BLOWFISH_448'
undeclared (first use in this function)
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:285: warning: passing arg 3 of
`zend_register_long_constant' makes integer from pointer without a
cast
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:286: warning: passing arg 3 of
`zend_register_long_constant' makes integer from pointer without a
cast
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:287: warning: passing arg 3 of
`zend_register_long_constant' makes integer from pointer without a
cast
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:288: warning: passing arg 3 of
`zend_register_long_constant' makes integer from pointer without a
cast
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:289: `MCRYPT_IDEA' undeclared
(first use in this function)
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:290: warning: passing arg 3 of
`zend_register_long_constant' makes integer from pointer without a
cast
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:291: warning: passing arg 3 of
`zend_register_long_constant' makes integer from pointer without a
cast
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:292: warning: passing arg 3 of
`zend_register_long_constant' makes integer from pointer without a
cast
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:293: warning: passing arg 3 of
`zend_register_long_constant' makes integer from pointer without a
cast
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:294: `MCRYPT_RC2_128' undeclared
(first use in this function)
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:295: `MCRYPT_RC2_256' undeclared
(first use in this function)
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:296: `MCRYPT_RC2_1024'
undeclared (first use in this function)
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:297: `MCRYPT_RC4' undeclared
(first use in this function)
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:298: `MCRYPT_RC6_128' undeclared
(first use in this function)
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:299: `MCRYPT_RC6_192' undeclared
(first use in this function)
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:300: `MCRYPT_RC6_256' undeclared
(first use in this function)
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:301: `MCRYPT_SAFER_64'
undeclared (first use in this function)
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:302: `MCRYPT_SAFER_128'
undeclared (first use in this function)
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:303: warning: passing arg 3 of
`zend_register_long_constant' makes integer from pointer without a
cast
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:304: `MCRYPT_SERPENT_128'
undeclared (first use in this function)
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:305: `MCRYPT_SERPENT_192'
undeclared (first use in this function)
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:306: `MCRYPT_SERPENT_256'
undeclared (first use in this function)
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:307: `MCRYPT_TWOFISH_128'
undeclared (first use in this function)
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:308: `MCRYPT_TWOFISH_192'
undeclared (first use in this function)
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:309: `MCRYPT_TWOFISH_256'
undeclared (first use in this function)
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:310: warning: passing arg 3 of
`zend_register_long_constant' makes integer from pointer without a
cast
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c: In function
`zif_mcrypt_get_cipher_name':
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:1503: warning: assignment makes
pointer from integer without a cast
make: *** [ext/mcrypt/mcrypt.lo] Error 1


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

[2003-02-05 10:50:05] [EMAIL PROTECTED]

What is the version of mcrypt you are currently
running,(libmcrypt-config --version) should provide this information.
When you are using the --with-mcrypt=../libmcrypt-2.5.6/, does it still
try to open /usr/local/include/mcrypt.h?

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

[2003-02-05 10:45:02] [EMAIL PROTECTED]

I did both before submitting the report. I did a "make distclean" and
"rm config.cache". For every set of options or possible way of
compiling/configuring I always do both and yet get this error ...

Please re-open this bug.

Is there anything else you would like me to try?

Thanks

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

[2003-02-05 10:42:58] [EMAIL PROTECTED]

The fact that certain options appear cached during the configure phase
could be the problem. Before doing compile run 'make clean' or remove
config.cache. If the bug persists please re-open the bug report.

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

[2003-02-05 10:17:42] [EMAIL PROTECTED]

I also tried using minimal configure option but still got the same
error with any of the following:

./configure --without-mysql --with-apache=../apache_1.3.27/
--with-mcrypt

./configure --without-mysql --with-apache=../apache_1.3.27/
--with-mcrypt=/usr/local

./configure --without-mysql --with-apache=../apache_1.3.27/
--with-mcrypt=../libmcrypt-2.5.6/

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

[2003-02-05 09:46:26] [EMAIL PROTECTED]

First off, the documentation on how to install mcrypt support for PHP
is severely lacking so I'm sorry if this is a stupid bug report. (I am
also submitting a documentation bug report to points this out :)

I asked on the newsgroups and tried the several different methods
suggested for installing mcrypt support but they all failed at one
stage or another.

The furthest I can get is to a PHP make, but that always fails.

I cleaned my system off all old installations and downloaded libmcrypt
2.5.6, did:

./configure
make && make install

with no errors:

To make sure all old files where gone and I have only the new
installation files:

[root@host110 php-4.3.0]# locate mcrypt.h
/usr/local/include/mcrypt.h
/usr/src/php-4.3.0/ext/mcrypt/php_mcrypt.h
/usr/src/libmcrypt-2.5.6/lib/mcrypt.h
/usr/src/libmcrypt-2.5.6/lib/mcrypt.h.in


I can ./configure PHP successfully but when I try and make I get this
very long error. is this a PHP bug or did I miss something along the
installation process:

./configure --with-pgsql=/usr/local/psql/ --without-mysql
--with-apache=../apache_1.3.27/ --enable-mbstring
--enable-mbstring-enc-trans --enable-mbregex --with-mcrypt

Works fine, giving:
Running system checks
[...]
checking for crypt.h... (cached) yes
[...]
checking for crypt... (cached) no
[...]
checking for crypt in -lcrypt... (cached) yes
[...]
Configuring extensions
[...]
checking for mcrypt support... yes
checking for mcrypt_module_open in -lmcrypt... (cached) no
checking for init_mcrypt in -lmcrypt... (cached) yes
[...]
checking for standard DES crypt... (cached) yes
checking for extended DES crypt... (cached) no
checking for MD5 crypt... (cached) yes
checking for Blowfish crypt... (cached) no

[root@host110 php-4.3.0]# make
gcc  -Iext/mcrypt/ -I/usr/src/php-4.3.0/ext/mcrypt/ -DPHP_ATOM_INC
-I/usr/src/php-4.3.0/include -I/usr/src/php-4.3.0/main
-I/usr/src/php-4.3.0 -I/usr/src/php-4.3.0/Zend -I/usr/local/include
-I/usr/local/psql//include -I/usr/src/php-4.3.0/ext/xml/expat 
-I/usr/src/php-4.3.0/TSRM  -g -O2  -c
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c -o ext/mcrypt/mcrypt.o  && echo
> ext/mcrypt/mcrypt.lo
cc1: warning: changing search order for system directory
"/usr/local/include"
cc1: warning:   as it has already been specified as a non-system
directory
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:229:1: warning: "MCRYPT_FAILED"
redefined
In file included from /usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:34:
/usr/local/include/mcrypt.h:31:1: warning: this is the location of the
previous definition
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c: In function
`zm_startup_mcrypt':
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:279: warning: passing arg 3 of
`zend_register_long_constant' makes integer from pointer without a
cast
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:280: warning: passing arg 3 of
`zend_register_long_constant' makes integer from pointer without a
cast
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:281: `MCRYPT_BLOWFISH_128'
undeclared (first use in this function)
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:281: (Each undeclared identifier
is reported only once
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:281: for each function it
appears in.)
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:282: `MCRYPT_BLOWFISH_192'
undeclared (first use in this function)
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:283: `MCRYPT_BLOWFISH_256'
undeclared (first use in this function)
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:284: `MCRYPT_BLOWFISH_448'
undeclared (first use in this function)
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:285: warning: passing arg 3 of
`zend_register_long_constant' makes integer from pointer without a
cast
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:286: warning: passing arg 3 of
`zend_register_long_constant' makes integer from pointer without a
cast
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:287: warning: passing arg 3 of
`zend_register_long_constant' makes integer from pointer without a
cast
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:288: warning: passing arg 3 of
`zend_register_long_constant' makes integer from pointer without a
cast
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:289: `MCRYPT_IDEA' undeclared
(first use in this function)
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:290: warning: passing arg 3 of
`zend_register_long_constant' makes integer from pointer without a
cast
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:291: warning: passing arg 3 of
`zend_register_long_constant' makes integer from pointer without a
cast
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:292: warning: passing arg 3 of
`zend_register_long_constant' makes integer from pointer without a
cast
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:293: warning: passing arg 3 of
`zend_register_long_constant' makes integer from pointer without a
cast
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:294: `MCRYPT_RC2_128' undeclared
(first use in this function)
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:295: `MCRYPT_RC2_256' undeclared
(first use in this function)
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:296: `MCRYPT_RC2_1024'
undeclared (first use in this function)
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:297: `MCRYPT_RC4' undeclared
(first use in this function)
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:298: `MCRYPT_RC6_128' undeclared
(first use in this function)
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:299: `MCRYPT_RC6_192' undeclared
(first use in this function)
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:300: `MCRYPT_RC6_256' undeclared
(first use in this function)
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:301: `MCRYPT_SAFER_64'
undeclared (first use in this function)
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:302: `MCRYPT_SAFER_128'
undeclared (first use in this function)
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:303: warning: passing arg 3 of
`zend_register_long_constant' makes integer from pointer without a
cast
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:304: `MCRYPT_SERPENT_128'
undeclared (first use in this function)
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:305: `MCRYPT_SERPENT_192'
undeclared (first use in this function)
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:306: `MCRYPT_SERPENT_256'
undeclared (first use in this function)
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:307: `MCRYPT_TWOFISH_128'
undeclared (first use in this function)
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:308: `MCRYPT_TWOFISH_192'
undeclared (first use in this function)
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:309: `MCRYPT_TWOFISH_256'
undeclared (first use in this function)
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:310: warning: passing arg 3 of
`zend_register_long_constant' makes integer from pointer without a
cast
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c: In function
`zif_mcrypt_get_cipher_name':
/usr/src/php-4.3.0/ext/mcrypt/mcrypt.c:1503: warning: assignment makes
pointer from integer without a cast
make: *** [ext/mcrypt/mcrypt.lo] Error 1


make however gives this error:



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


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

Reply via email to