php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35396 Cannot compile PDO as shared module with sqlite v2 and pdo-sqlite v3 enabled
Submitted: 2005-11-25 15:17 UTC Modified: 2005-11-25 15:18 UTC
From: jstienstra at welnet dot nl Assigned:
Status: Not a bug Package: PDO related
PHP Version: 5.1.0 OS: CentOS 4.2
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jstienstra at welnet dot nl
New email:
PHP Version: OS:

 

 [2005-11-25 15:17 UTC] jstienstra at welnet dot nl
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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-11-25 15:18 UTC] sniper@php.net
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.


 [2005-11-25 15:18 UTC] jstienstra at welnet dot nl
fixed typo in summary
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Nov 13 05:01:29 2024 UTC