Bug #79351 [NEW]: Compile Failure

From: Date: Sat, 07 Mar 2020 09:19:56 +0000
Subject: Bug #79351 [NEW]: Compile Failure
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-225931@lists.php.net to get a copy of this message
From: 2ge at 2ge dot us Operating system: MacOSX PHP version: 7.4.3 Package: Compile Failure Bug Type: Bug Bug description:Compile Failure Description: ------------ $ pecl install channel://pecl.php.net/yac-2.0.3 downloading yac-2.0.3.tgz ... Starting to download yac-2.0.3.tgz (32,720 bytes) .........done: 32,720 bytes 16 source files, building running: phpize Configuring for: PHP Api Version: 20190902 Zend Module Api No: 20190902 Zend Extension Api No: 320190902 building in /private/tmp/pear/install/pear-build-branoRhz3vs/yac-2.0.3 running: /private/tmp/pear/install/yac/configure --with-php-config=/usr/local/bin/php-config checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for a sed that does not truncate output... /usr/bin/sed checking for pkg-config... /usr/local/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for cc... cc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether cc accepts -g... yes checking for cc option to accept ISO C89... none needed checking how to run the C preprocessor... cc -E checking for icc... no checking for suncc... no checking for system library directory... lib checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking build system type... x86_64-apple-darwin16.7.0 checking host system type... x86_64-apple-darwin16.7.0 checking target system type... x86_64-apple-darwin16.7.0 checking for PHP prefix... /usr/local/Cellar/php/7.4.3 checking for PHP includes... -I/usr/local/Cellar/php/7.4.3/include/php -I/usr/local/Cellar/php/7.4.3/include/php/main -I/usr/local/Cellar/php/7.4.3/include/php/TSRM -I/usr/local/Cellar/php/7.4.3/include/php/Zend -I/usr/local/Cellar/php/7.4.3/include/php/ext -I/usr/local/Cellar/php/7.4.3/include/php/ext/date/lib checking for PHP extension directory... /usr/local/Cellar/php/7.4.3/pecl/20190902 checking for PHP installed headers prefix... /usr/local/Cellar/php/7.4.3/include/php checking if debug is enabled... no checking if zts is enabled... no checking for gawk... no checking for nawk... no checking for awk... awk checking if awk is broken... no checking whether to enable yac support... yes, shared checking whether to use system FastLZ library... no checking for sysvipc shared memory support... yes checking for mmap() using MAP_ANON shared memory support... yes checking for mmap() using /dev/zero shared memory support... no checking for a sed that does not truncate output... /usr/bin/sed checking for ld used by cc... /Library/Developer/CommandLineTools/usr/bin/ld checking if the linker (/Library/Developer/CommandLineTools/usr/bin/ld) is GNU ld... no checking for /Library/Developer/CommandLineTools/usr/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -B checking whether ln -s works... yes checking how to recognize dependent libraries... pass_all checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking the maximum length of command line arguments... 196608 checking command to parse /usr/bin/nm -B output from cc object... ok checking for objdir... .libs checking for ar... ar checking for ranlib... ranlib checking for strip... strip checking for dsymutil... dsymutil checking for nmedit... nmedit checking for -single_module linker flag... yes checking for -exported_symbols_list linker flag... yes checking if cc supports -fno-rtti -fno-exceptions... yes checking for cc option to produce PIC... -fno-common checking if cc PIC flag -fno-common works... yes checking if cc static flag -static works... no checking if cc supports -c -o file.o... yes checking whether the cc linker (/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... darwin16.7.0 dyld checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no creating libtool appending configuration tag "CXX" to libtool configure: patching config.h.in configure: creating ./config.status config.status: creating config.h running: make /bin/sh /private/tmp/pear/install/pear-build-branoRhz3vs/yac-2.0.3/libtool --mode=compile cc -I. -I/private/tmp/pear/install/yac -DPHP_ATOM_INC -I/private/tmp/pear/install/pear-build-branoRhz3vs/yac-2.0.3/include -I/private/tmp/pear/install/pear-build-branoRhz3vs/yac-2.0.3/main -I/private/tmp/pear/install/yac -I/usr/local/Cellar/php/7.4.3/include/php -I/usr/local/Cellar/php/7.4.3/include/php/main -I/usr/local/Cellar/php/7.4.3/include/php/TSRM -I/usr/local/Cellar/php/7.4.3/include/php/Zend -I/usr/local/Cellar/php/7.4.3/include/php/ext -I/usr/local/Cellar/php/7.4.3/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /private/tmp/pear/install/yac/yac.c -o yac.lo mkdir .libs cc -I. -I/private/tmp/pear/install/yac -DPHP_ATOM_INC -I/private/tmp/pear/install/pear-build-branoRhz3vs/yac-2.0.3/include -I/private/tmp/pear/install/pear-build-branoRhz3vs/yac-2.0.3/main -I/private/tmp/pear/install/yac -I/usr/local/Cellar/php/7.4.3/include/php -I/usr/local/Cellar/php/7.4.3/include/php/main -I/usr/local/Cellar/php/7.4.3/include/php/TSRM -I/usr/local/Cellar/php/7.4.3/include/php/Zend -I/usr/local/Cellar/php/7.4.3/include/php/ext -I/usr/local/Cellar/php/7.4.3/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /private/tmp/pear/install/yac/yac.c -fno-common -DPIC -o .libs/yac.o In file included from /private/tmp/pear/install/yac/yac.c:33: /private/tmp/pear/install/yac/php_yac.h:51:2: error: unknown type name 'ulong' ulong compress_threshold; ^ /private/tmp/pear/install/yac/yac.c:110:5: error: initializer element is not a compile-time constant STD_PHP_INI_BOOLEAN("yac.enable", "1", PHP_INI_SYSTEM, OnUpdateBool, enable, zend_yac_globals, yac_globals) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/Cellar/php/7.4.3/include/php/main/php_ini.h:68:30: note: expanded from macro 'STD_PHP_INI_BOOLEAN' #define STD_PHP_INI_BOOLEAN STD_ZEND_INI_BOOLEAN ^ /usr/local/Cellar/php/7.4.3/include/php/Zend/zend_ini.h:138:65: note: expanded from macro 'STD_ZEND_INI_BOOLEAN' ZEND_INI_ENTRY3_EX(name, default_value, modifiable, on_modify, (void *) XtOffsetOf(struct_type, property_name), (void *) &struct_ptr, NULL, zend_ini_boolean_displayer_cb) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/Cellar/php/7.4.3/include/php/Zend/zend_ini.h:102:21: note: expanded from macro 'ZEND_INI_ENTRY3_EX' { name, on_modify, arg1, arg2, arg3, default_value, displayer, sizeof(default_value)-1, sizeof(name)-1, modifiable }, ^~~~ /private/tmp/pear/install/yac/yac.c:160:85: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat] php_error_docref(NULL, E_WARNING, "Value is too long(%d bytes) to be stored", Z_STRLEN_P(value)); ~~ ^~~~~~~~~~~~~~~~~ %zu /usr/local/Cellar/php/7.4.3/include/php/Zend/zend_types.h:690:30: note: expanded from macro 'Z_STRLEN_P' #define Z_STRLEN_P(zval_p) Z_STRLEN(*(zval_p)) ^~~~~~~~~~~~~~~~~~~ /usr/local/Cellar/php/7.4.3/include/php/Zend/zend_types.h:689:27: note: expanded from macro 'Z_STRLEN' #define Z_STRLEN(zval) ZSTR_LEN(Z_STR(zval)) ^~~~~~~~~~~~~~~~~~~~~ /usr/local/Cellar/php/7.4.3/include/php/Zend/zend_string.h:53:25: note: expanded from macro 'ZSTR_LEN' #define ZSTR_LEN(zstr) (zstr)->len ^~~~~~~~~~~ /private/tmp/pear/install/yac/yac.c:179:85: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat] php_error_docref(NULL, E_WARNING, "Value is too long(%d bytes) to be stored", Z_STRLEN_P(value)); ~~ ^~~~~~~~~~~~~~~~~ %zu /usr/local/Cellar/php/7.4.3/include/php/Zend/zend_types.h:690:30: note: expanded from macro 'Z_STRLEN_P' #define Z_STRLEN_P(zval_p) Z_STRLEN(*(zval_p)) ^~~~~~~~~~~~~~~~~~~ /usr/local/Cellar/php/7.4.3/include/php/Zend/zend_types.h:689:27: note: expanded from macro 'Z_STRLEN' #define Z_STRLEN(zval) ZSTR_LEN(Z_STR(zval)) ^~~~~~~~~~~~~~~~~~~~~ /usr/local/Cellar/php/7.4.3/include/php/Zend/zend_string.h:53:25: note: expanded from macro 'ZSTR_LEN' #define ZSTR_LEN(zstr) (zstr)->len ^~~~~~~~~~~ /private/tmp/pear/install/yac/yac.c:281:31: warning: format specifies type 'unsigned long' but the argument has type 'zend_ulong' (aka 'unsigned long long') [-Wformat] key = strpprintf(0, "%lu", idx); ~~~ ^~~ %llu /private/tmp/pear/install/yac/yac.c:486:9: error: use of undeclared identifier 'ulong'; did you mean 'long'? tv = (ulong)time(NULL); ^~~~~ long /private/tmp/pear/install/yac/yac.c:486:6: error: assigning to 'time_t' (aka 'long') from incompatible type '<overloaded function type>' tv = (ulong)time(NULL); ^ ~~~~~~~ /private/tmp/pear/install/yac/yac.c:1018:37: warning: format specifies type 'long' but the argument has type 'unsigned int' [-Wformat] snprintf(buf, sizeof(buf), "%ld", inf->segment_size); ~~~ ^~~~~~~~~~~~~~~~~ %u /private/tmp/pear/install/yac/yac.c:1020:37: warning: format specifies type 'long' but the argument has type 'unsigned int' [-Wformat] snprintf(buf, sizeof(buf), "%ld", inf->segments_num); ~~~ ^~~~~~~~~~~~~~~~~ %u /private/tmp/pear/install/yac/yac.c:1022:37: warning: format specifies type 'long' but the argument has type 'unsigned int' [-Wformat] snprintf(buf, sizeof(buf), "%ld", inf->slots_size); ~~~ ^~~~~~~~~~~~~~~ %u /private/tmp/pear/install/yac/yac.c:1024:37: warning: format specifies type 'long' but the argument has type 'unsigned int' [-Wformat] snprintf(buf, sizeof(buf), "%ld", inf->slots_num); ~~~ ^~~~~~~~~~~~~~ %u 7 warnings and 4 errors generated. make: *** [yac.lo] Error 1 ERROR: `make' failed $ uname -a DarwinMacBook-Pro.local 16.7.0 Darwin Kernel Version 16.7.0: Sun Jun 2 20:26:31 PDT 2019; root:xnu-3789.73.50~1/RELEASE_X86_64 x86_64 -- Edit bug report at https://bugs.php.net/bug.php?id=79351&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=79351&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=79351&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=79351&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=79351&r=needscript Try newer version: https://bugs.php.net/fix.php?id=79351&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=79351&r=support Expected behavior: https://bugs.php.net/fix.php?id=79351&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=79351&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=79351&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=79351&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=79351&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=79351&r=dst IIS Stability: https://bugs.php.net/fix.php?id=79351&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=79351&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=79351&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=79351&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=79351&r=mysqlcfg

« previous php.bugs (#225931) next »