ID:               35396
 User updated by:  jstienstra at welnet dot nl
-Summary:          annot compile PDO as shared module with sqlite v2 and
                   pdo-sqlite v3 enabled
 Reported By:      jstienstra at welnet dot nl
 Status:           Bogus
 Bug Type:         PDO related
 Operating System: CentOS 4.2
 PHP Version:      5.1.0
 New Comment:

fixed typo in summary


Previous Comments:
------------------------------------------------------------------------

[2005-11-25 15:18:14] [EMAIL PROTECTED]

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:17:24] 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



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=35396&edit=1

Reply via email to