|
|
cURL Mailing List Monthly Index Single Mail
curl-tracker mailing list Archives
[ curl-Bugs-1677491 ] compilation outside distribution directory failed.
From: SourceForge.net <noreply_at_sourceforge.net>
Date: Wed, 14 Mar 2007 17:01:02 -0700
Bugs item #1677491, was opened at 2007-03-09 19:00
Please note that this message will contain a full copy of the comment thread,
Initial Comment:
Problem: I was trying to compile curl package for mingw32 platform on a linux system. configure command I used is something like:
In file included from ../../../../curl68/lib/setup.h:375,
The same probleme occurs when not using cross compilation. After investigation I have figured what the error is: the wrong config.h is include. It is included by the setup.h in either lib/ or src/ directory depending what is being compiled. When compiling in the distrib directory lib/setup.h(#include "config.h") will always include lib/config.h (resp. src). In my case as config.h files are configured their locations is not in the same directory that setup.h but ${topdir}/src/config.h and ${topdir}/lib/config.h. In this configuration the config.h file actually include by setup.h is the one from the first -I ... As a simple workaround you should change the name of the configuration in both directory. Notice that I am not an expert of autoconf but I guess your way of using the config.h is not totally recommended.
----------------------------------------------------------------------
>Comment By: Daniel Stenberg (bagder)
Message:
I just tried 7.16.1 now too, and I don't get those problems. I used this
env LDFLAGS=-L/home/dast/src/win32 CFLAGS="-I/home/dast/src/win32/include
No errors, no warnings...
Using i586-mingw32msvc-gcc (GCC) 3.4.5 (mingw special) on Debian
----------------------------------------------------------------------
Comment By: benjamin gerard (benjihan)
Message:
I've just tried with curl-7.16.1 (sorry I thought I had the latest
Compiling *IN* distrib directory:
In file included from main.c:24:
Compiling *OUTSIDE* distrib directory:
In file included from ../../../../curl68/src/main.c:24:
It seems lib/config.h still be included by src/setup.h. That is not the
I have just tried another way to fix it which seems to work pretty well:
In file included from ../../../../curl68/src/main.c:24:
Just one more thing outside this subject (i'm just too lazy to start a new
----------------------------------------------------------------------
Comment By: Daniel Stenberg (bagder)
Message:
But this works fine in later versions, right?
----------------------------------------------------------------------
You can respond by visiting:
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info