php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14488 ext/mcrypt/mcrypt.c won't compile
Submitted: 2001-12-13 11:16 UTC Modified: 2001-12-19 05:43 UTC
From: stevenf at shellnet dot co dot uk Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.1.0 OS: FreeBSD 4.0-20000626-STABLE
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: stevenf at shellnet dot co dot uk
New email:
PHP Version: OS:

 

 [2001-12-13 11:16 UTC] stevenf at shellnet dot co dot uk
The mcrypt ext *did* compile cleanly under php 4.0.6, but under 4.1.0 I get the following:

Making all in mcrypt
gcc -I. -I/usr/home/stevenf/Software/php-4.1.0/ext/mcrypt -I/usr/home/stevenf/Software/php-4.1.0/main -I/usr/home/stevenf/Software/php-4.1.0 -I/usr/home/stevenf/Software/apache_1.3.22/src/include -I/usr/home/stevenf/Software/apache_1.3.22/src/os/unix -I/usr/home/stevenf/Software/php-4.1.0/Zend -I/home/stevenf/Software/st-1.2/FREEBSD_4.0-20000626-STABLE_OPT -I/include -I/usr/local/include -I/usr/home/stevenf/Software/php-4.1.0/ext/mysql/libmysql -I/usr/home/stevenf/Software/php-4.1.0/ext/xml/expat  -I/usr/home/stevenf/Software/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

Looking at the CVS, the portion of code referenced in the error message was not a part of PHP 4.0.6.... and my 4.0.6 source still compiles cleanly with mcrypt enabled. Obviously something has changed and doesn't appear to work!

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-13 11:18 UTC] derick@php.net
Don't know what the original number is, but it has been reported already. Which version do you use of libmcrypt?

Derick
 [2001-12-13 11:25 UTC] sterling@php.net
Fixed in cvs -- you have two options, upgrade mcrypt to 2.4 or upgrade PHP to the latest cvs of the PHP_4_0_7 branch (what PHP 4.1 was forked off of).
 [2001-12-13 11:37 UTC] stevenf at shellnet dot co dot uk
Cheers.

I didn't spot bug #14470 when I searched the first time round. Must be going blind.

I've just worked around this by manually integrating the #ifdef into mcrypt.c - which has compiled happily. Sorry, I'm not one for compiling CVS versions. It's a psychological thing.
 [2001-12-19 05:43 UTC] derick@php.net
FYI: This fix will be in the maintenance release 4.1.1.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Sep 16 21:01:28 2024 UTC