cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: RedHat Linux libcurl 7.28.1 gcc compiler error log file

From: Tor Arntsen <tor_at_spacetec.no>
Date: Wed, 5 Dec 2012 13:24:01 +0100

On Wed, Dec 5, 2012 at 1:04 PM, Frank Chang <frank_chang91_at_hotmail.com> wrote:

> make[1]: Entering directory `/net/beige/export/marc/DQT/EmailLib/lirh5g_deb'
> errfn=asyn-thread.c ; gcc -g -Wall -W -Wno-unused -Wno-sign-compare -D_DEBUG
> -pthread -DTHREADSAFE -m32 -D_NO_GUI -DBUILDING_LIBCURL -I../Include
> -I../../cpswindows/Include -I../curl-7.28.1 -I../../FuzzyMatchingLib/Include
> -I../../util/mdLicense -I../../sqlite.3.7 -I../../util -fpic
> ../curl-7.28.1/asyn-thread.c -o asyn-thread.o -c > ${errfn}.ERR 2>&1 ;
> res=$? ; if [ ${res} -eq 0 ]; then if [ -s ${errfn}.ERR ]; then mv
> ${errfn}.ERR ${errfn}.WRN ; cat ${errfn}.WRN; else rm -f ${errfn}.ERR; fi
> else echo "" >> ${errfn}.ERR ; echo "EXIT CODE: ${res}" >> ${errfn}.ERR ;
> cat ${errfn}.ERR; fi
> In file included from ../curl-7.28.1/setup.h:649,
> from ../curl-7.28.1/asyn-thread.c:23:
> ../curl-7.28.1/setup_once.h:92: error: redefinition of struct timeval
..

That part is protected by

#ifndef HAVE_STRUCT_TIMEVAL

so to me it looks you didn't run the ./configure script before compiling.

-Tor

CONFIDENTIALITY
This e-mail and any attachment contain KONGSBERG information which may be
proprietary, confidential or subject to export regulations, and is only meant
for the intended recipient(s). Any disclosure, copying, distribution or use is
prohibited, if not otherwise explicitly agreed with KONGSBERG. If received in
error, please delete it immediately from your system and notify the sender
properly.

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-12-05