Bug 51552

Summary: Apache is not starting (2.2.15)
Product: Apache httpd-2 Reporter: Naveen <naverama>
Component: AllAssignee: Apache HTTPD Bugs Mailing List <bugs>
Status: RESOLVED LATER    
Severity: critical Keywords: MassUpdate
Priority: P2    
Version: 2.2.15   
Target Milestone: ---   
Hardware: Other   
OS: AIX   

Description Naveen 2011-07-25 17:42:44 UTC
# apachectl start
Could not load program /opt/pware/bin/httpd:
rtld: 0712-001 Symbol apr_hash_do was referenced
      from module httpd(), but a runtime definition
            of the symbol was not found.
rtld: 0712-001 Symbol apr_file_datasync was referenced
      from module httpd(), but a runtime definition
            of the symbol was not found.
rtld: 0712-001 Symbol apr_file_sync was referenced
      from module httpd(), but a runtime definition
            of the symbol was not found.
rtld: 0712-001 Symbol apr_file_link was referenced
      from module httpd(), but a runtime definition
            of the symbol was not found.
rtld: 0712-001 Symbol apr_global_mutex_name was referenced
      from module httpd(), but a runtime definition
            of the symbol was not found.
rtld: 0712-001 Symbol apr_global_mutex_lockfile was referenced
      from module httpd(), but a runtime definition
            of the symbol was not found.
rtld: 0712-001 Symbol apr_socket_atreadeof was referenced
      from module httpd(), but a runtime definition
            of the symbol was not found.
rtld: 0712-001 Symbol apr_pollcb_create_ex was referenced
      from module httpd(), but a runtime definition
            of the symbol was not found.
rtld: 0712-001 Symbol apr_pollset_method_name was referenced
      from module httpd(), but a runtime definition
            of the symbol was not found.
rtld: 0712-001 Symbol apr_poll_method_defname was referenced
      from module httpd(), but a runtime definition
            of the symbol was not found.
rtld: 0712-001 Symbol apr_pollset_wakeup was referenced
      from module httpd(), but a runtime definition
            of the symbol was not found.
rtld: 0712-001 Symbol apr_pollset_create_ex was referenced
      from module httpd(), but a runtime definition
            of the symbol was not found.
Comment 1 Eric Covener 2011-07-25 17:48:53 UTC
How did you configure APR and httpd? What version of APR?  Is the same version of APR found at runtime [via bin/envvars or other shared lib environment variable?]
Comment 2 Naveen 2011-07-25 17:52:08 UTC
APR version

 pware53.apr-util.rte       1.3.9.0  COMMITTED  Apache Portable Runtime
  pware53.apr.rte           1.3.12.0  COMMITTED  Apache Portable Runtime 1.3.12


I have downloaded the httpd-2.2.15 and then followed the process

 	$ ./configure 
     $ make
     $ make install
     $ PREFIX/bin/apachectl start
Comment 3 Eric Covener 2011-07-25 18:38:30 UTC
None of those symbols are a part of apr 1.3.x AFAICT, so you probably built against the bundled APR or some other one that had headers installed.  Loading at runtime the older release installed with installp then fails.

The bundled APR should have been built/installed alongside your httpd.  Does your bin/envvars -- is it there and identified with LIBPATH in bin/envvars?
Comment 4 Naveen 2011-07-25 18:41:06 UTC
found apr source: srclib/apr
found apr-util source: srclib/apr-util
rebuilding srclib/apr/configure
buildconf: checking installation...
buildconf: python not found.
           You need python installed
           to build APR from SVN.
./buildconf failed for apr
Comment 5 Naveen 2011-07-25 18:52:20 UTC
PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/opt/pware/bin
TZ=PST8PDT
LANG=C
LOCPATH=/usr/lib/nls/loc
NLSPATH=/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/%L/%N.cat
LC__FASTMSG=true
Comment 6 Eric Covener 2011-07-25 21:00:40 UTC
bin/envvars is a file of environment variables sourced by apachectl.  What APR version does the LIBPATH in that file point to?  What APR did your httpd build build against (config.log or stdout messages)
Comment 7 William A. Rowe Jr. 2018-11-07 21:09:51 UTC
Please help us to refine our list of open and current defects; this is a mass update of old and inactive Bugzilla reports which reflect user error, already resolved defects, and still-existing defects in httpd.

As repeatedly announced, the Apache HTTP Server Project has discontinued all development and patch review of the 2.2.x series of releases. The final release 2.2.34 was published in July 2017, and no further evaluation of bug reports or security risks will be considered or published for 2.2.x releases. All reports older than 2.4.x have been updated to status RESOLVED/LATER; no further action is expected unless the report still applies to a current version of httpd.

If your report represented a question or confusion about how to use an httpd feature, an unexpected server behavior, problems building or installing httpd, or working with an external component (a third party module, browser etc.) we ask you to start by bringing your question to the User Support and Discussion mailing list, see [https://httpd.apache.org/lists.html#http-users] for details. Include a link to this Bugzilla report for completeness with your question.

If your report was clearly a defect in httpd or a feature request, we ask that you retest using a modern httpd release (2.4.33 or later) released in the past year. If it can be reproduced, please reopen this bug and change the Version field above to the httpd version you have reconfirmed with.

Your help in identifying defects or enhancements still applicable to the current httpd server software release is greatly appreciated.