cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: libcurl 7.16.0 configuration error?

From: Robert Iakobashvili <coroberti_at_gmail.com>
Date: Sat, 4 Nov 2006 07:50:55 +0200

Dan,

Thank you for your response.

> gcc -W -Wall -Wpointer-arith -pipe -g -I. -I./curl-build/include -I./
> > curl-7.16.0/lib -c -o obj/loader_smooth.o loader_smooth.c
>
> If curl-loader is simply a libcurl-using application, then you shouldn't
> be pointing it into the curl source tree (with the -I./curl-7.16.0/lib
> option). The second -I option should be sufficient to give it access to
> the public header files--there's nothing in curl-7.16.0/lib that a normal
> application should need (unless you're using a curlx_* function).

We do not have such problems with several libcurl versions,
excluding the latest 7.15.5 and 7.16.0.

7.15.4 works just fine, where with 7.16.0 we may be still falling into the
problem,
described also here:
http://curl.haxx.se/mail/archive-2006-08/0007.html

> echo "extracting curl sources"
> tar zxf curl-${CURL_VER}.tar.gz || exit 1
> ln -sf curl-${CURL_VER} curl || exit 1
> mkdir ${CURL_BUILD}
>
> pushd curl
> ./configure --prefix ${CURL_BUILD} \
> --enable-thread \
> --disable-ipv6 \
> --with-random=/dev/urandom \
> --with-ssl=/usr/include/openssl \
> --enable-shared=no \
> CFLAGS=-g \
> || exit 1
>
> make || exit 1
> make install || exit 1
> popd
>
>The library builds OK, but further compilation of curl-loader provides:
>
>gcc -W -Wall -Wpointer-arith -pipe -g -I. -I./curl-build/include -I./curl-
7.16.0/lib -c -o >obj/loader_smooth.o loader_smooth.c
>In file included from ./curl-7.16.0/lib/setup.h:372,
> from ./curl-7.16.0/lib/urldata.h:28,
> from loader_smooth.c:32:
>./curl-7.16.0/lib/setup_once.h:89: error: syntax error
before"Missing_definition_of_macro_sread"
>In file included from /usr/include/time.h:42,
> from ./curl-build/include/curl/curl.h:41,
> from ./curl-7.16.0/lib/cookie.h:35,
> from ./curl-7.16.0/lib/urldata.h:49,
> from loader_smooth.c:32:
>/usr/include/bits/time.h:40: error: syntax error before "extern"
>In file included from ./curl-7.16.0/lib/urldata.h:84,
> from loader_smooth.c:32:
>./curl-7.16.0/lib/timeval.h:45: error: redefinition of `struct timeval'
>make: *** [obj/loader_smooth.o] Error 1

-- 
Sincerely,
Robert Iakobashvili, coroberti at gmail dot com
------------------------------------------------------------------
Navigare necesse est, vivere non est necesse.
------------------------------------------------------------------
http://sourceforge.net/projects/curl-loader
An ultimate HTTP/S performance testing tool.
Received on 2006-11-04