php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17273 symbol not found
Submitted: 2002-05-16 12:53 UTC Modified: 2002-07-07 01:00 UTC
Votes:9
Avg. Score:4.8 ± 0.4
Reproduced:8 of 8 (100.0%)
Same Version:1 (12.5%)
Same OS:5 (62.5%)
From: jacksonr at nerc dot net Assigned:
Status: No Feedback Package: Apache related
PHP Version: 4.2.1 OS: Solaris 2.8
Private report: No CVE-ID: None
 [2002-05-16 12:53 UTC] jacksonr at nerc dot net
After compiling and installing PHP apache would not load the module. After runnin apachectl configtest this was the result:

Syntax error on line 206 of /www/conf/httpd.conf:
Cannot load /www/libexec/libphp4.so into server: ld.so.1: /www/bin/httpd: fatal: relocation error: file /www/libexec/libphp4.so: symbol ap_block_alarms: referenced symbol not found

The program versions are as follows:
Apache version - 1.3.23
PHP version - 4.2.1
Imap version - 2001a
Kerberos version 5-1.2.5

Here are the results on running ldd -r on the libphp4.so.:
ldd -r /www/libexec/libphp4.so
        libdl.so.1 =>    /usr/lib/libdl.so.1
        libpam.so.1 =>   /usr/lib/libpam.so.1
        libmysqlclient.so.10 =>  /usr/local/mysql/lib/mysql/libmysqlclient.so.10
        libcrypt_i.so.1 =>       /usr/lib/libcrypt_i.so.1
        libresolv.so.2 =>        /usr/lib/libresolv.so.2
        libm.so.1 =>     /usr/lib/libm.so.1
        libsocket.so.1 =>        /usr/lib/libsocket.so.1
        libc.so.1 =>     /usr/lib/libc.so.1
        libz.so =>       /usr/lib/libz.so
        libgen.so.1 =>   /usr/lib/libgen.so.1
        libnsl.so.1 =>   /usr/lib/libnsl.so.1
        libgcc_s.so.1 =>         /usr/local/lib/libgcc_s.so.1
        libmp.so.2 =>    /usr/lib/libmp.so.2
        /usr/platform/SUNW,UltraSPARC-IIi-cEngine/lib/libc_psr.so.1
        symbol not found: ap_block_alarms               (/www/libexec/libphp4.so)
        symbol not found: ap_unblock_alarms             (/www/libexec/libphp4.so)
        symbol not found: ap_user_id            (/www/libexec/libphp4.so)
        symbol not found: ap_server_root                (/www/libexec/libphp4.so)
        symbol not found: ap_group_id           (/www/libexec/libphp4.so)
        symbol not found: ap_user_name          (/www/libexec/libphp4.so)
        symbol not found: top_module            (/www/libexec/libphp4.so)
        symbol not found: ap_max_requests_per_child             (/www/libexec/libphp4.so)
        symbol not found: ap_table_get          (/www/libexec/libphp4.so)
        symbol not found: ap_table_setn         (/www/libexec/libphp4.so)
        symbol not found: ap_update_mtime               (/www/libexec/libphp4.so)
        symbol not found: ap_kill_timeout               (/www/libexec/libphp4.so)
        symbol not found: ap_uudecode           (/www/libexec/libphp4.so)
        symbol not found: ap_setup_client_block         (/www/libexec/libphp4.so)
        symbol not found: ap_add_cgi_vars               (/www/libexec/libphp4.so)
        symbol not found: ap_getword            (/www/libexec/libphp4.so)
        symbol not found: ap_getword_nulls_nc           (/www/libexec/libphp4.so)
        symbol not found: ap_destroy_sub_req            (/www/libexec/libphp4.so)
        symbol not found: ap_pstrdup            (/www/libexec/libphp4.so)
        symbol not found: ap_log_error          (/www/libexec/libphp4.so)
        symbol not found: ap_table_add          (/www/libexec/libphp4.so)
        symbol not found: ap_sub_req_lookup_uri         (/www/libexec/libphp4.so)
        symbol not found: ap_run_sub_req                (/www/libexec/libphp4.so)
        symbol not found: ap_register_cleanup           (/www/libexec/libphp4.so)
        symbol not found: ap_signal             (/www/libexec/libphp4.so)
        symbol not found: ap_send_http_header           (/www/libexec/libphp4.so)
        symbol not found: ap_pstrndup           (/www/libexec/libphp4.so)
        symbol not found: ap_block_alarms               (/www/libexec/libphp4.so)
        symbol not found: ap_child_terminate            (/www/libexec/libphp4.so)
        symbol not found: ap_set_etag           (/www/libexec/libphp4.so)
        symbol not found: ap_rwrite             (/www/libexec/libphp4.so)
        symbol not found: ap_table_set          (/www/libexec/libphp4.so)
        symbol not found: ap_get_client_block           (/www/libexec/libphp4.so)
        symbol not found: ap_add_version_component              (/www/libexec/libphp4.so)
        symbol not found: ap_hard_timeout               (/www/libexec/libphp4.so)
        symbol not found: ap_rflush             (/www/libexec/libphp4.so)
        symbol not found: ap_set_last_modified          (/www/libexec/libphp4.so)
        symbol not found: ap_reset_timeout              (/www/libexec/libphp4.so)
        symbol not found: ap_unblock_alarms             (/www/libexec/libphp4.so)
        symbol not found: ap_add_common_vars            (/www/libexec/libphp4.so)

And on my httpd:
ldd -r /www/bin/httpd
        libsocket.so.1 =>        /usr/lib/libsocket.so.1
        libnsl.so.1 =>   /usr/lib/libnsl.so.1
        libpthread.so.1 =>       /usr/lib/libpthread.so.1
        libcrypt_i.so.1 =>       /usr/lib/libcrypt_i.so.1
        libc.so.1 =>     /usr/lib/libc.so.1
        libdl.so.1 =>    /usr/lib/libdl.so.1
        libmp.so.2 =>    /usr/lib/libmp.so.2
        libgen.so.1 =>   /usr/lib/libgen.so.1
        /usr/platform/SUNW,UltraSPARC-IIi-cEngine/lib/libc_psr.so.1
        libthread.so.1 =>        /usr/lib/libthread.so.1


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-22 07:12 UTC] royw at imsi dot com
I've seen the exact same issue on Solaris 8 using php4-STABLE-200205210600. am going to try with 4.2.1 now.

-Roy
 [2002-05-22 07:14 UTC] royw at imsi dot com
php-4.2.1 wont make on Solaris 8 for me, if complains about not being able to fins unix.h almost immediatley i use make.

but it makes fine using the -STABLE- version i quoted above.

-Roy
 [2002-05-22 07:35 UTC] mfischer@php.net
Try CC=gcc ./configure ... and see if this works with 4.2.1 on solaris
 [2002-06-04 16:24 UTC] starbuck dot 1 at osu dot edu
I have identical issues building apache/php on Solaris 8 as
reported.  I have applied Sun patch Patch-ID# 109147-16, but
was already a patched version of gcc, so that made no dif-
ference.  I have the same results when I execute 
ldd -r /www/apache/libexec/libphp4.so, ie. long list of 
sybols not found.  The only thing I haven't tried at this
point is using Sun's C compiler, and Suns assembler,
currently I'm using gcc and gnu binutils, etc.  

Any suggestions will be gratefully considered!!

Thanks, Vickie
 [2002-06-06 10:58 UTC] jerry dot lundstrom at se dot tiscali dot com
Same problem.

# uname -a
SunOS XXXX 5.8 Generic_108528-13 sun4u sparc
# gcc -v
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/specs
gcc version 2.95.3 20010315 (release)
CC="gcc" ./configure --with-apxs=/usr/local/apache/bin/apxs \
	--prefix=/usr/local/php \
	--without-system-regex \
	--enable-track-vars \
	--with-mysql=/usr/local/mysql \
	--with-jpeg-dir \
	--with-gd \
	--with-dbase \
	--with-ttf \
	--with-xml

going to try adding --enable-libgcc and check, will report.
 [2002-06-06 11:15 UTC] sniper@php.net
It's most likely your apache that is compiled wrong.
Try this configure line for Apache:

./configure --enable-shared=max --enable-rule=SHARED_CORE


 [2002-06-07 06:05 UTC] jerry dot lundstrom at se dot tiscali dot com
--enable-rule=SHARED_CORE did the trick, also notice that if you are compiling in mod_perl support you need to edit src/Configuration to set "Rule SHARED_CORE=yes" because mod_perl will mess it up if you dont (goes for all added modules also).
 [2002-07-07 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 30 14:01:28 2024 UTC