php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #49236 Missing PHP_SUBST(PDO_MYSQL_SHARED_LIBADD)
Submitted: 2009-08-12 13:05 UTC Modified: 2009-08-17 17:57 UTC
From: xueron at xueron dot com Assigned:
Status: Closed Package: PDO related
PHP Version: 5.3.0 OS: CentOS 5.3
Private report: No CVE-ID:
 [2009-08-12 13:05 UTC] xueron at xueron dot com
Description:
------------
[root@cvs pdo_mysql]# pwd
/home/src/php-5.3.0/ext/pdo_mysql

[root@cvs pdo_mysql]# ./configure --with-php-config=/home/amos/bin/php-cconfig --with-pdo-mysql=/home/amos --with-zlib-dir=/usr 

.....

[root@cvs pdo_mysql]# make
.....
/src/php-5.3.0/ext/pdo_mysql/modules  pdo_mysql.lo mysql_driver.lo mysql_statement.lo 
cc -shared  .libs/pdo_mysql.o .libs/mysql_driver.o .libs/mysql_statement.o   -Wl,-soname -Wl,pdo_mysql.so -o .libs/pdo_mysql.so
creating pdo_mysql.la

Here, I found pdo_mysql.so was not linked with libmysqlclient_r.so. So I checked the Makefile, and compared whit my working version(5.2.10), I found, PDO_MYSQL_SHARED_LIBADD was missed in the Makefile.

After I add:
PDO_MYSQL_SHARED_LIBADD = -Wl,-rpath,/home/amos/lib/ -L/home/amos/lib/ -Wl,-rpath,/home/amos/lib/mysql -L/home/amos/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -lssl -lcr
ypto

to Makefile and remake, it works.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-08-17 17:57 UTC] svn@php.net
Automatic comment from SVN on behalf of jani
Revision: http://svn.php.net/viewvc/?view=revision&revision=287424
Log: - Fixed bug #49236 (Missing PHP_SUBST(PDO_MYSQL_SHARED_LIBADD)).
 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Thu Apr 17 01:01:56 2014 UTC