php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #324 Compile fails during php module build
Submitted: 1998-04-28 07:40 UTC Modified: 1998-05-13 05:20 UTC
From: johnhowe at scn dot org Assigned: rasmus (profile)
Status: Closed Package: Compile Failure
PHP Version: 3.0 Release Candidate 4 OS: SunOS 5.6 Generic_105181-04 sun4
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: johnhowe at scn dot org
New email:
PHP Version: OS:

 

 [1998-04-28 07:40 UTC] johnhowe at scn dot org
GNU GCC 2.8.1
GNU Bison 1.2.5
GNU Flex 2.5.4
GNU Make 3.75
GD 1.3
Perl 5.004_04

PHP w/static Apache

PHP configured with:
  configure --with-apache=../apache_1.3b6 --with-mysql=/opt/gnu

Manual build of apache after serveral apaci failures with simlar build problems.

Error is as follows from ../apache_1.3b6/src:

make output <snip>

<=== modules/php3
<=== modules
gcc -c  -I./os/unix -I./include  -O2 -DSOLARIS2=260 -DSTATUS -DUSE_HSREGEX -DHTTPD_ROOT=\"/spool/httpd\"  modules.c
gcc -c  -I./os/unix -I./include  -O2 -DSOLARIS2=260 -DSTATUS -DUSE_HSREGEX -DHTTPD_ROOT=\"/spool/httpd\"  buildmark.c
gcc -O2 -DSOLARIS2=260 -DSTATUS -DUSE_HSREGEX -DHTTPD_ROOT=\"/spool/httpd\"    \
      -o httpd buildmark.o modules.o modules/standard/libstandard.a modules/php3/libphp3.a main/libmain.a os/unix/libos.a ap/libap.a regex/libregex.a -Lmodules/php3 -L../modules/php3 -lmodphp3 -lgd -lm -ldl -lnsl -lsocket -L/opt/gnu/lib/mysql -lmysqlclient -lsocket -lnsl
Undefined                       first referenced
 symbol                             in file
modphp3_module                      modules.o
ld: fatal: Symbol referencing errors. No output written to httpd
make: *** [target_static] Error 1

Have tried seeing if others have had similar problems on the mailing list and have read through the faq. Get similar problems using apaci mechanisms.

TIA!

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-05-13 05:20 UTC] rasmus
You probably edited your Apache Configuration file incorrectly.  You should not add anything to EXTRA_LIBS or anywhere else.  The only thing you should have is:
AddModule modules/php3/libphp3.a
and the .module file takes care of everything else. Your current setup is linking in both libphp3.a and modphp3.a  which is bogus.  Delete your Configuration file and try again.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 19:01:29 2024 UTC