From: akita_kobe at yahoo dot com
Operating system: Solaris 8
PHP version: 4.3.8
PHP Bug Type: *Configuration Issues
Bug description: Error when MySQL is not on /usr/local/mysql
Description:
------------
When configuring PHP with MySQL with the following config it fails:
./configure --prefix=/project/compiled/PHP \
--exec-prefix=/project/compiled/PHP \
--with-mysql=/project/compiled/MySQL \
--with-zlib=/usr/local
The error message that config displays is:
checking for mysql_close in -lmysqlclient... no
checking for mysql_error in -lmysqlclient... no
configure: error: mysql configure failed. Please check config.log for more
information.
>From config.log:
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 56453 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char mysql_error();
int main() {
mysql_error()
; return 0; }
However, if I symlink /project/compiled/MySQL to /usr/local/mysql,
everything works perfectly.
I don't want that symlink in there. Is there a way to do so?
Please let me know.
Reproduce code:
---------------
./configure --prefix=/project/compiled/PHP \
--exec-prefix=/project/compiled/PHP \
--with-mysql=/project/compiled/MySQL \
--with-zlib=/usr/local
Expected result:
----------------
Configure to run without errors
Actual result:
--------------
checking for mysql_close in -lmysqlclient... no
checking for mysql_error in -lmysqlclient... no
configure: error: mysql configure failed. Please check config.log for more
information.
--
Edit bug report at http://bugs.php.net/?id=30136&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30136&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30136&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30136&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=30136&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=30136&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=30136&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=30136&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=30136&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=30136&r=support
Expected behavior: http://bugs.php.net/fix.php?id=30136&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=30136&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=30136&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=30136&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30136&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=30136&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=30136&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=30136&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=30136&r=float
MySQL Configuration Error: http://bugs.php.net/fix.php?id=30136&r=mysqlcfg