cURL / Mailing Lists / curl-users / Single Mail

curl-users

Make problem with ares.h

From: David Pautler <david_s_pautler_at_yahoo.com>
Date: Sun, 26 Sep 2004 11:29:11 -0700 (PDT)

I'm trying to build curl to rely on c-ares. But make
can't find ares.h, even though the -I option seems
correct.

First, I installed c-ares.

Second, I configured curl to enable ares and disable
IPv6:

> ./configure --enable-ares=../curl-ares
--prefix=$TOP/adisk/adapters/utils/curl --disable-ipv6

> make
Making all in lib
echo "/* This file is generated automatically */" >
../lib/ca-bundle.h
echo '#undef CURL_CA_BUNDLE /* unknown */' >>
../lib/ca-bundle.h
make all-am
source='file.c' object='file.lo' libtool=yes \
depfile='.deps/file.Plo' tmpdepfile='.deps/file.TPlo'
\
depmode=gcc /bin/bash ../depcomp \
/bin/bash ../libtool --mode=compile gcc
-DHAVE_CONFIG_H -I../include -I../lib -I../lib
-I../curl-ares/include -g -O2 -c -o file.lo file.c
 gcc -DHAVE_CONFIG_H -I../include -I../lib -I../lib
-I../curl-ares/include -g -O2 -c file.c
-Wp,-MD,.deps/file.TPlo -fPIC -DPIC -o .libs/file.o
In file included from file.c:78:
urldata.h:85: ares.h: No such file or directory
make[2]: *** [file.lo] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1

> ls -l ../curl-ares/include
total 24
-r--r--r-- 1 david user 4704 Sep 26 10:14
ares.h
-r--r--r-- 1 david user 428 Sep 26 10:14
ares_version.h

Why would "-I../curl-ares/" be ignored in the make?

     -dp-
Received on 2004-09-26