|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16598 Cannot load undefined symbol: ap_block_alarms
Submitted: 2002-04-14 11:35 UTC Modified: 2003-02-09 23:32 UTC
From: roman at oxic dot net Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 4.2.0 OS: linux red hat 7.2
Private report: No CVE-ID: None
 [2002-04-14 11:35 UTC] roman at oxic dot net

1. php-4_2_0RC3
2. mysqld  Ver 3.23.49a for pc-linux-gnu on i686 (rpm)
3. [root@oxic bin]# httpd -v
   Server version: Apache/2.0.35
configuration path:
[root@micho conf]# ./configure --with-mysql --with-apxs2=/usr/local/apache2/bin/apxs
[root@micho conf]# grep -i php httpd.conf
AddType application/x-httpd-php .php
LoadModule php4_module /usr/local/apache2/libexec/
LoadModule php4_module /usr/local/apache2/modules/
ll /usr/local/apache2/libexec/
-rwxr-xr-x    1 root     root      1349206 mar  9 00:05 /usr/local/apache2/libexec/

when I try start Apache server then system returns me message:

[root@micho bin]# ./apachectl startssl
Syntax error on line 989 of /usr/local/apache2/conf/httpd.conf:
Cannot load /usr/local/apache2/libexec/ into server: /usr/local/apache2/libexec/ undefined symbol: ap_block_alarms
./apachectl startssl: httpd could not be started


[root@micho libexec]# ldd -d => /lib/ (0x40145000) => /lib/ (0x4014d000) => /lib/ (0x4017a000) => /lib/ (0x4023d000) => /usr/lib/ (0x40242000) => /usr/lib/ (0x40248000) => /usr/lib/ (0x4024a000) => /lib/ (0x4028c000) => /usr/lib/ (0x403c1000) => /lib/ (0x403cf000) => /usr/lib/ (0x403e2000) => /usr/lib/ (0x403ff000) => /usr/lib/ (0x40404000) => /usr/lib/ (0x4041e000) => /usr/lib/ (0x4043f000) => /usr/lib/ (0x40471000) => /lib/ (0x4050f000) => /usr/lib/ (0x405b6000) => /usr/lib/ (0x405bd000) => /usr/lib/ (0x405d8000) => /lib/ (0x405e8000) => /lib/ (0x40615000) => /usr/lib/ (0x40638000) => /usr/lib/ (0x40662000) => /usr/lib/ (0x40696000) => /usr/lib/ (0x406b7000) => /lib/ (0x406d6000) => /usr/kerberos/lib/ (0x406ed000) => /usr/kerberos/lib/ (0x40701000) => /usr/kerberos/lib/ (0x40759000) => /lib/ (0x4076a000)
        /lib/ => /lib/ (0x80000000) => /usr/kerberos/lib/ (0x4076d000)
undefined symbol: ap_block_alarms       (./
undefined symbol: ap_unblock_alarms     (./
undefined symbol: ap_user_id    (./
undefined symbol: ap_server_root        (./
undefined symbol: ap_group_id   (./
undefined symbol: ap_user_name  (./
undefined symbol: top_module    (./
undefined symbol: ap_max_requests_per_child     (./


I really have no idea how to fix it ..
Any suggestions ?

thank you very much


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-14 14:18 UTC]
There is no such symbol in Apache2.
You've somehow mixed up apache 1.3.x stuff with Apache2..
Why do you load two modules? In Apache2 the DSOs are in 
modules/ directory..


 [2002-04-14 15:29 UTC] roman at oxic dot net
Thanks, my stupid mistake ...

now http.conf for php looks like:

AddType application/x-httpd-php .php
LoadModule php4_module /usr/local/apache2/modules/

and it's working :)

thanks again!

 [2003-02-09 23:32 UTC]
Just for the record.. 
Not a PHP problem => Bogus.. 
 [2014-02-20 06:09 UTC] cahuza at hotmail dot com
No es un problema de PHP. El problema es un error en Apache 2.4. Se renombro una estructura de datos interna de unixd_config a ap_unixd_config. Desinstalar Apache 2.4 a Apache 2.2 y problema solucionado.

Not a problem in PHP. The problem is a bug in Apache 2.4. Internal data structure of a ap_unixd_config unixd_config is renamed. Uninstall Apache 2.4 to Apache 2.2 and problem solved.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jul 21 10:01:30 2024 UTC