php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #50420 pdo_sqlite.so: undefined symbol: sqlite3_libversion
Submitted: 2009-12-09 02:43 UTC Modified: 2013-02-18 00:34 UTC
Votes:5
Avg. Score:4.4 ± 0.8
Reproduced:5 of 5 (100.0%)
Same Version:4 (80.0%)
Same OS:3 (60.0%)
From: starcraftmazter at gmail dot com Assigned:
Status: No Feedback Package: PDO related
PHP Version: 6SVN-2009-12-09 (snap) OS: CentOS 5.3 64bit
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: starcraftmazter at gmail dot com
New email:
PHP Version: OS:

 

 [2009-12-09 02:43 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-06-21 13:08 UTC] kalle@php.net
-Status: Open +Status: Feedback
 [2010-06-21 13:08 UTC] kalle@php.net
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
 [2013-02-18 00:34 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 29 12:01:32 2024 UTC