Edit report at http://bugs.php.net/bug.php?id=50420&edit=1
ID: 50420 Updated by: ka...@php.net Reported by: starcraftmazter at gmail dot com Summary: pdo_sqlite.so: undefined symbol: sqlite3_libversion -Status: Open +Status: Feedback Type: Bug Package: PDO related Operating System: CentOS 5.3 64bit PHP Version: 6SVN-2009-12-09 (snap) New Comment: Please try using this snapshot: http://snaps.php.net/php-trunk-latest.tar.gz For Windows: http://windows.php.net/snapshots/ Hi, please try a snapshot of trunk, as the old trunk for 6.0 is rebranched and the new trunk is based on 5.3 Previous Comments: ------------------------------------------------------------------------ [2009-12-09 02:43:09] starcraftmazter at gmail dot com Description: ------------ This error occurs on (currently) the latest snapshot, when loading the extension. It seems to be related to PDO/Sqlite. Compile String for reference: './configure' '--prefix=/usr/local' '--with-apxs2=/usr/local/apache/bin/apxs' '--enable-bcmath' '--enable-calendar' '--enable-exif' '--enable-ftp' '--enable-gd-native-ttf' '--enable-libxml' '--enable-mbstring' '--enable-soap' '--enable-sockets' '--enable-zip' '--with-bz2' '--with-curl=/opt/curlssl/' '--with-curlwrappers' '--with-freetype-dir=/usr' '--with-gd' '--with-gettext' '--with-imap=/opt/php_with_imap_client/' '--with-imap-ssl=/usr' '--with-kerberos' '--with-libdir=lib64' '--with-libxml-dir=/opt/xml2' '--with-libxml-dir=/opt/xml2/' '--with-mcrypt=/opt/libmcrypt/' '--with-mhash=/opt/mhash/' '--with-openssl-dir=/usr' '--with-xsl=/opt/xslt/' '--with-zlib' '--with-zlib-dir=/usr' '--with-openssl=/usr' '--with-pic' '--with-xpm-dir=/usr' '--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--with-mysql' '--with-mysqli' '--with-pgsql' '--with-sqlite=shared' '--enable-pdo=shared' '--with-pdo-sqlite=shared' '--with-pdo-mysql=shared' '--with-pdo-pgsql=shared' '--with-config-file-path=/opt/php/ini/6' Shared PDO extensions are loaded in the right order: extension=pdo.so extension=pdo_sqlite.so extension=pdo_mysql.so extension=pdo_pgsql.so This same setup works well on php 5.3 and 5.2 lines. This may be related to this bug: http://bugs.php.net/bug.php?id=48614 Doing what i dot galic suggested, results in the following error upon ./configure though; checking for sqlite_open in -lsqlite... no I have my sqlite installed in /usr(/lib) Reproduce code: --------------- <?php echo phpinfo(); ?> Expected result: ---------------- No error Actual result: -------------- /opt/php/6/bin/php: symbol lookup error: /opt/php/6/lib/php/extensions/no-debug-non-zts-20070729/pdo_sqlite.so: undefined symbol: sqlite3_libversion ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=50420&edit=1