From: ozone at cname dot com Operating system: solaris 9 PHP version: 5.1.2 PHP Bug Type: Compile Failure Bug description: fails to link against libmysqlclient.a
Description: ------------ environment: solaris 9u7, gcc 3.4.2. 1. install mysql 5.0.18 (binary package from mysql.com) 2. configure php 5.1.2 (or 5.1.1) distribution, --with-mysql=/opt/mysql/mysql 3. make 4. build fails during final link stage php 5.0.5 compiles cleanly and works fine with the exact same options. behavior is identical to #35492, but no resolution is given for that bug other than "it's a duplicate of some other bug" (which one?) Reproduce code: --------------- from config.nice: './configure' \ '--prefix=/usr/local' \ '--with-apxs2=/usr/local/bin/apxs' \ '--with-mysql=/opt/mysql/mysql' \ '--with-xsl=/usr/local' \ '--with-openssl=/usr/local' \ '--with-gd=/usr/local' \ '--with-mysql-sock=/tmp/mysql.sock' \ '--with-zlib' \ '--with-zlib-dir=/usr/local' \ '--enable-sockets' \ '--enable-dbase' \ "$@" Expected result: ---------------- a working php... Actual result: -------------- Text relocation remains referenced against symbol offset in file <unknown> 0x0 /opt/mysql/mysql/lib/libmysqlclient.a(ctype.o) <unknown> 0x4 /opt/mysql/mysql/lib/libmysqlclient.a(ctype.o) <unknown> 0x8 /opt/mysql/mysql/lib/libmysqlclient.a(ctype.o) <unknown> 0xc /opt/mysql/mysql/lib/libmysqlclient.a(ctype.o) <unknown> 0x0 /opt/mysql/mysql/lib/libmysqlclient.a(default.o) <unknown> 0x1c /opt/mysql/mysql/lib/libmysqlclient.a(default.o) mysql_unix_port 0x58 /opt/mysql/mysql/lib/libmysqlclient.a(libmysql.o) mysql_unix_port 0xa4 /opt/mysql/mysql/lib/libmysqlclient.a(libmysql.o) mysql_unix_port 0xb4 /opt/mysql/mysql/lib/libmysqlclient.a(libmysql.o) mysql_unix_port 0xb8 /opt/mysql/mysql/lib/libmysqlclient.a(libmysql.o) mysql_unix_port 0xd4 /opt/mysql/mysql/lib/libmysqlclient.a(libmysql.o) mysql_unix_port 0xe8 /opt/mysql/mysql/lib/libmysqlclient.a(libmysql.o) (hundreds of lines of failed symbols, all from libmysqlclient.a) -- Edit bug report at http://bugs.php.net/?id=36020&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36020&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36020&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36020&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=36020&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=36020&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=36020&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=36020&r=needscript Try newer version: http://bugs.php.net/fix.php?id=36020&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=36020&r=support Expected behavior: http://bugs.php.net/fix.php?id=36020&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=36020&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=36020&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=36020&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36020&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=36020&r=dst IIS Stability: http://bugs.php.net/fix.php?id=36020&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=36020&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=36020&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=36020&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=36020&r=mysqlcfg