php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #30749 can't configure with sqlite3 using --with-sqlite=
Submitted: 2004-11-10 19:15 UTC Modified: 2004-11-11 08:11 UTC
From: stwitche at fairchildsemi dot com Assigned:
Status: Wont fix Package: Feature/Change Request
PHP Version: 5.0.2 OS: Linux/Red Hat 7
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2004-11-10 19:15 UTC] stwitche at fairchildsemi dot com
Description:
------------
When trying to configure php5.0.2 with sqlite 3.0.8 using --with-sqlite= I get the following error:

configure: error: wrong sqlite lib version or lib not found

It will configure correctly when using sqlite 2.8.15

The files for 3.0.8 all have a "3" in the filename where the ones for 2.8.15 do not:

3.0.8
libsqlite3.a 
libsqlite3.la    
libsqlite3.so     
libsqlite3.so.0
libsqlite3.so.0.8.6 

2.8.15
ibsqlite.a
libsqlite.la
libsqlite.so  
libsqlite.so.0
libsqlite.so.0.8.6


Reproduce code:
---------------
./configure --disable-libxml 
--enable-track-vars 
--with-apxs=/usr/local/apache/bin/apxs 
--with-sqlite=/usr/local/sqlite


Actual result:
--------------
Configuring extensions
...<skip down to sqlite comments>...
checking whether to enable UTF-8 support in sqlite (default: ISO-8859-1)... no
checking for sqlite support... yes
checking for sqlite_open in -lsqlite... no
configure: error: wrong sqlite lib version or lib not found



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-11-10 22:44 UTC] wez@php.net
sqlite3 is totally incompatible with sqlite2 so we are not going to support its use in the built-in sqlite extension.

Use the PDO_SQLite driver with PDO in PHP version 5.1 and up instead.
 [2004-11-10 23:19 UTC] derick@php.net
I don't really agree with this as PDO is going to be some subset of the full functionality as far as I learned from yesterdays meeting. I don't think it should be merged into the current sqlite extension, but something new (sqlite3 / sqlitei) perhaps? For now I will just mark this as a feature request instead.
 [2004-11-11 08:11 UTC] wez@php.net
The PDO SQLite driver will support all the features of sqlite3 (currently only missing UDF).
No need for a third option.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 14:01:31 2024 UTC