Bug #67367 [NEW]: Unable to compile PHP because of an issue with sqlite

From: Date: Sun, 01 Jun 2014 13:08:51 +0000
Subject: Bug #67367 [NEW]: Unable to compile PHP because of an issue with sqlite
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-185996@lists.php.net to get a copy of this message
From: omars Operating system: Ubuntu 3.13.0-27-generic PHP version: 5.4.29 Package: SQLite related Bug Type: Bug Bug description:Unable to compile PHP because of an issue with sqlite 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 -- Edit bug report at https://bugs.php.net/bug.php?id=67367&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=67367&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=67367&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=67367&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=67367&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=67367&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=67367&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=67367&r=needscript Try newer version: https://bugs.php.net/fix.php?id=67367&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=67367&r=support Expected behavior: https://bugs.php.net/fix.php?id=67367&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=67367&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=67367&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=67367&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=67367&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=67367&r=dst IIS Stability: https://bugs.php.net/fix.php?id=67367&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=67367&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=67367&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=67367&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=67367&r=mysqlcfg

« previous php.bugs (#185996) next »