Re: [PHP-DEV] Bug #333: Build failure on shared php load From: Zeev Suraski (bourbon <email protected>)
Date: 04/30/98

At 06:20 30/04/98 -0000, johnhowe <email protected> wrote:
>From: johnhowe <email protected>
>Operating system: Solaris 2.6 sparc & x86
>PHP version: 3.0 Release Candidate 4
>PHP Bug Type: Compile Failure
>Bug description:
>Build environment Solaris 2.6 Sparc and X86
>
>MySql 3.21.29a-gamma
>GNU gcc 2.8.1
>GNU c++ 2.8.1
>GNU Make Version 3.76.1
>GNU Bison Version 1.25
>GNU Flex Version 2.5.4
>perl version 5.004_04
>PATH = /usr/local/bin:/bin:/usr/bin:/usr/ccs/bin:/usr/ucb:/etc:
>
>
>Configured apache 1st with:
>
>configure --prefix=/usr/local/apache --enable-modules=most
> ( *also : --enable-rule=SHARED_CORE } --enable-shared=max
>
>Then configured php3 with:
>
>configure --with-shared-apache=../apache_1.3b6 --with-mysql
>
>php3 make and make install went with no problems.
>
>Then reconfigured apache with:
>
>configure --prefix=/usr/local/apache --enable-modules=most
> --activate-module=src/modules/php3/libphp3.a
> --enable-shared=most
>
>apache make and make install go smoothly, no problems..
>
>On load, get the following error:
>
>[Dragon <email protected>]:/usr/local/apache/sbin
>% sudo ./apachectl start
>[Wed Apr 29 22:23:39 1998] [debug] mod_so.c(258): loaded module
config_log_module
>[Wed Apr 29 22:23:39 1998] [debug] mod_so.c(258): loaded module mime_module
>[Wed Apr 29 22:23:39 1998] [debug] mod_so.c(258): loaded module
negotiation_module
>[Wed Apr 29 22:23:39 1998] [debug] mod_so.c(258): loaded module
includes_module
>[Wed Apr 29 22:23:39 1998] [debug] mod_so.c(258): loaded module
autoindex_module
>[Wed Apr 29 22:23:39 1998] [debug] mod_so.c(258): loaded module dir_module
>[Wed Apr 29 22:23:39 1998] [debug] mod_so.c(258): loaded module cgi_module
>[Wed Apr 29 22:23:39 1998] [debug] mod_so.c(258): loaded module
userdir_module
>[Wed Apr 29 22:23:39 1998] [debug] mod_so.c(258): loaded module access_module
>[Wed Apr 29 22:23:39 1998] [debug] mod_so.c(258): loaded module
setenvif_module
>Syntax error on line 37 of /usr/local/apache/etc/httpd.conf:
>Cannot load /usr/local/apache/libexec/libphp3.so into server: ld.so.1:
/usr/local/apache/sbin/httpd: fatal: relocation error: file
/usr/local/apache/libexec/libphp3.so: symbol __divdi3: referenced symbol
not found
>./apachectl start: httpd could not be started
>
>Saw one entry in mail list archibe with no answer yet.

Try to link mod_php3 with -lgcc, and let us know what happens.

Zeev

--
Zeev Suraski   <zeev <email protected>>
For a PGP public key, finger bourbon <email protected>