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

 ID:               48614
 Comment by:       ovidio dot balan at gmail dot com
 Reported by:      kaspernj at gmail dot com
 Summary:          Loading "pdo_sqlite.so" fails: undefined symbol:
                   sqlite3_libversion
 Status:           Assigned
 Type:             Bug
 Package:          PDO related
 Operating System: Ubuntu Jaunty
 PHP Version:      5.3.0RC4
 Assigned To:      scottmac

 New Comment:

lol .. :(


Previous Comments:
------------------------------------------------------------------------
[2010-04-05 15:41:51] koubel at volny dot cz

Year will be gone, and problem is still here: tested on 5.3.2 debian
stable

------------------------------------------------------------------------
[2010-02-23 03:54:27] l27n at yahoo dot com

Same problem, PHP 5.3.1, CENTOS 5.4

------------------------------------------------------------------------
[2010-02-02 09:40:03] marc dot bennewitz at giata dot de

I have the same problem with suse 10.x 32/64 bit using php 5.3.0/1
stable.



My configure is:

cd "/home/worker/download/php-5.3.1"

./configure \

        --with-apxs2=/usr/local/apache2/bin/apxs \

        --with-mm \

        --with-mysql=shared,/usr/local \

        --with-mysqli=shared,/usr/local/bin/mysql_config \

        --with-sqlite=shared \

        --with-sqlite3=shared \

        --enable-pdo=shared \

        --with-pdo-mysql=shared,/usr/local \

        --with-pdo-sqlite=shared \

        --with-libxml-dir=/usr/local/lib \

        --enable-soap \

        --with-zlib \

        --disable-cgi \

        --with-gd=shared \

        --with-freetype-dir \

        --with-jpeg-dir=/usr/lib \

        --enable-gd-native-ttf \

        --enable-exif \

        --with-xsl \

        --with-mcrypt \

        --with-openssl \

        --enable-mbstring \

        --enable-mbregex \

        --enable-ftp=shared \

        --with-kerberos \

        --enable-zip



And extension order:

extension=pdo.so

extension=sqlite.so

extension=sqlite3.so

extension=mysql.so

extension=mysqli.so

extension=pdo_mysql.so

extension=pdo_sqlite.so



Additionally if I load sqlite.so before pdo.so than I get 1 more error:

PHP Warning:  PHP Startup: Unable to load dynamic library
'/usr/local/lib/php/extensions/no-debug-non-zts-20090626/sqlite.so' -
/usr/local/lib/php/extensions/no-debug-non-zts-20090626/sqlite.so:
undefined symbol: php_pdo_unregister_driver in Unknown on line 0



Warning: PHP Startup: Unable to load dynamic library
'/usr/local/lib/php/extensions/no-debug-non-zts-20090626/sqlite.so' -
/usr/local/lib/php/extensions/no-debug-non-zts-20090626/sqlite.so:
undefined symbol: php_pdo_unregister_driver in Unknown on line 0

------------------------------------------------------------------------
[2009-11-23 22:48:24] koubel at volny dot cz

i dot galic: yes, but if I use bundled sqlite, without /usr in
configure, bug is still here. When I use --enable-pdo=shared
--with-pdo-sqlite=shared

"configure" and "make" phases are ok, but when I try to use "make test"
all tests fails, because warning:

dl(): Unable to load dynamic library '.../pdo_sqlite.so' -

.../pdo_sqlite.so: undefined symbol: sqlite3_libversion



is produced on every test.



So bug is still there (tested php 5.3.1 on Debian Lenny). Using own
sqlite is workaround I think.

------------------------------------------------------------------------
[2009-11-22 23:37:04] i dot galic at brainsware dot org

from pdo_sqlite.la

# Libraries that this one depends upon.

dependency_libs=' -lrt'



from pdo_pgsql.la:

# Libraries that this one depends upon.

dependency_libs=' -lpq'



Makes sense. The obvious fix (or workaround) would be to do:



--with-sqlite=shared,/usr --with-pdo-pgsql=shared,/usr etc..



In Debian, make sure to have libsqlite0-dev and libsqlite3-dev installed

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


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    http://bugs.php.net/bug.php?id=48614


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

Reply via email to