ID:               48614
 Comment by:       dominics at gmail dot com
 Reported By:      kaspernj at gmail dot com
 Status:           Open
 Bug Type:         PDO related
 Operating System: Ubuntu Jaunty
 PHP Version:      5.3.0RC4
 New Comment:

I can reproduce this bug (Debian Lenny) with the following minimal
configure line:

./configure --with-zlib --enable-pdo=shared --with-sqlite=shared
--with-pdo-sqlite=shared

For now, not building PDO as shared seems to be a workaround.


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

[2009-06-20 16:41:46] kaspernj at gmail dot com

"sqlite3.so" loads fine.

It does not help to load "pdo_sqlite.so" afterwards though - getting
the exact same error.

Here is what I did:
#!/opt/php53/bin/php
<?php
        dl("gd.so");
        dl("sqlite3.so");
        dl("pdo.so");
        dl("pdo_sqlite.so");
        echo("Hejsa\n");
?>

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

[2009-06-20 16:35:43] scott...@php.net

If you load

sqlite3.so first does it work?

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

[2009-06-20 13:19:49] kaspernj at gmail dot com

Thank you for responding.

I used the following configure-line:

./configure --with-mysql=shared --with-gd=shared --with-pgsql=shared
--enable-pcntl=shared --with-gettext=shared --with-mysqli=shared
--with-imap=shared --with-mcrypt=shared --with-kerberos --with-imap-ssl
--with-sqlite=shared --enable-sockets=shared --with-pdo-mysql=shared
--with-pdo-sqlite=shared --enable-ftp=shared --enable-pdo=shared
--with-pdo-pgsql=shared --enable-sockets=shared --enable-cli
--disable-cgi --prefix=/opt/php53 --with-ldap=shared --with-pear=shared
--disable-debug --with-bz2=shared --with-iconv=shared
--with-regex=shared --enable-xml=shared --enable-dom=shared
--with-xmlrpc=shared --with-mhash=shared --with-unixODBC=shared,/usr
--enable-mbstring=shared --enable-xmlreader=shared --with-sqlite3=shared

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

[2009-06-20 12:20:20] paj...@php.net

Which configure line did you use?

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

[2009-06-20 09:58:11] kaspernj at gmail dot com

Description:
------------
After succesfully compiling PHP 5.3 RC4 with PDO and PDO-SQLite, I ran
a test-script to test all the shared extensions.

When trying to load the PDO-SQLite extension, I get the following
error:
Warning: dl(): Unable to load dynamic library '.../pdo_sqlite.so' -
.../pdo_sqlite.so: undefined symbol: sqlite3_libversion in ../test.php
on line 5

Everything was compiled as shared extensions and loaded through a CLI
script with dl().

Reproduce code:
---------------
#!/opt/php53/bin/php
<?php
 dl("gd.so");
 dl("pdo.so");
 dl("pdo_sqlite.so");
 echo("Hejsa\n");
?>

Expected result:
----------------
Hejsa


Actual result:
--------------
Warning: dl(): Unable to load dynamic library '.../pdo_sqlite.so' -
.../pdo_sqlite.so: undefined symbol: sqlite3_libversion in ../test.php
on line 5


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


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

Reply via email to