|  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
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.
Block user comment
Status: Assign to:
Bug Type:
From: nathanl at pswtech dot com
New email:
PHP Version: OS:


 [2000-01-14 17:00 UTC] nathanl at pswtech dot com
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

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 \
# 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 \
# make
ld -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -bI:/usr/local/apache/libexec/httpd.exp -lc 
-o ./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
apxs:Break: Command failed with rc=524288
make: *** [] Error 1
<end of output>

I've seen this in a discussion board on
--but couldn't find it written up in the bug list.

Nathan Lynch


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-03-30 09:08 UTC]
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-2022 The PHP Group
All rights reserved.
Last updated: Thu May 19 02:05:44 2022 UTC