checking that c-ares is good and recent enough... no
configure: error: c-ares library defective or too old
config.log:
configure:40149: checking that c-ares is good and recent enough
configure:40176: gcc -o conftest -Werror-implicit-function-declaration -O2 -Wno-system-headers conftest.c -lcares -lz >&5
conftest.c:257:18: fatal error: ares.h: No such file or directory
#include <ares.h>
^
compilation terminated.
ares.h was not found
c-ares is not installed in default install path, because it was built with --prefix but pkgconfig should deliver that custom path, because libcares.pc includes includedir=/opt/WP/common.libs/include:
I've figured out another way of doing this: PKG_CONFIG="pkg-config --static" PKG_CONFIG_PATH=/opt/WP/common.libs/lib/pkgconfig ./configure --enable-ares
outputs:
checking that c-ares is good and recent enough... yes
(...)
configure: Configured to build curl/libcurl:
curl version: 7.56.1
(...)
resolver: c-ares
I did this
PKG_CONFIG_PATH=/opt/WP/common.libs/lib/pkgconfig ./configure --enable-ares
I expected the following
curl will build
what happened
configure
script exited with error:config.log:
ares.h
was not foundc-ares is not installed in default install path, because it was built with
--prefix
butpkgconfig
should deliver that custom path, becauselibcares.pc
includesincludedir=/opt/WP/common.libs/include
:and to confirm that
ares.h
exists in that path:It's not a critical issue, because I can build curl with:
(config.log then looks like this:)
but I'd like to use pkgconfig in the future.
operating system
curl-7.56.1
c-ares-1.13.0
CentOS Linux release 7.4.1708 (Core)
The text was updated successfully, but these errors were encountered: