#49236 [NEW]: Miss PDO_MYSQL_SHARED_LIBADD when build pdo_mysql
| From: | xueron at xueron dot com | Date: | Wed, 12 Aug 2009 13:05:55 +0000 |
| Subject: | #49236 [NEW]: Miss PDO_MYSQL_SHARED_LIBADD when build pdo_mysql | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-140976@lists.php.net to get a copy of this message | ||
From: xueron at xueron dot com
Operating system: CentOS 5.3
PHP version: 5.3.0
PHP Bug Type: PDO related
Bug description: Miss PDO_MYSQL_SHARED_LIBADD when build pdo_mysql
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.
--
Edit bug report at http://bugs.php.net/?id=49236&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=49236&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=49236&r=trysnapshot53
Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=49236&r=trysnapshot60
Fixed in SVN: http://bugs.php.net/fix.php?id=49236&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=49236&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=49236&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=49236&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=49236&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=49236&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=49236&r=support
Expected behavior: http://bugs.php.net/fix.php?id=49236&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=49236&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=49236&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=49236&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49236&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=49236&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=49236&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=49236&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=49236&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=49236&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=49236&r=mysqlcfg