Bug #4020: macro 'PHP3_MAX_SALT_LEN' miss-define error
| From: | york dot ye at china dot com | Date: | Tue, 04 Apr 2000 04:53:59 +0000 |
| Subject: | Bug #4020: macro 'PHP3_MAX_SALT_LEN' miss-define error | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-17580@lists.php.net to get a copy of this message | ||
From: york.ye@china.com
Operating system: Redhat 6.1
PHP version: 3.0 Latest CVS (04/04/2000)
PHP Bug Type: Compile Failure
Bug description: macro 'PHP3_MAX_SALT_LEN' miss-define error
When I compile Apache 1.3.12 + php-4.0b4pl1 + OpenSSL + mod_ssl + MySQL on my Redhat6.1/intel-6x86:
.....
$ CFLAGS='-O2 -I/usr/local/ssl/include' \
./configure \
--with-apache=../apache_1.3.12 \
--with-mysql=/usr \
--with-session \
--enable-memory-limit=yes \
--enable-track-vars
--with-config-file-path=/usr/local/lib/php.ini
$ gmake
then it will return such error message:
macro 'PHP3_MAX_SALT_LEN' not defined in file 'ext\standard\crypt.c'
I checked the file, see may PHP3_STD_DES_CRYPT, PHP3_EXT_DES_CRYPT, PHP3_MD5_CRYPT,
PHP3_BLOWFISH_CRYPT are all FALSE,
so I add these code:
#ifndef PHP3_MAX_SALT_LEN
#define PHP3_MAX_SALT_LEN 17
#endif
then the compile passed. but we know it was NOT the official's solve...