php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35778 PHP 5.1.1
Submitted: 2005-12-22 22:11 UTC Modified: 2005-12-23 13:04 UTC
From: popefelix at gmail dot com Assigned:
Status: Not a bug Package: PDO related
PHP Version: 5.1.1 OS: SuSE Linux 9.3
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: popefelix at gmail dot com
New email:
PHP Version: OS:

 

 [2005-12-22 22:11 UTC] 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'


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-12-22 22:11 UTC] 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:49 UTC] 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:50 UTC] popefelix at gmail dot com
configure error was with 200512221930 CVS snap
 [2005-12-23 12:22 UTC] tony2001@php.net
The error message is quite informative, isn't it?
 [2005-12-23 13:04 UTC] popefelix at gmail dot com
No, not really.  I'm not passing *any* configure option regarding sqlite, nor does the manual (http://us2.php.net/pdo) mention sqlite in its suggested options to ./configure.  I don't *want* to use sqlite, so why should I have to even mention it?
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Dec 11 03:01:28 2024 UTC