php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #79523 build warnings 7.4 HEAD 2020-04-26
Submitted: 2020-04-26 11:31 UTC Modified: 2021-06-22 13:48 UTC
Votes:2
Avg. Score:2.5 ± 1.5
Reproduced:1 of 2 (50.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: bugreports at gmail dot com Assigned: cmb (profile)
Status: Closed Package: Compile Warning
PHP Version: 7.4Git-2020-04-26 (Git) OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: bugreports at gmail dot com
New email:
PHP Version: OS:

 

 [2020-04-26 11:31 UTC] bugreports at gmail dot com
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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-06-22 13:48 UTC] cmb@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2021-06-22 13:48 UTC] cmb@php.net
php-src is not yet -Wall clean; we're working on that; no need to
keep this ticket open as reminder.  You may consider to try the
HEAD of the master branch.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 16:01:29 2024 UTC