|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2001-08-07 11:10 UTC] oyvindh at idb dot hist dot no
  [2001-08-07 11:12 UTC] andy@php.net
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 19:00:02 2025 UTC | 
I can't get php 4.0.6 to load as an Apache module - running configtest I get the following. ------- bash-2.05# /www/bin/apachectl configtest Syntax error on line 205 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 ------- Apache 1.3.20 is configured like this: ---------- % ./configure --prefix="/www" --enable-module=so ---------- PHP 4.0.6 is configured like this: ---------------- % ./configure --prefix=/www/local/php \ --with-apxs=/www/bin/apxs ---------------- As you see, I've taken it down to a bare minimum to reduse the number of error source. I also tried to include libpthread.so in apache, though this had no effect. My setup is like this: - Solaris 5.8 4/01 (Sparc) (with only core software) - Apache 1.3.20 - PHP 4.0.6 - gcc 2.95.3 - GNU ld 2.11.2 - GNU make 3.79.1 ----------- bash-2.05# ldd /www/bin/httpd libpthread.so.1 => /usr/lib/libpthread.so.1 libsocket.so.1 => /usr/lib/libsocket.so.1 libnsl.so.1 => /usr/lib/libnsl.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 libthread.so.1 => /usr/lib/libthread.so.1 /usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1 ----------- ----------- bash-2.05# ldd /www/libexec/libphp4.so libpam.so.1 => /usr/lib/libpam.so.1 libdl.so.1 => /usr/lib/libdl.so.1 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 libgen.so.1 => /usr/lib/libgen.so.1 libnsl.so.1 => /usr/lib/libnsl.so.1 libmp.so.2 => /usr/lib/libmp.so.2 /usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1 ----------- If it's of any interest... ------------- bash-2.05# 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) bash-2.05# ld -v GNU ld version 2.11.2 (with BFD 2.11.2) bash-2.05# make -v GNU Make version 3.79.1, by Richard Stallman and Roland McGrath. Built for sparc-sun-solaris2.8 Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 2000 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Report bugs to <bug-make@gnu.org>. --------