Bug #18358 Updated: Recode doesn't compile with apache2
| From: | cynic@php.net | Date: | Mon, 15 Jul 2002 17:19:35 +0000 |
| Subject: | Bug #18358 Updated: Recode doesn't compile with apache2 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-14232@lists.php.net to get a copy of this message | ||
ID: 18358
Updated by: cynic@php.net
Reported By: marijn@suninet.nl
Status: Won't fix
Bug Type: Compile Failure
Operating System: Linux
PHP Version: 4.2.1
New Comment:
derick, just a question: does this also apply with the non-threaded
MPMs, like (IIRC) prefork?
Previous Comments:
------------------------------------------------------------------------
[2002-07-15 13:02:07] derick@php.net
It clearly says it has not been tested for thread-safety, and apache 2
uses threads. Using recode with apache 2 will most likely give you a
lot of core files.
php_recode.h:35: warning: #warning Recode module has not been tested
for
thread-safety.
You're welcome to check if the recode library (not the extension) is
thread safe, but until then this won't be fixed.
Derick
------------------------------------------------------------------------
[2002-07-15 12:22:53] marijn@suninet.nl
I was just trying to compile PHP 4.2.1 with --with-recode and I got the
following error:
make[1]: Entering directory `/root/install/php-4.2.1/ext/recode'
/bin/sh /root/install/php-4.2.1/libtool --silent --mode=compile gcc
-I. -I/root/install/php-4.2.1/ext/recode -I/root/install/php-4.2.1/main
-I/root/install/php-4.2.1 -I/usr/include/apache2
-I/root/install/php-4.2.1/Zend
-I/root/install/php-4.2.1/ext/mysql/libmysql
-I/root/install/php-4.2.1/ext/xml/expat -D_REENTRANT
-I/root/install/php-4.2.1/TSRM -DTHREAD=1 -g -O2 -pthread -DZTS
-prefer-pic -c recode.c
In file included from recode.c:28:
php_recode.h:35: warning: #warning Recode module has not been tested
for thread-safety.
recode.c: In function `zm_startup_recode':
recode.c:79: `recode_globals_id' undeclared (first use in this
function)
recode.c:79: (Each undeclared identifier is reported only once
recode.c:79: for each function it appears in.)
recode.c: In function `zm_shutdown_recode':
recode.c:89: `recode_globals_id' undeclared (first use in this
function)
recode.c: In function `zif_recode_string':
recode.c:124: `recode_globals_id' undeclared (first use in this
function)
recode.c: In function `zif_recode_file':
recode.c:189: `recode_globals_id' undeclared (first use in this
function)
make[1]: *** [recode.lo] Error 1
make[1]: Leaving directory `/root/install/php-4.2.1/ext/recode'
make: *** [all-recursive] Error 1
While looking through the bug database I found somebody who had the
same problem but with PHP 4.1.2. Here is the URL:
http://bugs.php.net/bug.php?id=16481
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=18358&edit=1