php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #67367 Unable to compile PHP because of an issue with sqlite
Submitted: 2014-06-01 13:08 UTC Modified: 2016-07-10 04:22 UTC
From: omars@php.net Assigned: cmb (profile)
Status: No Feedback Package: SQLite related
PHP Version: 5.4.29 OS: Ubuntu 3.13.0-27-generic
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: omars@php.net
New email:
PHP Version: OS:

 

 [2014-06-01 13:08 UTC] omars@php.net
Description:
------------
Unable to compile PHP because of an issue with sqlite

Test script:
---------------
./configure --enable-debug --enable-maintainer-zts --prefix=/some/dir --with-curl
make

Actual result:
--------------
/bin/bash /home/user1/php-src/libtool --preserve-dup-deps --mode=compile /home/user1/php-src/meta_ccld -I/home/user1/php-src/ext/sqlite/libsqlite/src -Iext/sqlite/libsqlite/src  -Iext/sqlite/ -I/home/user1/php-src/ext/sqlite/ -DPHP_ATOM_INC -I/home/user1/php-src/include -I/home/user1/php-src/main -I/home/user1/php-src -I/home/user1/php-src/ext/date/lib -I/home/user1/php-src/ext/ereg/regex -I/usr/include/libxml2 -I/home/user1/php-src/ext/sqlite3/libsqlite -I/home/user1/php-src/TSRM -I/home/user1/php-src/Zend  -D_REENTRANT  -I/usr/include -g -fvisibility=hidden -pthread -O0 -Wall -DZTS  -c /home/user1/php-src/ext/sqlite/sqlite.c -o ext/sqlite/sqlite.lo 
 /home/user1/php-src/meta_ccld -I/home/user1/php-src/ext/sqlite/libsqlite/src -Iext/sqlite/libsqlite/src -Iext/sqlite/ -I/home/user1/php-src/ext/sqlite/ -DPHP_ATOM_INC -I/home/user1/php-src/include -I/home/user1/php-src/main -I/home/user1/php-src -I/home/user1/php-src/ext/date/lib -I/home/user1/php-src/ext/ereg/regex -I/usr/include/libxml2 -I/home/user1/php-src/ext/sqlite3/libsqlite -I/home/user1/php-src/TSRM -I/home/user1/php-src/Zend -D_REENTRANT -I/usr/include -g -fvisibility=hidden -pthread -O0 -Wall -DZTS -c /home/user1/php-src/ext/sqlite/sqlite.c -o ext/sqlite/sqlite.o
In file included from /home/user1/php-src/Zend/zend_alloc.h:27:0,
                 from /home/user1/php-src/Zend/zend.h:237,
                 from /home/user1/php-src/main/php.h:34,
                 from /home/user1/php-src/ext/sqlite/sqlite.c:29:
/home/user1/php-src/ext/sqlite/sqlite.c: In function php_sqlite_authorizer:
/home/user1/php-src/Zend/../TSRM/TSRM.h:164:95: error: php_core_globals has no member named safe_mode
 #define TSRMG(id, type, element) (((type) (*((void ***) tsrm_ls))[TSRM_UNSHUFFLE_RSRC_ID(id)])->element)
                                                                                               ^
/home/user1/php-src/main/php_globals.h:29:16: note: in expansion of macro TSRMG
 # define PG(v) TSRMG(core_globals_id, php_core_globals *, v)
                ^
/home/user1/php-src/ext/sqlite/sqlite.c:1069:9: note: in expansion of macro PG
     if (PG(safe_mode) && (!php_checkuid(arg4, NULL, CHECKUID_CHECK_FILE_AND_DIR))) {
         ^
/home/user1/php-src/ext/sqlite/sqlite.c:1069:5: warning: implicit declaration of function php_checkuid [-Wimplicit-function-declaration]
     if (PG(safe_mode) && (!php_checkuid(arg4, NULL, CHECKUID_CHECK_FILE_AND_DIR))) {
     ^
/home/user1/php-src/ext/sqlite/sqlite.c:1069:53: error: CHECKUID_CHECK_FILE_AND_DIR undeclared (first use in this function)
     if (PG(safe_mode) && (!php_checkuid(arg4, NULL, CHECKUID_CHECK_FILE_AND_DIR))) {
                                                     ^
/home/user1/php-src/ext/sqlite/sqlite.c:1069:53: note: each undeclared identifier is reported only once for each function it appears in
In file included from /home/user1/php-src/Zend/zend_alloc.h:27:0,
                 from /home/user1/php-src/Zend/zend.h:237,
                 from /home/user1/php-src/main/php.h:34,
                 from /home/user1/php-src/ext/sqlite/sqlite.c:29:
/home/user1/php-src/Zend/../TSRM/TSRM.h:164:95: error: php_core_globals has no member named safe_mode
 #define TSRMG(id, type, element) (((type) (*((void ***) tsrm_ls))[TSRM_UNSHUFFLE_RSRC_ID(id)])->element)
                                                                                               ^
/home/user1/php-src/main/php_globals.h:29:16: note: in expansion of macro TSRMG
 # define PG(v) TSRMG(core_globals_id, php_core_globals *, v)
                ^
/home/user1/php-src/ext/sqlite/sqlite.c:1082:9: note: in expansion of macro PG
     if (PG(safe_mode) && (!php_checkuid(arg3, NULL, CHECKUID_CHECK_FILE_AND_DIR))) {
         ^
/home/user1/php-src/ext/sqlite/sqlite.c: In function sqlite_object_new:
/home/user1/php-src/ext/sqlite/sqlite.c:1169:52: error: zend_class_entry has no member named default_properties
  zend_hash_copy(intern->std.properties, &class_type->default_properties, (copy_ctor_func_t) zval_property_ctor, (void *) &tmp, sizeof(zval *));
                                                    ^
/home/user1/php-src/ext/sqlite/sqlite.c:1169:93: error: zval_property_ctor undeclared (first use in this function)
  zend_hash_copy(intern->std.properties, &class_type->default_properties, (copy_ctor_func_t) zval_property_ctor, (void *) &tmp, sizeof(zval *));
                                                                                             ^
In file included from /home/user1/php-src/Zend/zend_alloc.h:27:0,
                 from /home/user1/php-src/Zend/zend.h:237,
                 from /home/user1/php-src/main/php.h:34,
                 from /home/user1/php-src/ext/sqlite/sqlite.c:29:
/home/user1/php-src/ext/sqlite/sqlite.c: In function php_sqlite_open:
/home/user1/php-src/Zend/../TSRM/TSRM.h:164:95: error: php_core_globals has no member named safe_mode
 #define TSRMG(id, type, element) (((type) (*((void ***) tsrm_ls))[TSRM_UNSHUFFLE_RSRC_ID(id)])->element)
                                                                                               ^
/home/user1/php-src/main/php_globals.h:29:16: note: in expansion of macro TSRMG
 # define PG(v) TSRMG(core_globals_id, php_core_globals *, v)
                ^
/home/user1/php-src/ext/sqlite/sqlite.c:1513:6: note: in expansion of macro PG
  if (PG(safe_mode) || (PG(open_basedir) && *PG(open_basedir))) {
      ^
/home/user1/php-src/ext/sqlite/sqlite.c: In function zif_sqlite_popen:
/home/user1/php-src/Zend/../TSRM/TSRM.h:164:95: error: php_core_globals has no member named safe_mode
 #define TSRMG(id, type, element) (((type) (*((void ***) tsrm_ls))[TSRM_UNSHUFFLE_RSRC_ID(id)])->element)
                                                                                               ^
/home/user1/php-src/main/php_globals.h:29:16: note: in expansion of macro TSRMG
 # define PG(v) TSRMG(core_globals_id, php_core_globals *, v)
                ^
/home/user1/php-src/ext/sqlite/sqlite.c:1572:8: note: in expansion of macro PG
   if ((PG(safe_mode) && (!php_checkuid(fullpath, NULL, CHECKUID_CHECK_FILE_AND_DIR))) || 
        ^
/home/user1/php-src/ext/sqlite/sqlite.c:1572:56: error: CHECKUID_CHECK_FILE_AND_DIR undeclared (first use in this function)
   if ((PG(safe_mode) && (!php_checkuid(fullpath, NULL, CHECKUID_CHECK_FILE_AND_DIR))) || 
                                                        ^
In file included from /home/user1/php-src/Zend/zend_alloc.h:27:0,
                 from /home/user1/php-src/Zend/zend.h:237,
                 from /home/user1/php-src/main/php.h:34,
                 from /home/user1/php-src/ext/sqlite/sqlite.c:29:
/home/user1/php-src/ext/sqlite/sqlite.c: In function zif_sqlite_open:
/home/user1/php-src/Zend/../TSRM/TSRM.h:164:95: error: php_core_globals has no member named safe_mode
 #define TSRMG(id, type, element) (((type) (*((void ***) tsrm_ls))[TSRM_UNSHUFFLE_RSRC_ID(id)])->element)
                                                                                               ^
/home/user1/php-src/main/php_globals.h:29:16: note: in expansion of macro TSRMG
 # define PG(v) TSRMG(core_globals_id, php_core_globals *, v)
                ^
/home/user1/php-src/ext/sqlite/sqlite.c:1659:8: note: in expansion of macro PG
   if ((PG(safe_mode) && (!php_checkuid(fullpath, NULL, CHECKUID_CHECK_FILE_AND_DIR))) ||
        ^
/home/user1/php-src/ext/sqlite/sqlite.c:1659:56: error: CHECKUID_CHECK_FILE_AND_DIR undeclared (first use in this function)
   if ((PG(safe_mode) && (!php_checkuid(fullpath, NULL, CHECKUID_CHECK_FILE_AND_DIR))) ||
                                                        ^
In file included from /home/user1/php-src/Zend/zend_alloc.h:27:0,
                 from /home/user1/php-src/Zend/zend.h:237,
                 from /home/user1/php-src/main/php.h:34,
                 from /home/user1/php-src/ext/sqlite/sqlite.c:29:
/home/user1/php-src/ext/sqlite/sqlite.c: In function zif_sqlite_factory:
/home/user1/php-src/Zend/../TSRM/TSRM.h:164:95: error: php_core_globals has no member named safe_mode
 #define TSRMG(id, type, element) (((type) (*((void ***) tsrm_ls))[TSRM_UNSHUFFLE_RSRC_ID(id)])->element)
                                                                                               ^
/home/user1/php-src/main/php_globals.h:29:16: note: in expansion of macro TSRMG
 # define PG(v) TSRMG(core_globals_id, php_core_globals *, v)
                ^
/home/user1/php-src/ext/sqlite/sqlite.c:1713:8: note: in expansion of macro PG
   if ((PG(safe_mode) && (!php_checkuid(fullpath, NULL, CHECKUID_CHECK_FILE_AND_DIR))) ||
        ^
/home/user1/php-src/ext/sqlite/sqlite.c:1713:56: error: CHECKUID_CHECK_FILE_AND_DIR undeclared (first use in this function)
   if ((PG(safe_mode) && (!php_checkuid(fullpath, NULL, CHECKUID_CHECK_FILE_AND_DIR))) ||
                                                        ^
/home/user1/php-src/ext/sqlite/sqlite.c: In function zif_sqlite_fetch_object:
/home/user1/php-src/ext/sqlite/sqlite.c:2389:44: warning: the address of error_handling will always evaluate as true [-Waddress]
   RES_FROM_OBJECT_RESTORE_ERH(res, object, &error_handling);
                                            ^
/home/user1/php-src/ext/sqlite/sqlite.c:123:8: note: in definition of macro RES_FROM_OBJECT_RESTORE_ERH
    if (error_handling) \
        ^
make: *** [ext/sqlite/sqlite.lo] Error 1

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-06-27 14:17 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2016-06-27 14:17 UTC] cmb@php.net
Does that issue still persist for current PHP versions?
 [2016-07-10 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Fri Sep 17 12:03:38 2021 UTC