From: heinemann dot juergen at t-online dot de Operating system: Linux PHP version: 5CVS-2004-04-09 (dev) PHP Bug Type: *Compile Issues Bug description: Configure can't use libmysqlclient.so with SSL 0.9.7b and MySQL 5
Description: ------------ libmysqlclient.so: undefined reference to OpenSSL_add_all_algorithms http://www.klettern-ettringen.de/flbattle/kurz/php5_error.tar.bz2 Reproduce code: --------------- int main() { mysql_close() ; return 0; } configure:54582: checking for mysql_error in -lmysqlclient configure:54601: gcc -o conftest -g -O2 -Wl,-rpath,/usr/X11R6/lib -L/usr/X11R6/lib -Wl,-rpath,/opt/gnome/lib -L/opt/gnome/lib -Wl,-rpath,/usr -L/usr conftest.c -lmysqlclient -lz -lmhash -lmcrypt -lltdl -lgd -lfreetype -lX11 -lXpm -lpng -lz -ljpeg -lcurl -lbz2 -lz -lssl -lcrypto -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lcurl -lz -lssl -lcrypto -ldl -lssl -lcrypto -ldl -lxml2 -lz -lm -lmono -lm -lgmodule-2.0 -ldl -lgthread-2.0 -lglib-2.0 1>&5 /usr/lib/gcc-lib/i586-suse-linux/3.3.1/../../../libmysqlclient.so: undefined reference to `OpenSSL_add_all_algorithms' collect2: ld returned 1 exit status configure: failed program was: #line 54590 "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; } Expected result: ---------------- Actual result: -------------- -- Edit bug report at http://bugs.php.net/?id=27927&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27927&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27927&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=27927&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=27927&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=27927&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=27927&r=needscript Try newer version: http://bugs.php.net/fix.php?id=27927&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=27927&r=support Expected behavior: http://bugs.php.net/fix.php?id=27927&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=27927&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=27927&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=27927&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27927&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=27927&r=dst IIS Stability: http://bugs.php.net/fix.php?id=27927&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=27927&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=27927&r=float