|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #78384 Missing .c file. Compilation error
Submitted: 2019-08-07 17:19 UTC Modified: 2020-12-23 13:44 UTC
From: lianobat at hotmail dot it Assigned:
Status: Wont fix Package: PDO SQLite
PHP Version: 7.1.31 OS: Linux Ubuntu 14
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
11 + 46 = ?
Subscribe to this entry?

 [2019-08-07 17:19 UTC] lianobat at hotmail dot it
I have downloaded the PDO Sqlite source from

When i run make, the gcc compiler gives an error saying it cannot find a .c source file referenced by the Makefile:

make: *** No rule to make target `../sqlite/src/complete.c', needed by `complete.lo'. Stop.

Indeed that file does not exists.
These are the only files in the sqlite/src subfolder:

alter.c hash.h os_unix.c shell.c util.c
analyze.c insert.c os_unix.h vacuum.c
attach.c keywordhash.h os_win.c sqliteInt.h vdbeapi.c
auth.c legacy.c os_win.h table.c vdbeaux.c
btree.c main.c pager.c tclsqlite.c vdbe.c
btree.h md5.c pager.h test1.c vdbefifo.c
build.c opcodes.c parse.c test2.c vdbe.h
callback.c opcodes.h parse.h test3.c vdbeInt.h
date.c os_common.h parse.y test4.c vdbemem.c
delete.c os.h pragma.c test5.c where.c
experimental.c os_mac.c prepare.c tokenize.c
expr.c os_mac.h printf.c trigger.c
func.c os_test.c random.c update.c
hash.c os_test.h select.c utf.c

Steps i've done:

- extracted the tarball
- created the build-sqlite subfolder and entered into it
- i've run ../sqlite/configure
- i've run make

Expected result:
I intend to compile the .so library to be used by Apache's PHP module.
Target PHP version: 7.1

I have tried installing it via the command

sudo apt-get install php7.1-sqlite3 

but it didn't work.
It printed an error saying it could not locate the php7.1-sqlite3 package,
so i have decided to compile it by myself manually.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2019-08-07 17:41 UTC]
PECL/pdo_sqlite is unmaintained for more than ten years now.  Just
use the bundled ext/pdo_sqlite[1] instead.

[1] <>
 [2019-08-08 12:21 UTC] lianobat at hotmail dot it

Does that mean i need to compile the whole PHP src, and then just use the file from the /ext subfolder ? 

I already have php 7.1 installed on my machine, i just need the sqlite .so library.
 [2019-08-08 12:33 UTC] phpbugreports at gmail dot com
you where pointed to and not to the whole source tree

* phpize
* ./configure
* make

like for every other extension, there is no technical difference between a pecl tarball or the extension folder of the php source tree
 [2020-12-23 13:44 UTC]
-Status: Open +Status: Wont fix
 [2020-12-23 13:44 UTC]
Closing this per above comments, the bundled ext/pdo_sqlite should be used.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Jul 16 16:01:27 2024 UTC