From: jstienstra at welnet dot nl
Operating system: CentOS 4.2
PHP version: 5.1.0
PHP Bug Type: PDO related
Bug description: annot compile PDO as shared module with sqlite v2 and pdo-sqlite v3 enabled
Description:
------------
PDO cannot compile as a shared module when pdo-sqlite and sqlite are
enabled.
disabling these modules using '--without-pdo-sqlite' and
'--without-sqlite' compiles successfully.
OR
building PDO statically in PHP with sqlite and pdo-sqlite enabled also
works.
compile errors and configure lines here:
http://www.xs4all.nl/~welnet/php5_1_0_pdo_errors.txt
Reproduce code:
---------------
./configure \
--with-apxs2=/usr/sbin/apxs \
--enable-shared \
--enable-pdo=shared \
--with-pdo-pgsql=shared
Expected result:
----------------
Build completes without errors.
Actual result:
--------------
RESULT:
ext/pdo_sqlite/.libs/pdo_sqlite.o(.text+0x1c): In function
`zm_shutdown_pdo_sqlite':
/usr/src/php-5.1.0/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/src/php-5.1.0/ext/pdo_sqlite/pdo_sqlite.c:80: undefined reference to
`php_pdo_register_driver'
ext/pdo_sqlite/.libs/sqlite_driver.o(.text+0xaa): In function
`_pdo_sqlite_error':
/usr/src/php-5.1.0/ext/pdo_sqlite/sqlite_driver.c:78: undefined reference
to `php_pdo_get_exception'
ext/pdo_sqlite/.libs/sqlite_driver.o(.text+0x44e): In function
`pdo_sqlite_last_insert_id':
/usr/src/php-5.1.0/ext/pdo_sqlite/sqlite_driver.c:197: undefined reference
to `php_pdo_int64_to_str'
ext/pdo_sqlite/.libs/sqlite_driver.o(.text+0xc96): In function
`zif_SQLite_sqliteCreateFunction':
/usr/src/php-5.1.0/ext/pdo_sqlite/sqlite_driver.c:471: undefined reference
to `pdo_raise_impl_error'
ext/pdo_sqlite/.libs/sqlite_driver.o(.text+0xe1e): In function
`zif_SQLite_sqliteCreateAggregate':
/usr/src/php-5.1.0/ext/pdo_sqlite/sqlite_driver.c:543: undefined reference
to `pdo_raise_impl_error'
ext/pdo_sqlite/.libs/sqlite_driver.o(.text+0x1243): In function
`pdo_sqlite_handle_factory':
/usr/src/php-5.1.0/ext/pdo_sqlite/sqlite_driver.c:697: undefined reference
to `php_pdo_get_exception'
ext/pdo_sqlite/.libs/sqlite_statement.o(.text+0x316): In function
`pdo_sqlite_stmt_param_hook':
/usr/src/php-5.1.0/ext/pdo_sqlite/sqlite_statement.c:116: undefined
reference to `pdo_raise_impl_error'
ext/sqlite/.libs/sqlite.o(.text+0x16f3): In function `zm_startup_sqlite':
/usr/src/php-5.1.0/ext/sqlite/sqlite.c:1100: undefined reference to
`php_pdo_register_driver'
ext/sqlite/.libs/sqlite.o(.text+0x171e): In function
`zm_shutdown_sqlite':
/usr/src/php-5.1.0/ext/sqlite/sqlite.c:1113: undefined reference to
`php_pdo_unregister_driver'
ext/sqlite/.libs/pdo_sqlite2.o(.text+0x1a3): In function
`_pdo_sqlite2_error':
/usr/src/php-5.1.0/ext/sqlite/pdo_sqlite2.c:291: undefined reference to
`php_pdo_get_exception'
ext/sqlite/.libs/pdo_sqlite2.o(.text+0x803): In function
`pdo_sqlite2_last_insert_id':
/usr/src/php-5.1.0/ext/sqlite/pdo_sqlite2.c:373: undefined reference to
`php_pdo_int64_to_str'
ext/sqlite/.libs/pdo_sqlite2.o(.text+0xd51): In function
`pdo_sqlite2_handle_factory':
/usr/src/php-5.1.0/ext/sqlite/pdo_sqlite2.c:579: undefined reference to
`php_pdo_get_exception'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
--
Edit bug report at http://bugs.php.net/?id=35396&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=35396&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=35396&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=35396&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=35396&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=35396&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=35396&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=35396&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=35396&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=35396&r=support
Expected behavior: http://bugs.php.net/fix.php?id=35396&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=35396&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=35396&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=35396&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35396&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=35396&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=35396&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=35396&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=35396&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=35396&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=35396&r=mysqlcfg