cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: [PATCH] 64-bit curl_off_t no longer gated to off_t

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 3 Aug 2008 23:34:06 +0200 (CEST)

On Thu, 31 Jul 2008, Yang Tse wrote:

> Finally here's version 2 of the 64bit curl_off_t patch against current CVS.

This patch breaks my build!

Current CVS, built in the source dir, Debian unstable (with curl and libcurl
installed system-side from the Debian repo), and a configure line that looks
like:

./configure --disable-shared --enable-debug --enable-maintainer-mode
--with-ssl --enable-ipv6 --with-libssh2=$HOME/src/libssh2 --enable-ares
--with-gssapi

The (start of the) failure then looks like this:

  gcc -DHAVE_CONFIG_H -I../include -I../include -I../lib -I../lib
-I/home/daniel/src/libssh2/include -I/home/daniel/src/curl/ares -DCURLDEBUG -g
-g -W -Wall -Wwrite-strings -pedantic -Wpointer-arith -Wnested-externs
-Winline -Wmissing-prototypes -Wmissing-declarations -Wundef -Wno-long-long
-Wsign-compare -Wshadow -Wno-multichar -Wfloat-equal -Wno-format-nonliteral
-Wendif-labels -Wstrict-prototypes -Wdeclaration-after-statement -isystem
/home/daniel/src/libssh2/include -isystem /home/daniel/src/curl/ares -MT
file.lo -MD -MP -MF .deps/file.Tpo -c file.c -o file.o
In file included from setup.h:106,
                  from file.c:24:
../include/curl/curlbuild.h:116: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'curl_off_t'
In file included from setup.h:112,
                  from file.c:24:
../include/curl/curlrules.h:80:4: error: #error "CURL_OFF_T definition is
missing!"
In file included from setup.h:112,
                  from file.c:24:
../include/curl/curlrules.h:81: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'Compilation_aborted_CURL_OFF_T_is_missing'
../include/curl/curlrules.h:85:4: error: #error "CURL_FMT_OFF_T definition is
missing!"
../include/curl/curlrules.h:90:4: error: #error "CURL_FMT_OFF_TU definition is
missing!"

-- 
  / daniel.haxx.se
Received on 2008-08-03