[PHP-DEV] Bug #324: Compile fails during php module build From: johnhowe <email protected>
Date: 04/28/98

From: johnhowe <email protected>
Operating system: SunOS 5.6 Generic_105181-04 sun4m
PHP version: 3.0 Release Candidate 4
PHP Bug Type: Compile Failure
Bug description:
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!