ID: 14470
Updated by: sterling
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Closed
Bug Type: mcrypt related
Operating System: FreeBSD 4.3-RELEASE
PHP Version: 4.1.0
New Comment:

Fixed in CVS... should work with libmcrypt 2.4 anyway though...

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

[2001-12-13 01:21:16] [EMAIL PROTECTED]

My guess is that you have some old headers around.
Can you try to change the part of php_config.h that you pasted to:

/*   */
#define HAVE_LIBMCRYPT24 */

/*   */
/* #undef HAVE_LIBMCRYPT22 1

And the re-make (not configure). Please also search for the file mcrypt.h on your 
system, it may exist multiple times.

Derick

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

[2001-12-13 00:31:31] [EMAIL PROTECTED]

I am using mcrypt-2.2.6 and libmcrypt-2.4.15


main/php_config.h:
--------------------
/*   */
/* #undef HAVE_LIBMCRYPT24 */

/*   */
#define HAVE_LIBMCRYPT22 1

/*   */
#define HAVE_LIBMCRYPT 1

/* Whether to build mcrypt as dynamic module */
/* #undef COMPILE_DL_MCRYPT */

/*   */
#define HAVE_LIBMHASH 1

/* Whether to build mhash as dynamic module */
/* #undef COMPILE_DL_MHASH */

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

[2001-12-12 16:15:39] [EMAIL PROTECTED]

I could compile it just fine, with libmcrypt 2.4.17 and FBSD 4.4-Release.
Can you paste the part of php_config.h that mentions HAVE_LIBMCRYPT ?

Derick

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

[2001-12-12 16:11:43] [EMAIL PROTECTED]

Configure line:
--enable-discard-path --with-mysql=/usr/local --with-gd=/usr/local 
--with-ttf=/usr/local --enable-safe-mode --enable-trans-sid --with-imap 
--with-mcrypt=/usr/local --with-mhash=/usr/local --with-jpeg-dir=/usr/local 
--enable-force-cgi-redirect

This configuration line worked fine with 4.0.6 and none of the libraries where changed 
(mysql, gd, ttf, imap, mcrypt, mhash, jpeg).


----------------------
Making all in mcrypt
gcc -I. -I/usr/local/src/php-4.1.0/ext/mcrypt -I/usr/local/src/php-4.1.0/main 
-I/usr/local/src/php-4.1.0 -I/usr/local/src/php-4.1.0/Zend -I/include 
-I/usr/local/include -I/usr/local/include/c-client -I/usr/local/include/mysql 
-I/usr/local/src/php-4.1.0/ext/xml/expat  -I/usr/local/src/php-4.1.0/TSRM -g -O2  -c 
mcrypt.c && touch mcrypt.lo
mcrypt.c: In function `php_mcrypt_module_dtor':
mcrypt.c:253: syntax error before `td'
mcrypt.c:254: `td' undeclared (first use in this function)
mcrypt.c:254: (Each undeclared identifier is reported only once
mcrypt.c:254: for each function it appears in.)
*** Error code 1

Stop in /usr/local/src/php-4.1.0/ext/mcrypt.
*** Error code 1

Stop in /usr/local/src/php-4.1.0/ext/mcrypt.
*** Error code 1

Stop in /usr/local/src/php-4.1.0/ext.
*** Error code 1

Stop in /usr/local/src/php-4.1.0.



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



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


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to