From: zaphod at tdl dot com Operating system: linux PHP version: 5.1.6 PHP Bug Type: *Compile Issues Bug description: configure fails on binay distributions
Description: ------------ configure fails on modern linux systems with binary distributions of mysql. On such systems, all programs that linka gainst mysql librares also need to link aainst libmygcc, when built under gcc. Reproduce code: --------------- configure --with-mysql=/usr/local/mysql yup that's it. Expected result: ---------------- Expected result is for configure to complete. Actual result: -------------- Actual result is the following checks fail checking for mysql_close in -l$MYSQL_LIBNAME checking for mysql_error in -l$MYSQL_LIBNAME They fail because configure won't link against libmygcc when linking against libmysqlclient TO get past this, i need to do the following Replace the line in both of those checks LIBS="-l$MYSQL_LIBNAME $LIBS " with LIBS="-l$MYSQL_LIBNAME $LIBS -lmygcc" Additionally i then have to append -lmygcc to MYSQL_LIBS and EXTRA_LIBS in the makefile AFTER configure completes to get a working build. Knowing this, you should be able to make configure check for libmygcc, and link against that after testing to see if it's required. -- Edit bug report at http://bugs.php.net/?id=39122&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=39122&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=39122&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=39122&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=39122&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=39122&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=39122&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=39122&r=needscript Try newer version: http://bugs.php.net/fix.php?id=39122&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=39122&r=support Expected behavior: http://bugs.php.net/fix.php?id=39122&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=39122&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=39122&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=39122&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39122&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=39122&r=dst IIS Stability: http://bugs.php.net/fix.php?id=39122&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=39122&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=39122&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=39122&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=39122&r=mysqlcfg