Bug #78384 [Opn]: Missing .c file. Compilation error
| From: | cmb@php.net | Date: | Wed, 07 Aug 2019 17:41:45 +0000 |
| Subject: | Bug #78384 [Opn]: Missing .c file. Compilation error | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-222127@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: cmb@php.net
Reported by: lianobat at hotmail dot it
Summary: Missing .c file. Compilation error
Status: Open
Type: Bug
Package: PDO SQLite
Operating System: Linux Ubuntu 14
PHP Version: 7.1.31
Block user comment: N
Private report: N
New Comment:
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>
Previous Comments:
------------------------------------------------------------------------
[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