Bug #78384 [Opn->Wfx]: Missing .c file. Compilation error
| From: | nikic@php.net | Date: | Wed, 23 Dec 2020 13:44:33 +0000 |
| Subject: | Bug #78384 [Opn->Wfx]: Missing .c file. Compilation error | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-231234@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=78384&edit=1
ID: 78384
Updated by: nikic@php.net
Reported by: lianobat at hotmail dot it
Summary: Missing .c file. Compilation error
-Status: Open
+Status: Wont fix
Type: Bug
Package: PDO SQLite
Operating System: Linux Ubuntu 14
PHP Version: 7.1.31
Block user comment: N
Private report: N
New Comment:
Closing this per above comments, the bundled ext/pdo_sqlite should be used.
Previous Comments:
------------------------------------------------------------------------
[2019-08-08 12:33:23] 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
------------------------------------------------------------------------
[2019-08-08 12:21:32] 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-07 17:41:45] 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-07 17:19:08] 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.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=78384&edit=1