cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: RedHat Linux libcurl 7.28.1 gcc compiler error log file

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 6 Dec 2012 11:39:09 +0100 (CET)

On Wed, 5 Dec 2012, Frank Chang wrote:

> make[1]: Entering directory `/net/beige/export/marc/DQT/EmailLib/lirh5g_deb'

How come it enters a directory named like this when it is supposed to be
called "[...]/curl-7-28.1/lib/" ? What exactly have you done with the source
code setup?

> from ../curl-7.28.1/asyn-thread.c:23:
> ../curl-7.28.1/setup_once.h:92: error: redefinition of struct timeval

Again with the funny source code dir hiearchy. Now there's no "lib" directory
name, just "curl-7.28.1/asyn-thread.c"...

And as Tor pointed out, that code checks for HAVE_STRUCT_TIMEVAL and you
showed us that your config.h defines it:

   /* Define to 1 if you have the timeval struct. */
   #define HAVE_STRUCT_TIMEVAL 1

... which indicates that you don't build with the proper curl_config.h file
around, which possibly is because you have done a fair amount of manual
fiddling that broke it.

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