cURL / Mailing Lists / curl-library / Single Mail

curl-library

libcurl 7.16.0 configuration error?

From: Robert Iakobashvili <coroberti_at_gmail.com>
Date: Sat, 4 Nov 2006 00:38:03 +0200

Hi,
**
libcurl 7.16.0, linux, curl-loader tool.

Trying to advance to libcurl 7.16.0 and using the building script below:

    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

We mentioned in mail-archives, that this was a known issue for 7.15.5
and supposed to be fixed , but ...

Thank you in advance.

-- 
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-03