#35778 [Opn->Bgs]: PHP 5.1.1
| From: | tony2001@php.net | Date: | Fri, 23 Dec 2005 11:22:08 +0000 |
| Subject: | #35778 [Opn->Bgs]: PHP 5.1.1 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-90925@lists.php.net to get a copy of this message | ||
ID: 35778
Updated by: tony2001@php.net
Reported By: popefelix at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: PDO related
Operating System: SuSE Linux 9.3
PHP Version: 5.1.1
New Comment:
The error message is quite informative, isn't it?
Previous Comments:
------------------------------------------------------------------------
[2005-12-22 22:50:22] popefelix at gmail dot com
configure error was with 200512221930 CVS snap
------------------------------------------------------------------------
[2005-12-22 22:49:36] popefelix at gmail dot com
configure: error:
You've configured extension pdo_sqlite to build statically, but it
depends on extension pdo, which you've configured to build shared.
You either need to build pdo_sqlite shared or build pdo statically for
the
build to be successful.
------------------------------------------------------------------------
[2005-12-22 22:11:36] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5.1-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.1-win32-latest.zip
------------------------------------------------------------------------
[2005-12-22 22:11:02] popefelix at gmail dot com
Description:
------------
When attempting to compile PHP 5.1.1 with "--enable-pdo=shared" passed
to ./configure, make fails with undefined references in
ext/pdo_sqlite/pdo_sqlite.c.
While I realize that this is a duplicate of bug 34939, this error is in
PHP 5.1.1, which postdates the closure of that bug.
Reproduce code:
---------------
'./configure' '--enable-soap' '--with-apxs2'
'--with-mysqli=/usr/local/mysql/bin/mysql_config'
'--prefix=/usr/local/php' '--with-xml' '--with-zlib'
'--with-openssl'
'--enable-calendar' '--with-jpeg-dir=/usr/lib' '--with-gd'
'--with-xsl'
'--enable-mbstring' --enable-pdo=shared --enable-fileinfo=shared
Expected result:
----------------
PHP should compile.
Actual result:
--------------
ext/pdo_sqlite/.libs/pdo_sqlite.o(.text+0x5c): In function
`zm_shutdown_pdo_sqlite':
/usr/src/php-5.1.1/ext/pdo_sqlite/pdo_sqlite.c:87: undefined reference
to `php_pdo_unregister_driver'
ext/pdo_sqlite/.libs/pdo_sqlite.o(.text+0x7c): In function
`zm_startup_pdo_sqlite':
/usr/src/php-5.1.1/ext/pdo_sqlite/pdo_sqlite.c:80: undefined reference
to `php_pdo_register_driver'
ext/pdo_sqlite/.libs/sqlite_driver.o(.text+0x19c): In function
`zif_SQLite_sqliteCreateAggregate':
/usr/src/php-5.1.1/ext/pdo_sqlite/sqlite_driver.c:543: undefined
reference to `pdo_raise_impl_error'
ext/pdo_sqlite/.libs/sqlite_driver.o(.text+0x394): In function
`zif_SQLite_sqliteCreateFunction':
/usr/src/php-5.1.1/ext/pdo_sqlite/sqlite_driver.c:471: undefined
reference to `pdo_raise_impl_error'
ext/pdo_sqlite/.libs/sqlite_driver.o(.text+0xb2a): In function
`pdo_sqlite_last_insert_id':
/usr/src/php-5.1.1/ext/pdo_sqlite/sqlite_driver.c:197: undefined
reference to `php_pdo_int64_to_str'
ext/pdo_sqlite/.libs/sqlite_driver.o(.text+0xddc): In function
`_pdo_sqlite_error':
/usr/src/php-5.1.1/ext/pdo_sqlite/sqlite_driver.c:78: undefined
reference to `php_pdo_get_exception'
ext/pdo_sqlite/.libs/sqlite_driver.o(.text+0x101d): In function
`pdo_sqlite_handle_factory':
/usr/src/php-5.1.1/ext/pdo_sqlite/sqlite_driver.c:697: undefined
reference to `php_pdo_get_exception'
ext/pdo_sqlite/.libs/sqlite_statement.o(.text+0x365): In function
`pdo_sqlite_stmt_param_hook':
/usr/src/php-5.1.1/ext/pdo_sqlite/sqlite_statement.c:116: undefined
reference to `pdo_raise_impl_error'
ext/sqlite/.libs/sqlite.o(.text+0x4a67): In function
`zm_shutdown_sqlite':
/usr/src/php-5.1.1/ext/sqlite/sqlite.c:1113: undefined reference to
`php_pdo_unregister_driver'
ext/sqlite/.libs/sqlite.o(.text+0x5298): In function
`zm_startup_sqlite':
/usr/src/php-5.1.1/ext/sqlite/sqlite.c:1100: undefined reference to
`php_pdo_register_driver'
ext/sqlite/.libs/pdo_sqlite2.o(.text+0x1af): In function
`pdo_sqlite2_last_insert_id':
/usr/src/php-5.1.1/ext/sqlite/pdo_sqlite2.c:373: undefined reference to
`php_pdo_int64_to_str'
ext/sqlite/.libs/pdo_sqlite2.o(.text+0x544): In function
`_pdo_sqlite2_error':
/usr/src/php-5.1.1/ext/sqlite/pdo_sqlite2.c:291: undefined reference to
`php_pdo_get_exception'
ext/sqlite/.libs/pdo_sqlite2.o(.text+0xb60): In function
`pdo_sqlite2_handle_factory':
/usr/src/php-5.1.1/ext/sqlite/pdo_sqlite2.c:579: undefined reference to
`php_pdo_get_exception'
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35778&edit=1