cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

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: Fri, 09 Mar 2007 13:22:53 -0800

Bugs item #1677491, was opened at 2007-03-09 19:00
Message generated for change (Comment added) made by bagder
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1677491&group_id=976

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: compile or build problem
Group: None
Status: Open
>Resolution: Works For Me
Priority: 5
Private: No
Submitted By: benjamin gerard (benjihan)
Assigned to: Daniel Stenberg (bagder)
Summary: compilation outside distribution directory failed.

Initial Comment:
cURL package version 7.15.5

Problem: I was trying to compile curl package for mingw32 platform on a linux system. configure command I used is something like:
>../curl-7.15.5/configure --host=i386-pc-mingw32
>make
>

In file included from ../../../../curl68/lib/setup.h:375,
                 from ../../../../curl68/lib/strtoofft.h:31,
                 from ../../../../curl68/lib/curlx.h:41,
                 from ../../../../curl68/src/main.c:105:
../../../../curl68/lib/setup_once.h:82: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Missing_definition_of_macro_sread’

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)
Date: 2007-03-09 22:22

Message:
Logged In: YES
user_id=1110
Originator: NO

But this works fine in later versions, right?

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1677491&group_id=976
Received on 2007-03-09

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET