php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17549 Apahe 2.0.36 fails to start: "unresolved symbol"
Submitted: 2002-05-31 17:46 UTC Modified: 2002-08-23 14:09 UTC
Votes:3
Avg. Score:4.7 ± 0.5
Reproduced:3 of 3 (100.0%)
Same Version:1 (33.3%)
Same OS:2 (66.7%)
From: mcaplin at miami dot edu Assigned:
Status: Closed Package: Apache2 related
PHP Version: 4.2.1 OS: Compaq Tru64UNIX 5.1A
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: mcaplin at miami dot edu
New email:
PHP Version: OS:

 

 [2002-05-31 17:46 UTC] mcaplin at miami dot edu
I configured php 4.2.1 as a dynamic module for Apache 2.0.36 (./configure --with-apxs2=/usr/local/apache/bin/apxs --quiet) and proceeded to make and make install without problems.
After adding the proper entries to httpd.conf, I tried to start Apache and got:

# /usr/local/apache/bin/apachectl start
Syntax error on line 230 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/modules/libphp4.so into server: dlopen: /usr/local/apache/modules/libphp4.so: symbol "__pthread_self" unresolved
/usr/local/apache/bin/apachectl start: httpd could not be started
Exit 3

Here's some info from httpd:

# /usr/local/apache/bin/httpd -V
Server version: Apache/2.0.36
Server built:   May 31 2002 14:29:30
Server's Module Magic Number: 20020329:1
Architecture:   64-bit
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/prefork"
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6
 -D APR_USE_SYSVSEM_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D HTTPD_ROOT="/usr/local/apache"
 -D SUEXEC_BIN="/usr/local/apache/bin/suexec"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D SERVER_CONFIG_FILE="conf/httpd.conf"

# /usr/local/apache/bin/httpd -l
Compiled in modules:
  core.c
  mod_access.c
  mod_auth.c
  mod_include.c
  mod_log_config.c
  mod_env.c
  mod_setenvif.c
  prefork.c
  http_core.c
  mod_mime.c
  mod_autoindex.c
  mod_asis.c
  mod_cgi.c
  mod_negotiation.c
  mod_dir.c
  mod_actions.c
  mod_userdir.c
  mod_alias.c
  mod_so.c

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-01 09:31 UTC] sniper@php.net
reclassified

 [2002-07-10 06:33 UTC] dgm300 at ecs dot soton dot ac dot uk
I'm experiencing the same problem. The symbol "__pthread_self" unresolved error message.

I'm running Apache 2.0.39 and php 4.2.1 with a similar configuration as above (without the --quiet option).
 [2002-07-29 21:21 UTC] ghall at NOSPAM dot csh dot rit dot edu
the only way i have figured around this bug is to use the portable threading library (pth).
 [2002-07-29 22:31 UTC] ghall at NOSPAM dot csh dot rit dot edu
I figured out a nasty hack to fix this problem.  When I was building Apache2.0.39, I was assuming that pthreads were enabled.  After closer inspection, I realized that the configure was disabling threads in the APR.  The problem turned out to be a CPP/CC issue.  I changed a #error in pthreads.h to a #warning: #  warning "Please compile the module including pthread.h with -pthread"

Presto, the next time I ran configure for apache, it enabled threads in the APR which fixed all my php/pthread linking woes.    FYI, under DU5.1a, __pthread_self is defined in /shlib/libpthreads.so.
 [2002-08-23 10:31 UTC] emanuele dot lombardi at casaccia dot enea dot it
Solved!  See bug #19038 for details

simply 

     setenv CFLAGS -pthread

before configuring and making both apache and php

It worked with 
          apache-2.0.40
          php4-STABLE-200208220000 

          Hardware: COMPAQ Alpha server 
          OS:       COMPAQ Tru64 Cluster 5.1A 2nd patch
          cc:       Compaq C V6.4-215 (dtk)

Bye bye

Emanuele Lombardi
 [2002-08-23 14:09 UTC] kalowsky@php.net
marking as closed.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri May 09 11:01:28 2025 UTC