Bug #80064 [Fbk->NoF]: configure error

From: Date: Sun, 20 Sep 2020 04:22:05 +0000
Subject: Bug #80064 [Fbk->NoF]: configure error
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-229097@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=80064&edit=1

 ID:               80064
 Updated by:       php-bugs@lists.php.net
 Reported by:      565195693 at qq dot com
 Summary:          configure error
-Status:           Feedback
+Status:           No Feedback
 Type:             Bug
 Package:          Compile Failure
 Operating System: macOS 10.13.6
 PHP Version:      7.4.10
 Private report:   N

 New Comment:

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.


Previous Comments:
------------------------------------------------------------------------
[2020-09-08 08:33:01] nikic@php.net

➜  php-7.4.10 echo $PKG_CONFIG
/usr/lib/pkgconfig:/usr/local/devenv/openssl/lib/pkgconfig:/usr/local/devenv/freetype2/lib/pkgconfig:/usr/local/devenv/pcre2/lib/pkgconfig:/usr/local/devenv/libwebp/lib/pkgconfig:/usr/local/devenv/jpeg/lib/pkgconfig:/usr/local/devenv/libzip/lib/pkgconfig:/usr/local/devenv/libxml2/lib/pkgconfig

It looks like you mixed up PKG_CONFIG and PKG_CONFIG_PATH. If you set PKG_CONFIG (usually not
needed) then it should be the path to the pkg-config binary itself. So something like
PKG_CONFIG=/usr/bin/pkg-config.

------------------------------------------------------------------------
[2020-09-06 04:43:03] 565195693 at qq dot com

Description:
------------
./configure --prefix=/usr/local/webserver/php --with-config-file-path=/usr/local/webserver/php/conf
--enable-fpm --enable-mbstring --enable-sockets --enable-redis --enable-swoole --enable-gd
--with-fpm-user=_www --with-fpm-group=_www --with-pdo-mysql --with-mysqli --with-zip --with-openssl
--with-external-pcre --with-curl --with-zlib --with-jpeg --with-freetype --with-webp --with-sqlite3
PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/local/devenv/openssl/lib/pkgconfig:/usr/local/devenv/freetype2/lib/pkgconfig:/usr/local/devenv/pcre2/lib/pkgconfig:/usr/local/devenv/libwebp/lib/pkgconfig:/usr/local/devenv/jpeg/lib/pkgconfig:/usr/local/devenv/libzip/lib/pkgconfig:/usr/local/devenv/libxml2/lib/pkgconfig

Test script:
---------------
➜  php-7.4.10 pkg-config  --version 
0.29.2
➜  php-7.4.10 echo $PKG_CONFIG
/usr/lib/pkgconfig:/usr/local/devenv/openssl/lib/pkgconfig:/usr/local/devenv/freetype2/lib/pkgconfig:/usr/local/devenv/pcre2/lib/pkgconfig:/usr/local/devenv/libwebp/lib/pkgconfig:/usr/local/devenv/jpeg/lib/pkgconfig:/usr/local/devenv/libzip/lib/pkgconfig:/usr/local/devenv/libxml2/lib/pkgconfig
➜  php-7.4.10 echo $PKG_CONFIG_PATH 
/usr/lib/pkgconfig:/usr/local/devenv/openssl/lib/pkgconfig:/usr/local/devenv/freetype2/lib/pkgconfig:/usr/local/devenv/pcre2/lib/pkgconfig:/usr/local/devenv/libwebp/lib/pkgconfig:/usr/local/devenv/jpeg/lib/pkgconfig:/usr/local/devenv/libzip/lib/pkgconfig:/usr/local/devenv/libxml2/lib/pkgconfig
➜  php-7.4.10 

Expected result:
----------------
configure ok

Actual result:
--------------
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 build system type... x86_64-apple-darwin17.7.0
checking host system type... x86_64-apple-darwin17.7.0
checking target system type... x86_64-apple-darwin17.7.0
checking pkg-config is at least version 0.9.0... ./configure: line 4339:
/usr/lib/pkgconfig:/usr/local/devenv/openssl/lib/pkgconfig:/usr/local/devenv/freetype2/lib/pkgconfig:/usr/local/devenv/pcre2/lib/pkgconfig:/usr/local/devenv/libwebp/lib/pkgconfig:/usr/local/devenv/jpeg/lib/pkgconfig:/usr/local/devenv/libzip/lib/pkgconfig:/usr/local/devenv/libxml2/lib/pkgconfig:
No such file or directory
no
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 how to run the C preprocessor... cc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
。。。。。。。。。。。。。。。。。。。。。。。。。。。。
checking whether to enable IPv6 support... yes
checking whether to enable DTrace support... no
checking how big to make fd sets... using system default

Configuring extensions
checking io.h usability... no
checking io.h presence... no
checking for io.h... no
checking for strtoll... yes
checking for atoll... yes
checking whether to build with LIBXML support... yes
checking for libxml-2.0 >= 2.7.6... no
configure: error: in `/Users/rehack/Downloads/php-7.4.10':
configure: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables LIBXML_CFLAGS
and LIBXML_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See `config.log' for more details


------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=80064&edit=1


Thread (3 messages)

« previous php.bugs (#229097) next »