php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3217 ld error when compiling as Apache DSO and --with-mysql
Submitted: 2000-01-14 17:00 UTC Modified: 2005-03-30 09:08 UTC
From: nathanl at pswtech dot com Assigned:
Status: Wont fix Package: Compile Failure
PHP Version: 3.0.14 OS: AIX 4.3.2
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: nathanl at pswtech dot com
New email:
PHP Version: OS:

 

 [2000-01-14 17:00 UTC] nathanl at pswtech dot com
Software:
AIX 4.3.2
Apache 1.3.9
PHP 3.0.14
MySQL 3.22.29
gcc/g++ 2.95.2
GNU make 3.78.1

Procedure:
Extract the Apache, PHP, and MySQL tarballs under
/usr/local/src.  Compile and install MySQL first:

# cd /usr/local/src/mysql-3.22.29
# CC="gcc -DHAVE_INT_8_16_32" \
CXX="gcc -O3 -DHAVE_INT_8_16_32" \
./configure --prefix=/usr/local/mysql
# make
# make install

Then configure and install Apache (the Apache configure
finds gcc fine; no special options needed):

# cd /usr/local/src/apache_1.3.9
# ./configure --prefix=/usr/local/apache \
--enable-module=most \
--enable-shared=max \
--enable-rule=SHARED_CORE \
--disable-rule=WANTHSREGEX
# make
# make install

And on to PHP (again, using gcc):

# cd /usr/local/src/php-3.0.14
# ./configure --with-apxs=/usr/local/apache/bin/apxs \
--with-mysql=/usr/local/mysql \
--with-system-regex
# make
...<output>...
ld -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -bI:/usr/local/apache/libexec/httpd.exp -lc 
-o libphp3.so ./mod_php3.o libmodphp3-so.a -L/usr/local/lib
-L/usr/local/mysql/lib/mysql -lmysqlclient pcrelib/libpcre.a
-lm -lbind -Lpcrelib -lpcre -L/usr/local/mysql/lib/mysql
ld: 0711-244 ERROR: No csects or exported symbols have been
saved.
apxs:Break: Command failed with rc=524288
make: *** [libphp3.so] Error 1
<end of output>

I've seen this in a discussion board on phpbuilder.com--
http://www.geocrawler.com/archives/3/1/2000/1/0/3074292/
--but couldn't find it written up in the bug list.

Thanks,
Nathan Lynch

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-03-30 09:08 UTC] sniper@php.net
We are sorry, but we can not support PHP 3 related problems anymore.
Momentum is gathering for PHP 5, and we think supporting PHP 3 will
lead to a waste of resources which we want to put into getting PHP 5
ready. Of course PHP 4 will continue to be supported for the
forseeable future.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jun 03 01:01:26 2025 UTC