php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14470 mcrypt.c: In function `php_mcrypt_module_dtor': Syntax Error
Submitted: 2001-12-12 16:11 UTC Modified: 2001-12-13 11:28 UTC
From: cedric at neopeak dot com Assigned:
Status: Closed Package: mcrypt related
PHP Version: 4.1.0 OS: FreeBSD 4.3-RELEASE
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: cedric at neopeak dot com
New email:
PHP Version: OS:

 

 [2001-12-12 16:11 UTC] cedric at neopeak dot com
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.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-12 16:15 UTC] derick@php.net
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-13 00:31 UTC] cedric at neopeak dot com
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-13 01:21 UTC] derick@php.net
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 11:28 UTC] sterling@php.net
Fixed in CVS... should work with libmcrypt 2.4 anyway though...
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue May 06 00:01:29 2025 UTC