[php-src] Issue #8425: can't build json.so cause make do nothing

From: Date: Fri, 22 Apr 2022 10:48:29 +0000
Subject: [php-src] Issue #8425: can't build json.so cause make do nothing
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-241156@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/8425 Author: evrinoma ### Description The following code: ```bash cd /usr/src/php/ext/json && phpize && ./configure && make ``` Resulted in this output: ``` Build complete. Don't forget to run 'make test'. ``` Config in this output: ``` This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by configure, which was generated by GNU Autoconf 2.69. Invocation command line was $ ./configure ## --------- ## ## Platform. ## ## --------- ## hostname = 3e73a9aae09a uname -m = x86_64 uname -r = 5.16.14-1-default uname -s = Linux uname -v = #1 SMP PREEMPT Fri Mar 11 12:33:34 UTC 2022 (80acc65) /usr/bin/uname -p = x86_64 /bin/uname -X = unknown /bin/arch = x86_64 /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /usr/local/sbin PATH: /usr/local/bin PATH: /usr/sbin PATH: /usr/bin PATH: /sbin PATH: /bin ## ----------- ## ## Core tests. ## ## ----------- ## configure:2333: checking for grep that handles long lines and -e configure:2391: result: /usr/bin/grep configure:2396: checking for egrep configure:2458: result: /usr/bin/grep -E configure:2463: checking for a sed that does not truncate output configure:2527: result: /usr/bin/sed configure:2666: checking for pkg-config configure:2684: found /usr/bin/pkg-config configure:2696: result: /usr/bin/pkg-config configure:2721: checking pkg-config is at least version 0.9.0 configure:2724: result: yes configure:2786: checking for cc configure:2802: found /usr/bin/cc configure:2813: result: cc configure:2844: checking for C compiler version configure:2853: cc --version >&5 cc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-4) Copyright (C) 2018 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:2864: $? = 0 configure:2853: cc -v >&5 Using built-in specs. COLLECT_GCC=cc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/8/lto-wrapper OFFLOAD_TARGET_NAMES=nvptx-none OFFLOAD_TARGET_DEFAULT=1 Target: x86_64-redhat-linux Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,fortran,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl --disable-libmpx --enable-offload-targets=nvptx-none --without-cuda-driver --enable-gnu-indirect-function --enable-cet --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux Thread model: posix gcc version 8.5.0 20210514 (Red Hat 8.5.0-4) (GCC) configure:2864: $? = 0 configure:2853: cc -V >&5 cc: error: unrecognized command line option '-V' cc: fatal error: no input files compilation terminated. configure:2864: $? = 1 configure:2853: cc -qversion >&5 cc: error: unrecognized command line option '-qversion'; did you mean '--version'? cc: fatal error: no input files compilation terminated. configure:2864: $? = 1 configure:2884: checking whether the C compiler works configure:2906: cc conftest.c >&5 configure:2910: $? = 0 configure:2958: result: yes configure:2961: checking for C compiler default output file name configure:2963: result: a.out configure:2969: checking for suffix of executables configure:2976: cc -o conftest conftest.c >&5 configure:2980: $? = 0 configure:3002: result: configure:3024: checking whether we are cross compiling configure:3032: cc -o conftest conftest.c >&5 configure:3036: $? = 0 configure:3043: ./conftest configure:3047: $? = 0 configure:3062: result: no configure:3067: checking for suffix of object files configure:3089: cc -c conftest.c >&5 configure:3093: $? = 0 configure:3114: result: o configure:3118: checking whether we are using the GNU C compiler configure:3137: cc -c conftest.c >&5 configure:3137: $? = 0 configure:3146: result: yes configure:3155: checking whether cc accepts -g configure:3175: cc -c -g conftest.c >&5 configure:3175: $? = 0 configure:3216: result: yes configure:3233: checking for cc option to accept ISO C89 configure:3296: cc -c -g -O2 conftest.c >&5 configure:3296: $? = 0 configure:3309: result: none needed configure:3335: checking how to run the C preprocessor configure:3366: cc -E conftest.c configure:3366: $? = 0 configure:3380: cc -E conftest.c conftest.c:9:10: fatal error: ac_nonexistent.h: No such file or directory #include <ac_nonexistent.h> ^~~~~~~~~~~~~~~~~~ compilation terminated. configure:3380: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | /* end confdefs.h. */ | #include <ac_nonexistent.h> configure:3405: result: cc -E configure:3425: cc -E conftest.c configure:3425: $? = 0 configure:3439: cc -E conftest.c conftest.c:9:10: fatal error: ac_nonexistent.h: No such file or directory #include <ac_nonexistent.h> ^~~~~~~~~~~~~~~~~~ compilation terminated. configure:3439: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | /* end confdefs.h. */ | #include <ac_nonexistent.h> configure:3470: checking for icc configure:3479: result: no configure:3493: checking for suncc configure:3502: result: no configure:3520: checking for system library directory configure:3535: result: lib configure:3542: checking if compiler supports -Wl,-rpath, configure:3561: cc -o conftest -g -O2 conftest.c -Wl,-rpath,/usr/lib >&5 configure:3561: $? = 0 configure:3571: result: yes configure:3621: checking build system type configure:3635: result: x86_64-pc-linux-gnu configure:3655: checking host system type configure:3668: result: x86_64-pc-linux-gnu configure:3688: checking target system type configure:3701: result: x86_64-pc-linux-gnu configure:3804: checking for PHP prefix configure:3806: result: /usr/local configure:3808: checking for PHP includes configure:3810: result: -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib configure:3812: checking for PHP extension directory configure:3814: result: /usr/local/php/modules configure:3816: checking for PHP installed headers prefix configure:3818: result: /usr/local/include/php configure:3821: checking if debug is enabled configure:3847: result: no configure:3850: checking if zts is enabled configure:3876: result: no configure:3944: checking for gawk configure:3961: found /usr/bin/gawk configure:3972: result: gawk configure:4393: checking for a sed that does not truncate output configure:4447: result: /usr/bin/sed configure:4461: checking for ld used by cc configure:4528: result: /usr/bin/ld configure:4535: checking if the linker (/usr/bin/ld) is GNU ld configure:4550: result: yes configure:4555: checking for /usr/bin/ld option to reload object files configure:4562: result: -r configure:4580: checking for BSD-compatible nm configure:4629: result: /usr/bin/nm -B configure:4633: checking whether ln -s works configure:4637: result: yes configure:4644: checking how to recognize dependent libraries configure:4830: result: pass_all configure:4915: cc -c -g -O2 conftest.c >&5 configure:4918: $? = 0 configure:5048: checking for ANSI C header files configure:5068: cc -c -g -O2 conftest.c >&5 configure:5068: $? = 0 configure:5141: cc -o conftest -g -O2 conftest.c >&5 configure:5141: $? = 0 configure:5141: ./conftest configure:5141: $? = 0 configure:5152: result: yes configure:5165: checking for sys/types.h configure:5165: cc -c -g -O2 conftest.c >&5 configure:5165: $? = 0 configure:5165: result: yes configure:5165: checking for sys/stat.h configure:5165: cc -c -g -O2 conftest.c >&5 configure:5165: $? = 0 configure:5165: result: yes configure:5165: checking for stdlib.h configure:5165: cc -c -g -O2 conftest.c >&5 configure:5165: $? = 0 configure:5165: result: yes configure:5165: checking for string.h configure:5165: cc -c -g -O2 conftest.c >&5 configure:5165: $? = 0 configure:5165: result: yes configure:5165: checking for memory.h configure:5165: cc -c -g -O2 conftest.c >&5 configure:5165: $? = 0 configure:5165: result: yes configure:5165: checking for strings.h configure:5165: cc -c -g -O2 conftest.c >&5 configure:5165: $? = 0 configure:5165: result: yes configure:5165: checking for inttypes.h configure:5165: cc -c -g -O2 conftest.c >&5 configure:5165: $? = 0 configure:5165: result: yes configure:5165: checking for stdint.h configure:5165: cc -c -g -O2 conftest.c >&5 configure:5165: $? = 0 configure:5165: result: yes configure:5165: checking for unistd.h configure:5165: cc -c -g -O2 conftest.c >&5 configure:5165: $? = 0 configure:5165: result: yes configure:5179: checking dlfcn.h usability configure:5179: cc -c -g -O2 conftest.c >&5 configure:5179: $? = 0 configure:5179: result: yes configure:5179: checking dlfcn.h presence configure:5179: cc -E conftest.c configure:5179: $? = 0 configure:5179: result: yes configure:5179: checking for dlfcn.h configure:5179: result: yes configure:5201: checking the maximum length of command line arguments configure:5313: result: 1572864 configure:5325: checking command to parse /usr/bin/nm -B output from cc object configure:5430: cc -c -g -O2 conftest.c >&5 configure:5433: $? = 0 configure:5437: /usr/bin/nm -B conftest.o \| sed -n -e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' \> conftest.nm configure:5440: $? = 0 configure:5492: cc -o conftest -g -O2 conftest.c conftstm.o >&5 configure:5495: $? = 0 configure:5533: result: ok configure:5537: checking for objdir configure:5552: result: .libs configure:5644: checking for ar configure:5660: found /usr/bin/ar configure:5671: result: ar configure:5736: checking for ranlib configure:5752: found /usr/bin/ranlib configure:5763: result: ranlib configure:5828: checking for strip configure:5844: found /usr/bin/strip configure:5855: result: strip configure:6424: checking if cc supports -fno-rtti -fno-exceptions configure:6442: cc -c -g -O2 -fno-rtti -fno-exceptions conftest.c >&5 cc1: warning: command line option '-fno-rtti' is valid for C++/ObjC++ but not for C configure:6446: $? = 0 configure:6459: result: no configure:6474: checking for cc option to produce PIC configure:6714: result: -fPIC configure:6722: checking if cc PIC flag -fPIC works configure:6740: cc -c -g -O2 -fPIC -DPIC conftest.c >&5 configure:6744: $? = 0 configure:6757: result: yes configure:6785: checking if cc static flag -static works configure:6813: result: no configure:6823: checking if cc supports -c -o file.o configure:6844: cc -c -g -O2 -o out/conftest2.o conftest.c >&5 configure:6848: $? = 0 configure:6870: result: yes configure:6896: checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries configure:7824: result: yes configure:7845: checking whether -lc should be explicitly linked in configure:7850: cc -c -g -O2 conftest.c >&5 configure:7853: $? = 0 configure:7868: cc -shared conftest.o -v -Wl,-soname -Wl,conftest -o conftest 2\>\&1 \| grep -lc \>/dev/null 2\>\&1 configure:7871: $? = 0 configure:7883: result: no configure:7891: checking dynamic linker characteristics configure:8500: result: GNU/Linux ld.so configure:8524: checking how to hardcode library paths into programs configure:8549: result: immediate configure:8563: checking whether stripping libraries is possible configure:8568: result: yes configure:9079: checking if libtool supports shared libraries configure:9081: result: yes configure:9084: checking whether to build shared libraries configure:9105: result: yes configure:9108: checking whether to build static libraries configure:9112: result: no configure:9207: result: creating libtool configure:12969: patching config.h.in configure:12980: creating ./config.status ## ---------------------- ## ## Running config.status. ## ## ---------------------- ## This file was extended by config.status, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = CONFIG_HEADERS = CONFIG_LINKS = CONFIG_COMMANDS = $ ./config.status on 3e73a9aae09a config.status:676: creating config.h ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv_build=x86_64-pc-linux-gnu ac_cv_c_compiler_gnu=yes ac_cv_env_CC_set= ac_cv_env_CC_value= ac_cv_env_CFLAGS_set= ac_cv_env_CFLAGS_value= ac_cv_env_CPPFLAGS_set= ac_cv_env_CPPFLAGS_value= ac_cv_env_CPP_set= ac_cv_env_CPP_value= ac_cv_env_LDFLAGS_set= ac_cv_env_LDFLAGS_value= ac_cv_env_LIBS_set= ac_cv_env_LIBS_value= ac_cv_env_PKG_CONFIG_LIBDIR_set= ac_cv_env_PKG_CONFIG_LIBDIR_value= ac_cv_env_PKG_CONFIG_PATH_set= ac_cv_env_PKG_CONFIG_PATH_value= ac_cv_env_PKG_CONFIG_set= ac_cv_env_PKG_CONFIG_value= ac_cv_env_build_alias_set= ac_cv_env_build_alias_value= ac_cv_env_host_alias_set= ac_cv_env_host_alias_value= ac_cv_env_target_alias_set= ac_cv_env_target_alias_value= ac_cv_header_dlfcn_h=yes ac_cv_header_inttypes_h=yes ac_cv_header_memory_h=yes ac_cv_header_stdc=yes ac_cv_header_stdint_h=yes ac_cv_header_stdlib_h=yes ac_cv_header_string_h=yes ac_cv_header_strings_h=yes ac_cv_header_sys_stat_h=yes ac_cv_header_sys_types_h=yes ac_cv_header_unistd_h=yes ac_cv_host=x86_64-pc-linux-gnu ac_cv_objext=o ac_cv_path_EGREP='/usr/bin/grep -E' ac_cv_path_GREP=/usr/bin/grep ac_cv_path_SED=/usr/bin/sed ac_cv_path_ac_pt_PKG_CONFIG=/usr/bin/pkg-config ac_cv_prog_AWK=gawk ac_cv_prog_CPP='cc -E' ac_cv_prog_ac_ct_AR=ar ac_cv_prog_ac_ct_CC=cc ac_cv_prog_ac_ct_RANLIB=ranlib ac_cv_prog_ac_ct_STRIP=strip ac_cv_prog_cc_c89= ac_cv_prog_cc_g=yes ac_cv_target=x86_64-pc-linux-gnu lt_cv_deplibs_check_method=pass_all lt_cv_file_magic_cmd='$MAGIC_CMD' lt_cv_file_magic_test_file= lt_cv_ld_reload_flag=-r lt_cv_objdir=.libs lt_cv_path_LD=/usr/bin/ld lt_cv_path_NM='/usr/bin/nm -B' lt_cv_path_SED=/usr/bin/sed lt_cv_prog_compiler_c_o=yes lt_cv_prog_compiler_pic_works=yes lt_cv_prog_compiler_rtti_exceptions=no lt_cv_prog_compiler_static_works=no lt_cv_prog_gnu_ld=yes lt_cv_sys_global_symbol_pipe='sed -n -e '\''s/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p'\''' lt_cv_sys_global_symbol_to_c_name_address='sed -n -e '\''s/^: \([^ ]*\) $/ {\"\1\", (lt_ptr) 0},/p'\'' -e '\''s/^[BCDEGRST] \([^ ]*\) \([^ ]*\)$/ {"\2", (lt_ptr) \&\2},/p'\''' lt_cv_sys_global_symbol_to_cdecl='sed -n -e '\''s/^. .* \(.*\)$/extern int \1;/p'\''' lt_cv_sys_lib_dlsearch_path_spec='/lib /usr/lib ' lt_cv_sys_lib_search_path_spec='/usr/lib/gcc/x86_64-redhat-linux/8 /usr/lib64 /lib64' lt_cv_sys_max_cmd_len=1572864 lt_lt_cv_prog_compiler_c_o='"yes"' lt_lt_cv_sys_global_symbol_pipe='"sed -n -e '\''s/^.*[ ]\\([ABCDGIRSTW][ABCDGIRSTW]*\\)[ ][ ]*\\([_A-Za-z][_A-Za-z0-9]*\\)\$/\\1 \\2 \\2/p'\''"' lt_lt_cv_sys_global_symbol_to_c_name_address='"sed -n -e '\''s/^: \\([^ ]*\\) \$/ {\\\"\\1\\\", (lt_ptr) 0},/p'\'' -e '\''s/^[BCDEGRST] \\([^ ]*\\) \\([^ ]*\\)\$/ {\"\\2\", (lt_ptr) \\&\\2},/p'\''"' lt_lt_cv_sys_global_symbol_to_cdecl='"sed -n -e '\''s/^. .* \\(.*\\)\$/extern int \\1;/p'\''"' php_cv_cc_rpath=yes ## ----------------- ## ## Output variables. ## ## ----------------- ## AR='ar' AWK='gawk' BUILD_CC='cc' CC='cc' CFLAGS='-g -O2' CONFIGURE_COMMAND=' '\''./configure'\'' ' CONFIGURE_OPTIONS='' CPP='cc -E' CPPFLAGS=' -DHAVE_CONFIG_H' DEFS='-DHAVE_CONFIG_H' DSYMUTIL='' ECHO='echo' ECHO_C='' ECHO_N='-n' ECHO_T='' EGREP='/usr/bin/grep -E' EXEEXT='' GREP='/usr/bin/grep' LDFLAGS='' LIBOBJS='' LIBS='' LIBTOOL='$(SHELL) $(top_builddir)/libtool' LN_S='ln -s' LTLIBOBJS='' NMEDIT='' OBJEXT='o' PACKAGE_BUGREPORT='' PACKAGE_NAME='' PACKAGE_STRING='' PACKAGE_TARNAME='' PACKAGE_URL='' PACKAGE_VERSION='' PATH_SEPARATOR=':' PKG_CONFIG='/usr/bin/pkg-config' PKG_CONFIG_LIBDIR='' PKG_CONFIG_PATH='' RANLIB='ranlib' SED='/usr/bin/sed' SHELL='/bin/sh' SHLIB_DL_SUFFIX_NAME='so' SHLIB_SUFFIX_NAME='so' STRIP='strip' ac_ct_CC='cc' bindir='${exec_prefix}/bin' build='x86_64-pc-linux-gnu' build_alias='' build_cpu='x86_64' build_os='linux-gnu' build_vendor='pc' datadir='${datarootdir}' datarootdir='${prefix}/share' docdir='${datarootdir}/doc/${PACKAGE}' dvidir='${docdir}' exec_prefix='$(prefix)' host='x86_64-pc-linux-gnu' host_alias='x86_64-pc-linux-gnu' host_cpu='x86_64' host_os='linux-gnu' host_vendor='pc' htmldir='${docdir}' includedir='${prefix}/include' infodir='${datarootdir}/info' libdir='${exec_prefix}/lib' libexecdir='${exec_prefix}/libexec' localedir='${datarootdir}/locale' localstatedir='${prefix}/var' mandir='${datarootdir}/man' oldincludedir='/usr/include' pdfdir='${docdir}' prefix='/usr/local' program_transform_name='s,x,x,' psdir='${docdir}' sbindir='${exec_prefix}/sbin' sharedstatedir='${prefix}/com' sysconfdir='${prefix}/etc' target='x86_64-pc-linux-gnu' target_alias='' target_cpu='x86_64' target_os='linux-gnu' target_vendor='pc' ## ----------- ## ## confdefs.h. ## ## ----------- ## /* confdefs.h */ #define PACKAGE_NAME "" #define PACKAGE_TARNAME "" #define PACKAGE_VERSION "" #define PACKAGE_STRING "" #define PACKAGE_BUGREPORT "" #define PACKAGE_URL "" #define HAVE_JSON 1 #define STDC_HEADERS 1 #define HAVE_SYS_TYPES_H 1 #define HAVE_SYS_STAT_H 1 #define HAVE_STDLIB_H 1 #define HAVE_STRING_H 1 #define HAVE_MEMORY_H 1 #define HAVE_STRINGS_H 1 #define HAVE_INTTYPES_H 1 #define HAVE_STDINT_H 1 #define HAVE_UNISTD_H 1 #define HAVE_DLFCN_H 1 configure: exit 0 ``` ### PHP Version PHP 8.1.5 ### Operating System REHL

« previous php.bugs (#241156) next »