php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #333 Build failure on shared php load
Submitted: 1998-04-30 02:20 UTC Modified: 1998-05-23 13:34 UTC
From: johnhowe at scn dot org Assigned: rasmus (profile)
Status: Closed Package: Compile Failure
PHP Version: 3.0 Release Candidate 4 OS: Solaris 2.6 sparc & x86
Private report: No CVE-ID: None
 [1998-04-30 02:20 UTC] johnhowe at scn dot org
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@sabrina]:/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.

TIA!

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-05-23 13:34 UTC] rasmus
The unresolved __udivdi3 symbol comes from the fact that libphp3.so is being built with /usr/ccs/bin/ld
by default.  Edit src/modules/php3/Makefile and set LD=gcc and rebuild libphp3.so and it will work.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 12:01:27 2024 UTC