curl-library
Re: compilation error of libcurl 7.21.7 with mingw-w64 (i686, gcc 4.7)
Date: Thu, 8 Sep 2011 18:20:06 +0200
Hey
On Thu, Sep 8, 2011 at 1:36 PM, Guenter <lists_at_gknw.net> wrote:
> Hi Vincent,
> Am 08.09.2011 08:50, schrieb Vincent Torri:
>
> I tried to compile libcurl 7.21.7 with mingw-w64 (i686, mingw, gcc 4.7)
>> on Windows and I get that error:
>>
>>
>> ../lib/setup.h:317:0: warning: "lseek" redefined [enabled by default]
>> c:\mingw_pkg\mingw-w32\bin\../**lib/gcc/i686-w64-mingw32/4.7.**
>> 0/../../../../i686-w64-**mingw32/include/io.h:336:0:
>> note: this is the location of the previous definition
>>
> hmm, I dont see this one though can see lseek defined in io.h at line 450
> (I'm using an older version 4.5.2 and 64-bit native), but the whole block is
> protected with '#ifdef _UWIN' ...
>
> main.c:467:12: error: static declaration of 'ftruncate64' follows
>> non-static declaration
>> c:\mingw_pkg\mingw-w32\bin\../**lib/gcc/i686-w64-mingw32/4.7.**
>> 0/../../../../i686-w64-**mingw32/include/unistd.h:30:5:
>> note: previous declaration of 'ftruncate64' was here
>> main.c:476:0: warning: "ftruncate" redefined [enabled by default]
>> c:\mingw_pkg\mingw-w32\bin\../**lib/gcc/i686-w64-mingw32/4.7.**
>> 0/../../../../i686-w64-**mingw32/include/unistd.h:56:0:
>> note: this is the location of the previous definition
>> make[3]: *** [main.o] Error 1
>>
>>
>> Maybe a check in configure.ac <http://configure.ac> should be added to
>>
>> check the availability of ftruncate64() and guard the definition of
>> ftruncate64 correctly.
>>
> that wouldnt cover builds with static makefiles; I fixed it this way:
>
> https://github.com/bagder/curl/commit/443ab77e1fefcaa8bdcd94df79617b43c024248f
>
Thanks.
Vincent
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-09-08