Hello All,
I am trying to build PHP 4.3.6
with libmcrypt-2.5.7 on HP-UX. I got the following errors while compiling PHP
source.
How to solve the following errors? Any help would
be really appreciated. Thanks in advance.
Platform :
HP-UX
PHP :
php-4.3.6
libmcrypt :
libmcrypt-2.5.7
# gmake
.........
.......
/disk1/mathan/php-4.3.6/ext/mcrypt/mcrypt.c:229:1:
warning: "MCRYPT_FAILED" redefined
In file included from /disk1/mathan/php-4.3.6/ext/mcrypt/mcrypt.c:34:
/disk1/mathan/fileset/libmcrypt/include/mcrypt.h:31:1: warning: this is the location of the previous definition
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c: In function `zm_startup_mcrypt':
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:280: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:281: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:282: error: `MCRYPT_BLOWFISH_128' undeclared (first use in this function)
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:282: error: (Each undeclared identifier is reported only once
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:282: error: for each function it appears in.)
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:283: error: `MCRYPT_BLOWFISH_192' undeclared (first use in this function)
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:284: error: `MCRYPT_BLOWFISH_256' undeclared (first use in this function)
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:285: error: `MCRYPT_BLOWFISH_448' undeclared (first use in this function)
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:286: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:287: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:288: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:289: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:290: error: `MCRYPT_IDEA' undeclared (first use in this function)
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:291: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:292: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:293: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:294: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:295: error: `MCRYPT_RC2_128' undeclared (first use in this function)
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:296: error: `MCRYPT_RC2_256' undeclared (first use in this function)
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:297: error: `MCRYPT_RC2_1024' undeclared (first use in this function)
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:298: error: `MCRYPT_RC4' undeclared (first use in this function)
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:299: error: `MCRYPT_RC6_128' undeclared (first use in this function)
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:300: error: `MCRYPT_RC6_192' undeclared (first use in this function)
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:301: error: `MCRYPT_RC6_256' undeclared (first use in this function)
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:302: error: `MCRYPT_SAFER_64' undeclared (first use in this function)
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:303: error: `MCRYPT_SAFER_128' undeclared (first use in this function)
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:304: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:305: error: `MCRYPT_SERPENT_128' undeclared (first use in this function)
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:306: error: `MCRYPT_SERPENT_192' undeclared (first use in this function)
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:307: error: `MCRYPT_SERPENT_256' undeclared (first use in this function)
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:308: error: `MCRYPT_TWOFISH_128' undeclared (first use in this function)
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:309: error: `MCRYPT_TWOFISH_192' undeclared (first use in this function)
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:310: error: `MCRYPT_TWOFISH_256' undeclared (first use in this function)
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:311: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c: In function `zif_mcrypt_get_cipher_name':
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:1505: warning: assignment makes pointer from integer without a cast
gmake: *** [ext/mcrypt/mcrypt.lo] Error 1
#
In file included from /disk1/mathan/php-4.3.6/ext/mcrypt/mcrypt.c:34:
/disk1/mathan/fileset/libmcrypt/include/mcrypt.h:31:1: warning: this is the location of the previous definition
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c: In function `zm_startup_mcrypt':
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:280: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:281: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:282: error: `MCRYPT_BLOWFISH_128' undeclared (first use in this function)
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:282: error: (Each undeclared identifier is reported only once
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:282: error: for each function it appears in.)
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:283: error: `MCRYPT_BLOWFISH_192' undeclared (first use in this function)
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:284: error: `MCRYPT_BLOWFISH_256' undeclared (first use in this function)
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:285: error: `MCRYPT_BLOWFISH_448' undeclared (first use in this function)
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:286: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:287: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:288: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:289: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:290: error: `MCRYPT_IDEA' undeclared (first use in this function)
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:291: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:292: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:293: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:294: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:295: error: `MCRYPT_RC2_128' undeclared (first use in this function)
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:296: error: `MCRYPT_RC2_256' undeclared (first use in this function)
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:297: error: `MCRYPT_RC2_1024' undeclared (first use in this function)
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:298: error: `MCRYPT_RC4' undeclared (first use in this function)
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:299: error: `MCRYPT_RC6_128' undeclared (first use in this function)
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:300: error: `MCRYPT_RC6_192' undeclared (first use in this function)
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:301: error: `MCRYPT_RC6_256' undeclared (first use in this function)
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:302: error: `MCRYPT_SAFER_64' undeclared (first use in this function)
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:303: error: `MCRYPT_SAFER_128' undeclared (first use in this function)
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:304: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:305: error: `MCRYPT_SERPENT_128' undeclared (first use in this function)
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:306: error: `MCRYPT_SERPENT_192' undeclared (first use in this function)
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:307: error: `MCRYPT_SERPENT_256' undeclared (first use in this function)
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:308: error: `MCRYPT_TWOFISH_128' undeclared (first use in this function)
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:309: error: `MCRYPT_TWOFISH_192' undeclared (first use in this function)
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:310: error: `MCRYPT_TWOFISH_256' undeclared (first use in this function)
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:311: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c: In function `zif_mcrypt_get_cipher_name':
/disk1/mathan/php-4.3.6ext/mcrypt/mcrypt.c:1505: warning: assignment makes pointer from integer without a cast
gmake: *** [ext/mcrypt/mcrypt.lo] Error 1
#
Any help would be really appreciated
Thanks,
Mathan
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.718 / Virus Database: 474 - Release Date: 7/9/2004