php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27927 Configure can't use libmysqlclient.so with SSL 0.9.7b and MySQL 5
Submitted: 2004-04-09 02:06 UTC Modified: 2004-04-09 03:46 UTC
From: heinemann dot juergen at t-online dot de Assigned:
Status: Not a bug Package: *Compile Issues
PHP Version: 5CVS-2004-04-09 (dev) OS: Linux
Private report: No CVE-ID: None
 [2004-04-09 02:06 UTC] heinemann dot juergen at t-online dot de
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:
--------------
 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-04-09 03:46 UTC] derick@php.net
This is not a problem in PHP, but with the libraries available on your system.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 03:01:32 2024 UTC