Bug #79523 [NEW]: build warnings 7.4 HEAD 2020-04-26
| From: | bugreports at gmail dot com | Date: | Sun, 26 Apr 2020 11:31:17 +0000 |
| Subject: | Bug #79523 [NEW]: build warnings 7.4 HEAD 2020-04-26 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-226775@lists.php.net to get a copy of this message | ||
From: bugreports at gmail dot com
Operating system:
PHP version: 7.4Git-2020-04-26 (Git)
Package: Compile Warning
Bug Type: Bug
Bug description:build warnings 7.4 HEAD 2020-04-26
Description:
------------
i left the complete rpmbuild output intact so that you also can see
compiler flags
gcc-9.3.1-2.fc31.x86_64
gcc-c++-9.3.1-2.fc31.x86_64
libgcc-9.3.1-2.fc31.x86_64
libtool-2.4.6-31.fc31.x86_64
libtool-ltdl-2.4.6-31.fc31.x86_64
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.AOb8Eg
+ umask 022
+ cd /home/builduser/rpmbuild/BUILD
+ cd /home/builduser/rpmbuild/BUILD
+ rm -rf php-7.4.0
+ /usr/bin/xz -dc /home/builduser/rpmbuild/SOURCES/php-7.4.0.tar.xz
+ /usr/bin/tar -xof -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd php-7.4.0
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ tar xzf /home/builduser/rpmbuild/SOURCES/apcu-5.1.18.tgz
+ mv apcu-5.1.18 ./ext/apcu
+ rm -f TSRM/tsrm_win32.h TSRM/tsrm_config.w32.h Zend/zend_config.w32.h
ext/mysqlnd/config-win.h ext/standard/winver.h
main/win32_internal_function_disabled.h main/win95nt.h
+ find . -name '*.[ch]' -exec chmod 644 '{}' ';'
+ xargs rm -rf
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.pmHKBf
+ umask 022
+ cd /home/builduser/rpmbuild/BUILD
+ cd php-7.4.0
+ libtoolize --force --copy --quiet
++ aclocal --print-ac-dir
++ aclocal --print-ac-dir
++ aclocal --print-ac-dir
++ aclocal --print-ac-dir
++ aclocal --print-ac-dir
+ cat /usr/share/aclocal/libtool.m4 /usr/share/aclocal/ltoptions.m4
/usr/share/aclocal/ltsugar.m4 /usr/share/aclocal/ltversion.m4
/usr/share/aclocal/lt~obsolete.m4
++ aclocal --print-ac-dir
++ aclocal --print-ac-dir
++ aclocal --print-ac-dir
++ aclocal --print-ac-dir
++ aclocal --print-ac-dir
+ cat /usr/share/aclocal/libtool.m4 /usr/share/aclocal/ltoptions.m4
/usr/share/aclocal/ltsugar.m4 /usr/share/aclocal/ltversion.m4
/usr/share/aclocal/lt~obsolete.m4
+ touch configure.ac
+ ./buildconf --force
buildconf: Checking installation
buildconf: autoconf version 2.69 (ok)
buildconf: Forcing buildconf. The configure files will be regenerated.
buildconf: Cleaning cache and configure files
buildconf: Rebuilding configure
buildconf: Rebuilding main/php_config.h.in
buildconf: Run ./configure to proceed with customizing the PHP build.
+ '[' -f /usr/bin/php ']'
+ /usr/bin/php -d display_errors=0 Zend/zend_vm_gen.php
zend_vm_opcodes.h generated successfully.
zend_vm_opcodes.c generated successfully.
zend_vm_execute.h generated successfully.
+ export 'CFLAGS=-march=sandybridge -mtune=sandybridge -pipe -m64 -O3
-g0 -fPIC -mfpmath=sse -msse2avx -D_FORTIFY_SOURCE=2 -fstack-protector
--param=ssp-buffer-size=8 -fivopts -fmodulo-sched
-fsemantic-interposition -fvect-cost-model=dynamic -fstrict-aliasing
-fno-exceptions -fno-stack-clash-protection -fcf-protection=none
-fgraphite-identity -ftree-loop-im -ftree-loop-ivcanon
-fvariable-expansion-in-unroller -Wall -Wformat
-Werror=format-security'
+ CFLAGS='-march=sandybridge -mtune=sandybridge -pipe -m64 -O3 -g0 -fPIC
-mfpmath=sse -msse2avx -D_FORTIFY_SOURCE=2 -fstack-protector
--param=ssp-buffer-size=8 -fivopts -fmodulo-sched
-fsemantic-interposition -fvect-cost-model=dynamic -fstrict-aliasing
-fno-exceptions -fno-stack-clash-protection -fcf-protection=none
-fgraphite-identity -ftree-loop-im -ftree-loop-ivcanon
-fvariable-expansion-in-unroller -Wall -Wformat
-Werror=format-security'
++ date +%s
+ export 'LDFLAGS=-Wl,--as-needed -Wl,-z,now -Wl,-z,relro -pie -fPIE'
CC=gcc CXX=gcc LANG=C.UTF-8 EXTENSION_DIR=/usr/lib64/php/modules
SOURCE_DATE_EPOCH=1587900075
+ LDFLAGS='-Wl,--as-needed -Wl,-z,now -Wl,-z,relro -pie -fPIE'
+ CC=gcc
+ CXX=gcc
+ LANG=C.UTF-8
+ EXTENSION_DIR=/usr/lib64/php/modules
+ SOURCE_DATE_EPOCH=1587900075
+ ./configure --quiet --build=x86_64-redhat-linux
--host=x86_64-redhat-linux --target=x86_64-redhat-linux
--program-prefix= --prefix=/usr --libdir=/usr/lib64/php --disable-all
--enable-apcu --enable-bcmath --enable-calendar=shared --enable-cli
--enable-ctype=shared --enable-dom=shared --enable-exif=shared
--enable-fileinfo=shared --enable-filter --enable-gcc-global-regs
--enable-gd=shared --enable-hash --enable-huge-code-pages
--enable-inline-optimization --enable-intl=shared --enable-json=shared
--enable-libxml --enable-mbregex --enable-mbstring=shared
--enable-mysqlnd --enable-opcache --disable-opcache-jit
--enable-pcntl=shared --enable-pdo=shared --enable-phar=shared
--enable-posix=shared --enable-re2c-cgoto --enable-session=shared
--enable-shared --enable-simplexml=shared --enable-soap=shared
--enable-sockets=shared --enable-tokenizer=shared --enable-xml=shared
--enable-xmlreader=shared --enable-xmlwriter=shared --enable-zip=shared
--with-apxs2=/usr/bin/apxs --with-bz2=shared,/usr
--with-config-file-path=/etc
--with-config-file-scan-dir=/etc/php.lounge.d --with-curl=shared,/usr
--with-freetype --with-freetype-dir=/usr --with-gd=shared --with-gnu-ld
--with-iconv=shared --with-imap=shared,/usr --with-jpeg
--with-jpeg-dir=/usr --with-layout=GNU --with-libdir=lib64
--with-libedit --with-libxml --with-libxml-dir=/usr --with-libzip=/usr
--with-mysql-sock=/var/lib/mysql/mysql.sock --with-mysqli=mysqlnd
--with-openssl=/usr --with-pcre-jit --with-pcre-regex
--with-pdo-mysql=shared,mysqlnd --with-pic --with-png-dir=/usr
--with-system-ciphers --with-tidy=shared,/usr --with-zip=shared
--with-zlib-dir=/usr --with-zlib=shared --without-ffi --without-kerberos
--without-pear --without-sodium --without-webp --without-webp-dir
--without-xpm --disable-cgi --disable-gd-jis-conv
--disable-mysqlnd-compression-support --disable-phpdbg --disable-rpath
--disable-short-tags --disable-static --disable-debug
--without-valgrind
configure: WARNING: unrecognized options: --enable-hash,
--enable-libxml, --disable-opcache-jit, --enable-zip,
--with-freetype-dir, --with-gd, --with-jpeg-dir, --with-libxml-dir,
--with-libzip, --with-pcre-regex, --with-png-dir, --without-webp-dir
Updated main/php_version.h
This is the test message -- creating main/internal_functions.c
creating main/internal_functions_cli.c
+--------------------------------------------------------------------+
| *** WARNING *** |
| |
| You have built PHP for Apache's current non-threaded MPM. |
| If you change Apache to use a threaded MPM you must reconfigure |
| PHP with --enable-maintainer-zts |
+--------------------------------------------------------------------+
| License: |
| This software is subject to the PHP License, available in this |
| distribution in the file LICENSE. By continuing this installation |
| process, you are bound by the terms of this license agreement. |
| If you do not agree with the terms of this license, you must abort |
| the installation process at this point. |
+--------------------------------------------------------------------+
Thank you for using PHP.
configure: WARNING: unrecognized options: --enable-hash,
--enable-libxml, --disable-opcache-jit, --enable-zip,
--with-freetype-dir, --with-gd, --with-jpeg-dir, --with-libxml-dir,
--with-libzip, --with-pcre-regex, --with-png-dir, --without-webp-dir
+ make --quiet -j6 prof-gen
/home/builduser/rpmbuild/BUILD/php-7.4.0/ext/spl/spl_observer.c: In
function âspl_object_storage_detachâ:
/home/builduser/rpmbuild/BUILD/php-7.4.0/ext/spl/spl_observer.c:211:9:
warning: âkey.hâ may be used uninitialized in this function
[-Wmaybe-uninitialized]
211 | ret = zend_hash_index_del(&intern->storage, key.h);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from
/home/builduser/rpmbuild/BUILD/php-7.4.0/Zend/zend.h:33,
from
/home/builduser/rpmbuild/BUILD/php-7.4.0/main/php.h:33,
from
/home/builduser/rpmbuild/BUILD/php-7.4.0/ext/spl/spl_observer.c:24:
/home/builduser/rpmbuild/BUILD/php-7.4.0/ext/spl/spl_observer.c: In
function âspl_object_storage_containsâ:
/home/builduser/rpmbuild/BUILD/php-7.4.0/Zend/zend_hash.h:224:9:
warning: âkey.hâ may be used uninitialized in this function
[-Wmaybe-uninitialized]
224 | return zend_hash_index_find(ht, h) != NULL;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/builduser/rpmbuild/BUILD/php-7.4.0/ext/spl/spl_observer.c:380:16:
note: âkey.hâ was declared here
380 | zend_hash_key key;
| ^~~
In file included from
/home/builduser/rpmbuild/BUILD/php-7.4.0/Zend/zend_types.h:25,
from
/home/builduser/rpmbuild/BUILD/php-7.4.0/Zend/zend.h:27,
from
/home/builduser/rpmbuild/BUILD/php-7.4.0/main/php.h:33,
from
/home/builduser/rpmbuild/BUILD/php-7.4.0/ext/intl/collator/collator_is_numeric.h:21,
from
/home/builduser/rpmbuild/BUILD/php-7.4.0/ext/intl/collator/collator_is_numeric.c:18:
/home/builduser/rpmbuild/BUILD/php-7.4.0/ext/intl/collator/collator_is_numeric.c:
In function âcollator_u_strtodâ:
/home/builduser/rpmbuild/BUILD/php-7.4.0/Zend/zend_portability.h:365:10:
warning: âuse_heapâ may be used uninitialized in this function
[-Wmaybe-uninitialized]
365 | do { if (UNEXPECTED(use_heap)) efree(p); } while (0)
| ^
/home/builduser/rpmbuild/BUILD/php-7.4.0/ext/intl/collator/collator_is_numeric.c:74:15:
note: âuse_heapâ was declared here
74 | ALLOCA_FLAG(use_heap);
| ^~~~~~~~
/home/builduser/rpmbuild/BUILD/php-7.4.0/Zend/zend_portability.h:357:12:
note: in definition of macro âALLOCA_FLAGâ
357 | zend_bool name;
| ^~~~
/home/builduser/rpmbuild/BUILD/php-7.4.0/ext/sockets/sockets.c: In
function âzm_startup_socketsâ:
/home/builduser/rpmbuild/BUILD/php-7.4.0/ext/sockets/sockets.c:853:13:
warning: AI_IDN_ALLOW_UNASSIGNED is deprecated
853 | REGISTER_LONG_CONSTANT("AI_IDN_ALLOW_UNASSIGNED",
AI_IDN_ALLOW_UNASSIGNED, CONST_CS | CONST_PERSISTENT);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/builduser/rpmbuild/BUILD/php-7.4.0/ext/sockets/sockets.c:854:13:
warning: AI_IDN_USE_STD3_ASCII_RULES is deprecated
854 | REGISTER_LONG_CONSTANT("AI_IDN_USE_STD3_ASCII_RULES",
AI_IDN_USE_STD3_ASCII_RULES, CONST_CS | CONST_PERSISTENT);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/builduser/rpmbuild/BUILD/php-7.4.0/ext/sockets/sockets.c: In
function âzif_socket_addrinfo_lookupâ:
/home/builduser/rpmbuild/BUILD/php-7.4.0/ext/sockets/sockets.c:2578:13:
warning: AI_IDN_ALLOW_UNASSIGNED is deprecated
2578 | if (flags & (AI_IDN_ALLOW_UNASSIGNED |
AI_IDN_USE_STD3_ASCII_RULES)) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/builduser/rpmbuild/BUILD/php-7.4.0/ext/sockets/sockets.c:2578:13:
warning: AI_IDN_USE_STD3_ASCII_RULES is deprecated
2578 | if (flags & (AI_IDN_ALLOW_UNASSIGNED |
AI_IDN_USE_STD3_ASCII_RULES)) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from
/home/builduser/rpmbuild/BUILD/php-7.4.0/Zend/zend.h:32,
from
/home/builduser/rpmbuild/BUILD/php-7.4.0/main/php.h:33,
from
/home/builduser/rpmbuild/BUILD/php-7.4.0/ext/zip/php_zip.c:24:
/home/builduser/rpmbuild/BUILD/php-7.4.0/ext/zip/php_zip.c: In function
âc_ziparchive_getFromIndexâ:
/home/builduser/rpmbuild/BUILD/php-7.4.0/Zend/zend_string.h:52:31:
warning: âfilenameâ may be used uninitialized in this function
[-Wmaybe-uninitialized]
52 | #define ZSTR_VAL(zstr) (zstr)->val
| ^~
/home/builduser/rpmbuild/BUILD/php-7.4.0/ext/zip/php_zip.c:2705:15:
note: âfilenameâ was declared here
2705 | zend_string *filename;
| ^~~~~~~~
Zend/zend_ini_scanner.l: In function âini_lexâ:
Zend/zend_ini_scanner.c:521:18: warning: âyychâ may be used
uninitialized in this function [-Wmaybe-uninitialized]
521 | goto *yytarget[yych];
| ~~~~~~~~^~~~~~
Zend/zend_ini_scanner.c:389:10: note: âyychâ was declared here
389 | YYCTYPE yych;
| ^~~~
Zend/zend_language_scanner.l: In function âlex_scanâ:
Zend/zend_language_scanner.c:1855:18: warning: âyychâ may be used
uninitialized in this function [-Wmaybe-uninitialized]
1855 | goto *yytarget[yych];
| ~~~~~~~~^~~~~~
Zend/zend_language_scanner.c:1260:10: note: âyychâ was declared
here
1260 | YYCTYPE yych;
| ^~~~
Generating phar.php
Generating phar.phar
PEAR package PHP_Archive not installed: generated phar will require
PHP's phar extension be enabled.
clicommand.inc
directorytreeiterator.inc
pharcommand.inc
directorygraphiterator.inc
invertedregexiterator.inc
phar.inc
--
Edit bug report at https://bugs.php.net/bug.php?id=79523&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=79523&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=79523&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=79523&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=79523&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=79523&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=79523&r=support
Expected behavior: https://bugs.php.net/fix.php?id=79523&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=79523&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=79523&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=79523&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=79523&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=79523&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=79523&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=79523&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=79523&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=79523&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=79523&r=mysqlcfg