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

 ID:                 48614
 Comment by:         jd at cpanel dot net
 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
 Block user comment: N

 New Comment:

The problem is that pdo_sqlite compiles against the embedded copy of
sqlite3 but doesn't include the sqlite3 object files in the final
pdo_sqlite.so.



Ugly patch directly against the configure script:



--- php-5.3.3.orig/configure    2010-07-21 05:53:06.000000000 -0500

+++ php-5.3.3/configure 2010-10-14 09:40:17.000000000 -0500

@@ -75183,6 +75183,12 @@

 

   else

       # use bundled libs

+

+      # This change is anchored here to avoid patch being misapplied. 
This really only needs to be added

+      # when pdo_sqlite is compiled shared and using the bundled
sqlite3.  It shouldn't hurt so long as the

+      # bundled sqlite3 is used though.

+      shared_objects_pdo_sqlite="$shared_objects_pdo_sqlite
ext/sqlite3/libsqlite/sqlite3.lo"

+

       if test "$enable_maintainer_zts" = "yes"; then

         threadsafe_flags="-DSQLITE_THREADSAFE=1"

       else


Previous Comments:
------------------------------------------------------------------------
[2010-06-08 12:52:20] kontakt at beberlei dot de

You can get this working with the following configure:



--without-sqlite --with-sqlite3=shared --with-pdo-sqlite=shared,/usr



More information in this thread: http://news.php.net/php.pdo/427

------------------------------------------------------------------------
[2010-05-25 23:50:30] ashoat at gmail dot com

The problem is still occurring. There really ought to be a patch by now.

------------------------------------------------------------------------
[2010-04-25 13:00:18] ovidio dot balan at gmail dot com

lol .. :(

------------------------------------------------------------------------
[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

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


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