From: marcel dot bariou at brasnah dot com
Operating system: LINUX RH ES3
PHP version: 5.1.0RC3
PHP Bug Type: PDO related
Bug description: Undefined reference make failed
Description:
------------
I start with this configure directive :
./configure --prefix=/etc/httpd --with-apxs2=/usr/sbin/apxs
--with-config-file-path=/etc/httpd/conf --with-mysql=/usr/local/mysql
--enable-bc-math --enable-calendar --with-curl=/usr --enable-exif
--with-gettext --with-gmp --enable-id3
--with-java=/usr/local/java=/usr/local/j2sdk --with-mcrypt=/usr/local
--with-mhash=/usr/local --enable-overload --enable-pcntl --with-regex=PHP
--enable-soap --enable-sockets --with-tidy=/usr/local --enable-wddx
--with-xsl=/usr/local --enable-xslt --with-xslt-sablot
--with-expat-dir=/usr --enable-php-streams --enable-memory-limit
--enable-cli --enable-posix --enable-pcre --enable-sysvmsg
--enable-sysvsem --enable-sysvshm --enable-shmop --with-pear --with-xmlrpc
--with-zlib=/usr --with-iconv --with-iconv-dir=/usr/local
--with-pdo-mysql=/usr/local/mysql --enable-pdo=shared
Make message => :
ext/pdo_mysql/.libs/pdo_mysql.o(.text+0x13): In function
`zm_startup_pdo_mysql':
/usr/local/xtra_targz/php5-200510202030/ext/pdo_mysql/pdo_mysql.c:78:
undefined reference to `php_pdo_declare_long_constant'
ext/pdo_mysql/.libs/pdo_mysql.o(.text+0x34): In function
`zm_shutdown_pdo_mysql':
/usr/local/xtra_targz/php5-200510202030/ext/pdo_mysql/pdo_mysql.c:88:
undefined reference to `php_pdo_unregister_driver'
ext/pdo_mysql/.libs/pdo_mysql.o(.text+0x23): In function
`zm_startup_pdo_mysql':
/usr/local/xtra_targz/php5-200510202030/ext/pdo_mysql/pdo_mysql.c:80:
undefined reference to `php_pdo_register_driver'
ext/pdo_mysql/.libs/mysql_driver.o(.text+0x197): In function
`_pdo_mysql_error':
/usr/local/xtra_targz/php5-200510202030/ext/pdo_mysql/mysql_driver.c:100:
undefined reference to `php_pdo_get_exception'
ext/pdo_mysql/.libs/mysql_driver.o(.text+0x378): In function
`mysql_handle_preparer':
/usr/local/xtra_targz/php5-200510202030/ext/pdo_mysql/mysql_driver.c:169:
undefined reference to `pdo_parse_params'
ext/pdo_mysql/.libs/mysql_driver.o(.text+0x57a): In function
`pdo_mysql_last_insert_id':
/usr/local/xtra_targz/php5-200510202030/ext/pdo_mysql/mysql_driver.c:250:
undefined reference to `php_pdo_int64_to_str'
ext/pdo_mysql/.libs/mysql_driver.o(.text+0x84e): In function
`pdo_mysql_handle_factory':
/usr/local/xtra_targz/php5-200510202030/ext/pdo_mysql/mysql_driver.c:403:
undefined reference to `php_pdo_parse_data_source'
ext/pdo_mysql/.libs/mysql_statement.o(.text+0x835): In function
`pdo_mysql_stmt_param_hook':
/usr/local/xtra_targz/php5-200510202030/ext/pdo_mysql/mysql_statement.c:332:
undefined reference to `pdo_raise_impl_error'
ext/pdo_sqlite/.libs/pdo_sqlite.o(.text+0x1c): In function
`zm_shutdown_pdo_sqlite':
/usr/local/xtra_targz/php5-200510202030/ext/pdo_sqlite/pdo_sqlite.c:87:
undefined reference to `php_pdo_unregister_driver'
ext/pdo_sqlite/.libs/pdo_sqlite.o(.text+0xc): In function
`zm_startup_pdo_sqlite':
/usr/local/xtra_targz/php5-200510202030/ext/pdo_sqlite/pdo_sqlite.c:80:
undefined reference to `php_pdo_register_driver'
ext/pdo_sqlite/.libs/sqlite_driver.o(.text+0xa5): In function
`_pdo_sqlite_error':
/usr/local/xtra_targz/php5-200510202030/ext/pdo_sqlite/sqlite_driver.c:78:
undefined reference to `php_pdo_get_exception'
ext/pdo_sqlite/.libs/sqlite_driver.o(.text+0x37e): In function
`pdo_sqlite_last_insert_id':
/usr/local/xtra_targz/php5-200510202030/ext/pdo_sqlite/sqlite_driver.c:197:
undefined reference to `php_pdo_int64_to_str'
ext/pdo_sqlite/.libs/sqlite_driver.o(.text+0xb62): In function
`zif_SQLite_sqliteCreateFunction':
/usr/local/xtra_targz/php5-200510202030/ext/pdo_sqlite/sqlite_driver.c:471:
undefined reference to `pdo_raise_impl_error'
ext/pdo_sqlite/.libs/sqlite_driver.o(.text+0xcd6): In function
`zif_SQLite_sqliteCreateAggregate':
/usr/local/xtra_targz/php5-200510202030/ext/pdo_sqlite/sqlite_driver.c:543:
undefined reference to `pdo_raise_impl_error'
ext/pdo_sqlite/.libs/sqlite_driver.o(.text+0x1077): In function
`pdo_sqlite_handle_factory':
/usr/local/xtra_targz/php5-200510202030/ext/pdo_sqlite/sqlite_driver.c:697:
undefined reference to `php_pdo_get_exception'
ext/pdo_sqlite/.libs/sqlite_statement.o(.text+0x2d6): In function
`pdo_sqlite_stmt_param_hook':
/usr/local/xtra_targz/php5-200510202030/ext/pdo_sqlite/sqlite_statement.c:116:
undefined reference to `pdo_raise_impl_error'
ext/sqlite/.libs/sqlite.o(.text+0x172f): In function `zm_startup_sqlite':
/usr/local/xtra_targz/php5-200510202030/ext/sqlite/sqlite.c:1100:
undefined reference to `php_pdo_register_driver'
ext/sqlite/.libs/sqlite.o(.text+0x175e): In function
`zm_shutdown_sqlite':
/usr/local/xtra_targz/php5-200510202030/ext/sqlite/sqlite.c:1113:
undefined reference to `php_pdo_unregister_driver'
ext/sqlite/.libs/pdo_sqlite2.o(.text+0x4df): In function
`_pdo_sqlite2_error':
/usr/local/xtra_targz/php5-200510202030/ext/sqlite/pdo_sqlite2.c:291:
undefined reference to `php_pdo_get_exception'
ext/sqlite/.libs/pdo_sqlite2.o(.text+0x73f): In function
`pdo_sqlite2_last_insert_id':
/usr/local/xtra_targz/php5-200510202030/ext/sqlite/pdo_sqlite2.c:373:
undefined reference to `php_pdo_int64_to_str'
ext/sqlite/.libs/pdo_sqlite2.o(.text+0xbfc): In function
`pdo_sqlite2_handle_factory':
/usr/local/xtra_targz/php5-200510202030/ext/sqlite/pdo_sqlite2.c:579:
undefined reference to `php_pdo_get_exception'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Erreur 1
Thanks for your help
--
Edit bug report at http://bugs.php.net/?id=34939&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34939&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34939&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34939&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=34939&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=34939&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=34939&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=34939&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=34939&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=34939&r=support
Expected behavior: http://bugs.php.net/fix.php?id=34939&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=34939&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=34939&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=34939&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34939&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=34939&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=34939&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=34939&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=34939&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=34939&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=34939&r=mysqlcfg