php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18358 Recode doesn't compile with apache2
Submitted: 2002-07-15 12:22 UTC Modified: 2002-07-15 13:19 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: marijn at suninet dot nl Assigned:
Status: Wont fix Package: Compile Failure
PHP Version: 4.2.1 OS: Linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2002-07-15 12:22 UTC] marijn at suninet dot 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-15 13:02 UTC] 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 13:19 UTC] cynic@php.net
derick, just a question: does this also apply with the non-threaded MPMs, like (IIRC) prefork?

 [2002-07-15 13:32 UTC] marijn at suninet dot nl
Sorry, I'm not really into all the technical stuff (yet :) ) when it comes to these things.

Anyways it's a bit confusing to see a warning and than a compile error (if there's a warning, you'd suspect the error was known and fixed instead of just letting it quit through a compile error, most programs I encounter just ask you to specifically define something if you want to override instead of erroring).

I should really learn these things :).
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Thu Sep 19 19:01:27 2019 UTC