php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16804 failed to configure with mysql-4.01-alpha-ssl
Submitted: 2002-04-24 14:12 UTC Modified: 2002-07-02 22:51 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: Xuefer at 21cn dot com Assigned:
Status: Not a bug Package: MySQL related
PHP Version: 4.2.0 OS: linux-redhat 7.2
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: Xuefer at 21cn dot com
New email:
PHP Version: OS:

 

 [2002-04-24 14:12 UTC] Xuefer at 21cn dot com
my mysql is configure with open ssl

php configure with mysql-4.0
--with-mysq=/usr/local/mysql

configure check failed
cause it didn't link it with -lssl
also i had to add -lssl for php linking by hand

checking for MySQL support... yes
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.

config.log:
...........
viosslfactories.o(.text+0x473): undefined reference to `ERR_print_errors_fp'
viosslfactories.o(.text+0x496): undefined reference to `ERR_get_error_line_data'
viosslfactories.o(.text+0x4ab): undefined reference to `SSL_load_error_strings'
viosslfactories.o(.text+0x4bc): undefined reference to `OpenSSL_add_all_algorithms'
/usr/local/mysql/lib/mysql/libmysqlclient.a(viosslfactories.o): In function `vio_verify_callback':
viosslfactories.o(.text+0x4ea): undefined reference to `X509_STORE_CTX_get_current_cert'
viosslfactories.o(.text+0x4f4): undefined reference to `X509_STORE_CTX_get_error'
viosslfactories.o(.text+0x4fc): undefined reference to `X509_STORE_CTX_get_error_depth'
viosslfactories.o(.text+0x511): undefined reference to `X509_get_subject_name'
viosslfactories.o(.text+0x519): undefined reference to `X509_NAME_oneline'
viosslfactories.o(.text+0x548): undefined reference to `X509_get_issuer_name'
viosslfactories.o(.text+0x550): undefined reference to `X509_NAME_oneline'
collect2: ld returned 1 exit status
configure: failed program was:
#line 39578 "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; }


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-24 14:21 UTC] Xuefer at 21cn dot com
mysql# configure --with-openssl ......
but now
mysql# configure --with-openssl=share
it's ok
 [2002-04-24 20:13 UTC] sniper@php.net
Does adding --with-openssl to your PHP configure line help?

 [2002-04-25 01:30 UTC] Xuefer at 21cn dot com
php '--with-openssl' still not help no "-lssl" is added for linking
but if i configure php '--with-openssl=/usr'
passed

why? it's said "--with-openssl=[DIR]", DIR should can optional right ?

i don't wanna compile openssl functions for php
 [2002-04-25 02:11 UTC] Xuefer at 21cn dot com
i've tested again again
ok now
mysql# configure --with-openssl=/usr ..
this works fine even php without openssl module

why do i have to specify DIR ?
it this bug is bogus, it should be explain about [DIR] in document
 [2002-07-02 22:51 UTC] sniper@php.net
Not really bug. If you want ssl support with mysql, you need to use --with-openssl

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue May 13 12:01:27 2025 UTC