From:             mailREMOVE_NOSPAM at philipp-wagner dot com
Operating system: SuSE Linux 8.0
PHP version:      5CVS-2005-11-27 (snap)
PHP Bug Type:     Compile Failure
Bug description:  PHP make fails with PDO and MySQL5

Description:
------------
I get the same error as in bug #34939 with PHP 5.1.0 (official release)
and also today's snapshot release. During the final linking process of
make, I get the following error:

ext/pdo_mysql/.libs/pdo_mysql.o: In function `zm_startup_pdo_mysql':
/usr/local/src/php5-200511271530/ext/pdo_mysql/pdo_mysql.c:78: undefined
referen
ce to `php_pdo_declare_long_constant'
/usr/local/src/php5-200511271530/ext/pdo_mysql/pdo_mysql.c:79: undefined
referen
ce to `php_pdo_declare_long_constant'
/usr/local/src/php5-200511271530/ext/pdo_mysql/pdo_mysql.c:80: undefined
referen
ce to `php_pdo_declare_long_constant'
/usr/local/src/php5-200511271530/ext/pdo_mysql/pdo_mysql.c:81: undefined
referen
ce to `php_pdo_declare_long_constant'
/usr/local/src/php5-200511271530/ext/pdo_mysql/pdo_mysql.c:82: undefined
referen
ce to `php_pdo_declare_long_constant'
/usr/local/src/php5-200511271530/ext/pdo_mysql/pdo_mysql.c:84: undefined
referen
ce to `php_pdo_register_driver'
ext/pdo_mysql/.libs/pdo_mysql.o: In function `zm_shutdown_pdo_mysql':
/usr/local/src/php5-200511271530/ext/pdo_mysql/pdo_mysql.c:92: undefined
referen
ce to `php_pdo_unregister_driver'
ext/pdo_mysql/.libs/mysql_driver.o: In function `_pdo_mysql_error':
/usr/local/src/php5-200511271530/ext/pdo_mysql/mysql_driver.c:109:
undefined ref
erence to `php_pdo_get_exception'
ext/pdo_mysql/.libs/mysql_driver.o: In function `mysql_handle_preparer':
/usr/local/src/php5-200511271530/ext/pdo_mysql/mysql_driver.c:178:
undefined ref
erence to `pdo_parse_params'
ext/pdo_mysql/.libs/mysql_driver.o: In function
`pdo_mysql_last_insert_id':
/usr/local/src/php5-200511271530/ext/pdo_mysql/mysql_driver.c:259:
undefined ref
erence to `php_pdo_int64_to_str'
ext/pdo_mysql/.libs/mysql_driver.o: In function
`pdo_mysql_handle_factory':
/usr/local/src/php5-200511271530/ext/pdo_mysql/mysql_driver.c:412:
undefined ref
erence to `php_pdo_parse_data_source'
ext/pdo_mysql/.libs/mysql_statement.o: In function
`pdo_mysql_stmt_param_hook':
/usr/local/src/php5-200511271530/ext/pdo_mysql/mysql_statement.c:338:
undefined
reference to `pdo_raise_impl_error'
ext/pdo_sqlite/.libs/pdo_sqlite.o: In function `zm_startup_pdo_sqlite':
/usr/local/src/php5-200511271530/ext/pdo_sqlite/pdo_sqlite.c:80: undefined
refer
ence to `php_pdo_register_driver'
ext/pdo_sqlite/.libs/pdo_sqlite.o: In function `zm_shutdown_pdo_sqlite':
/usr/local/src/php5-200511271530/ext/pdo_sqlite/pdo_sqlite.c:87: undefined
refer
ence to `php_pdo_unregister_driver'
ext/pdo_sqlite/.libs/sqlite_driver.o: In function `_pdo_sqlite_error':
/usr/local/src/php5-200511271530/ext/pdo_sqlite/sqlite_driver.c:78:
undefined re
ference to `php_pdo_get_exception'
ext/pdo_sqlite/.libs/sqlite_driver.o: In function
`pdo_sqlite_last_insert_id':
/usr/local/src/php5-200511271530/ext/pdo_sqlite/sqlite_driver.c:197:
undefined r
eference to `php_pdo_int64_to_str'
ext/pdo_sqlite/.libs/sqlite_driver.o: In function
`zif_SQLite_sqliteCreateFuncti
on':
/usr/local/src/php5-200511271530/ext/pdo_sqlite/sqlite_driver.c:471:
undefined r
eference to `pdo_raise_impl_error'
ext/pdo_sqlite/.libs/sqlite_driver.o: In function
`zif_SQLite_sqliteCreateAggreg
ate':
/usr/local/src/php5-200511271530/ext/pdo_sqlite/sqlite_driver.c:543:
undefined r
eference to `pdo_raise_impl_error'
ext/pdo_sqlite/.libs/sqlite_driver.o: In function
`pdo_sqlite_handle_factory':
/usr/local/src/php5-200511271530/ext/pdo_sqlite/sqlite_driver.c:697:
undefined r
eference to `php_pdo_get_exception'
ext/pdo_sqlite/.libs/sqlite_statement.o: In function
`pdo_sqlite_stmt_param_hook
':
/usr/local/src/php5-200511271530/ext/pdo_sqlite/sqlite_statement.c:116:
undefine
d reference to `pdo_raise_impl_error'
ext/sqlite/.libs/sqlite.o: In function `zm_startup_sqlite':
/usr/local/src/php5-200511271530/ext/sqlite/sqlite.c:1100: undefined
reference t
o `php_pdo_register_driver'
ext/sqlite/.libs/sqlite.o: In function `zm_shutdown_sqlite':
/usr/local/src/php5-200511271530/ext/sqlite/sqlite.c:1113: undefined
reference to `php_pdo_unregister_driver'
ext/sqlite/.libs/pdo_sqlite2.o: In function `_pdo_sqlite2_error':
/usr/local/src/php5-200511271530/ext/sqlite/pdo_sqlite2.c:291: undefined
reference to `php_pdo_get_exception'
ext/sqlite/.libs/pdo_sqlite2.o: In function `pdo_sqlite2_last_insert_id':
/usr/local/src/php5-200511271530/ext/sqlite/pdo_sqlite2.c:373: undefined
reference to `php_pdo_int64_to_str'
ext/sqlite/.libs/pdo_sqlite2.o: In function `pdo_sqlite2_handle_factory':
/usr/local/src/php5-200511271530/ext/sqlite/pdo_sqlite2.c:579: undefined
reference to `php_pdo_get_exception'


Reproduce code:
---------------
I am using MySQL 5.0.16 and my configure line was as follows:

'./configure' '--enable-trans-sid' '--enable-memory-limit'
'--with-config-file-path=/etc' '--enable-xslt' '--with-xslt-sablot'
'--enable-ftp' '--enable-bcmath' '--with-bz2'
'--with-apxs2=/usr/local/apache2/bin/apxs' '--with-mysql=/usr/local/mysql'
'--with-gzip' '--with-bzip2' '--with-gd' '--with-jpeg-dir=/usr/lib'
'--with-zlib-dir=/usr/lib' '--with-iconv-dir=/usr/local/lib'
'--with-iconv=/usr/local/lib' '--with-freetype-dir'
'--enable-gd-native-ttf' '--with-magickwand=/usr/local'
--enable-pdo=shared --with-pdo-mysql=/usr/local/mysql
--with-mysqli=/usr/local/mysql/bin/mysql_config --enable-mbstring

I didn't get any error when I was compiling PHP without any PDO configure
option, it built fine with PDO support for sqlite. Unfortunately it's hard
for me to try every possible combination of configure lines which may cause
the problem, as a make process takes about two hours on my machine. But if
you need me to try a certain configure line, I'll be glad to provide you
with the results.


-- 
Edit bug report at http://bugs.php.net/?id=35432&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=35432&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=35432&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=35432&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=35432&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=35432&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=35432&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=35432&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=35432&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=35432&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=35432&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=35432&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=35432&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=35432&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=35432&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=35432&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=35432&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=35432&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=35432&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=35432&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=35432&r=mysqlcfg

Reply via email to