php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: lianobat at hotmail dot it
New email:
PHP Version: OS:

 

 [2019-08-07 17:19 UTC] lianobat at hotmail dot it
Description:
------------
Hello,
I have downloaded the PDO Sqlite source from https://pecl.php.net/get/PDO_SQLITE-1.0.1.tgz

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 sqlite.h.in 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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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

[1] <https://github.com/php/php-src/tree/PHP-7.1/ext/pdo_sqlite>
 [2019-08-08 12:21 UTC] lianobat at hotmail dot it
Thanks!

Does that mean i need to compile the whole PHP src, and then just use the pdo_sqlite.so 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 https://github.com/php/php-src/tree/PHP-7.1/ext/pdo_sqlite 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] nikic@php.net
-Status: Open +Status: Wont fix
 [2020-12-23 13:44 UTC] nikic@php.net
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: Thu Apr 25 21:01:36 2024 UTC