php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19016 --with-mysql: CLIENT_SSL undeclared
Submitted: 2002-08-21 07:58 UTC Modified: 2002-08-23 10:10 UTC
From: michael dot mauch at gmx dot de Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4CVS-2002-08-21 OS: Tru64 4.0
Private report: No CVE-ID: None
 [2002-08-21 07:58 UTC] michael dot mauch at gmx dot de
'./configure' '--prefix=/Team/local' '--enable-exif' '--enable-track-vars' '--with-calendar=shared' '--enable-safe-mode' '--enable-magic-quotes' '--enable-trans-sid' '--enable-wddx' '--enable-ftp' '--with-oci8=/appl/oracle/product/8.1.6' '--with-mysql=/usr/local/mysql'

[...]
gcc  -Iext/mysql/ -I/Team/local/src/php4-200208210300/ext/mysql/ -DPHP_ATOM_INC -I/Team/local/src/php4-200208210300/include -I/Team/local/src/php4-200208210300/main -I/Team/local/src/php4-200208210300 -I/Team/local/src/php4-200208210300/Zend -I/usr/local/mysql/include/mysql -I/appl/oracle/product/8.1.6/rdbms/public -I/appl/oracle/product/8.1.6/rdbms/demo -I/appl/oracle/product/8.1.6/network/public -I/Team/local/src/php4-200208210300/ext/xml/expat  -I/Team/local/src/php4-200208210300/TSRM  -g -O2  -c /Team/local/src/php4-200208210300/ext/mysql/php_mysql.c -o ext/mysql/php_mysql.o  && echo > ext/mysql/php_mysql.lo
In file included from /usr/local/lib/gcc-lib/alphaev6-dec-osf4.0f/2.95.2/include/stdarg.h:36,
                 from /Team/local/src/php4-200208210300/Zend/zend.h:63,
                 from /Team/local/src/php4-200208210300/main/php.h:34,
                 from /Team/local/src/php4-200208210300/ext/mysql/php_mysql.c:32:
/usr/local/lib/gcc-lib/alphaev6-dec-osf4.0f/2.95.2/include/va-alpha.h:36: warning: redefinition of `va_list'
/usr/local/lib/gcc-lib/alphaev6-dec-osf4.0f/2.95.2/include/va_list.h:7: warning: `va_list' previously declared here
/Team/local/src/php4-200208210300/ext/mysql/php_mysql.c: In function `zm_startup_mysql':
/Team/local/src/php4-200208210300/ext/mysql/php_mysql.c:374: `CLIENT_SSL' undeclared (first use in this function)
/Team/local/src/php4-200208210300/ext/mysql/php_mysql.c:374: (Each undeclared identifier is reported only once
/Team/local/src/php4-200208210300/ext/mysql/php_mysql.c:374: for each function it appears in.)
/Team/local/src/php4-200208210300/ext/mysql/php_mysql.c: In function `php_mysql_do_connect':
/Team/local/src/php4-200208210300/ext/mysql/php_mysql.c:708: warning: cast from pointer to integer of different size
/Team/local/src/php4-200208210300/ext/mysql/php_mysql.c: In function `zif_mysql_character_set_name':
/Team/local/src/php4-200208210300/ext/mysql/php_mysql.c:1073: warning: cast to pointer from integer of different size
*** Exit 1
Stop.

If I add -DCLIENT_SSL=0, it compiles.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-21 13:30 UTC] sander@php.net
You're libmysqlclient has ssl support. You probably need to compile PHP --with-openssl to fix this problem.
 [2002-08-21 21:17 UTC] sniper@php.net
Sander was a bit wrong there. It seems your mysql client libraries might be a bit old? What version of mysql do you have installed? 

 [2002-08-22 11:54 UTC] michael dot mauch at gmx dot de
mysql  Ver 9.38 Distrib 3.22.32, for dec-osf4.0g (alphaev6)

Yes, it's two years old, but it works fine with php4-STABLE-200208220600 if I use --with-ssl or not, but it does not work at all with php4-200208220600.

If it's too old, configure should tell me so, shouldn't it?
 [2002-08-23 06:54 UTC] michael dot mauch at gmx dot de
I used "Add Comment" instead of "Edit Submission", sorry.
 [2002-08-23 10:10 UTC] georg@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 19 16:01:31 2024 UTC