php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17552 PHP Apache DSO Compile Failure: Unresolved Symbol: pthread_getspecific
Submitted: 2002-06-01 03:44 UTC Modified: 2002-09-11 11:14 UTC
Votes:12
Avg. Score:4.5 ± 0.8
Reproduced:12 of 12 (100.0%)
Same Version:1 (8.3%)
Same OS:5 (41.7%)
From: wandyrer at hotmail dot com Assigned:
Status: No Feedback Package: Compile Failure
PHP Version: 4.2.1 OS: Linux 2.4.18 Glibc
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2002-06-01 03:44 UTC] wandyrer at hotmail dot com
Apache 1.3.24 standard install
PHP 4.2.1
Glibc 2.2.5
Linux 2.4.18
Suse 8 Professional install

I tried to compile PHP 4.2.1 with the script that I had used in the past to compile PHP 4.1.2 and the DSO returns undefined symbol: pthread_getspecific

I tried using Pth instead, no go. 

I went down to a baseline compile with ./configure --with-apxs and it still fails in exactly the same place, The apache install runs beautifully and is in fact the same install of apache I was using before I recompiled to set PHP as a DSO, the version previous had PHP compiled in. 

Any guesses, suggestions, comments? I'd settle for flames

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-01 04:23 UTC] mfischer@php.net
What's your full configure line and what's the complete error you get?

Please also tree a snapshot from snaps.php.net and see if the problem still exists.
 [2002-06-01 06:31 UTC] wandyrer at hotmail dot com
configure line was simply 
./configure --with-apxs --with-java=/usr/lib/java --with-servlet --with-mysql=/usr/mysql

complete error as follows: 

/usr/sbin/apachectl start: 
/usr/lib/apache/libphp4.so Unresolved Symbol: pthread_getspecific 
httpd stopped

This compile of PHP can compile pages on the command line, just the apache plugin is failing. My only other thoughts is perhaps PHP can't compile multiple SAPI modules at once?

I managed to finally get php to compile as a compiled-in module to apache, and it appears to work fine out of tomcat and weblogic.
 [2002-06-01 06:45 UTC] mfischer@php.net
So how did you got it compile then?
 [2002-06-01 06:52 UTC] wandyrer at hotmail dot com
as a static module, aka
./configure --with-apache=../apache_1.3.24 --with-java=/usr/lib/java --with-mysql=/usr/mysql 

the problem is we need it as a DSO.
 [2002-06-01 07:00 UTC] mfischer@php.net
ah, ok, static module.

I'm reopening this since it still should work as a true DSO though.
 [2002-06-17 21:25 UTC] sniper@php.net
Can not reproduce this with. Please try this snapshot:

http://snaps.php.net/php4-latest.tar.gz

 [2002-09-11 11:14 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 [2002-11-15 10:33 UTC] php at stirfried dot vegetable dot org dot uk
This occurs using apache-1.3.26 and php-4.2.3 on SuSE7.1 when using --with-apxs.

I've tried adding LDFLAGS="-lpthread" just to persuade it to link against that library, but it still doesn't like me - ldd on libphp4.so makes no difference that way.

Am reverting to --with-apache instead on the off-chance it works...
 [2002-11-21 06:33 UTC] tbyte at linuxbr dot com dot br
The same error with me when I try to start Apache service.
the configure options that I used for PHP:

--with-mysql
--with-apxs2

SO: FreeBSD 4.7
Apache: 2.0.43
PHP: 4.2.3
 [2002-12-02 22:55 UTC] admin at westband dot net
This occurs using apache-2.0.43 and php-4.2.3 on FreeBSD4.7 

Compiled with the following options:
./configure --with-mysql --with-apxs

When I run apache I get the following error:
Syntax error on line 230 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/modules/libphp4.so into server: /usr/local/apache/modules/libphp4.so: Undefined symbol "pthread_getspecific"
 [2002-12-19 23:10 UTC] casey at nixfusion dot com
For FreeBSD, you can install either pth or ptl. Both are  
threading libraries, and are available in the fbsd ports  
collection. Then configure php w/ appropriate flag, e.g.  
for pth  --enable-tsrm-pth  
 
I had the exact error as above, with exactly the same 
versions. I installed pth, rebuilt php, and it works great 
now.
 [2002-12-19 23:16 UTC] casey at nixfusion dot com
For FreeBSD, you can install either pth or ptl. Both are  
threading libraries, and are available in the fbsd ports  
collection. Then configure php w/ appropriate flag, e.g.  
for pth  --enable-tsrm-pth  
 
I had the exact error as above, with exactly the same 
versions. I installed pth, rebuilt php, and it works great 
now.
 [2003-02-03 06:47 UTC] omar at pluggedin dot org
Hello people the truth is that I have the same problem:
I have:php-4.2.3-apache-2.0.43-FreeBSD 4.7-pth-1.4.1
It seems that this sould work but it doesn't, I keep getting the same error:
Cannot load /usr/local/apache/modules/libphp4.so into server: /usr/local/apache/modules/libphp4.so: Undefined symbol "pthread_getspecific"
Why is this I ask, I see many people complaining about this issue and I just can't see the anwser, I hope that someone has it.
Thank you... Omar
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jul 14 15:01:28 2024 UTC