Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <033d01c2eb03$d306e970$2000000a@schlepptopp> From: "roland" To: Subject: loff_t (compile problem) Date: Sat, 15 Mar 2003 16:01:56 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Hello Cygwinners, i`m trying to compile enbd package (freshmeat.net/projects/enbd/) on cygwin. The Package consists of a userspace daemon (which should be portable) and of a linux kernel module (which should be not so portable) ;) I have come some steps forward, but since I`m no programmer at all, and since I don`t know much THAT much about all that stuff, I have run into a problem which at this moment seems cygwin specific for me (see make output below). (sorry, if I`m wrong here) file.c: In function `seek': file.c:56: warning: implicit declaration of function `lseek64' file.c:56: `loff_t' undeclared (first use in this function) file.c:56: (Each undeclared identifier is reported only once file.c:56: for each function it appears in.) file.c:56: parse error before "offset" I think loff_t (and off_t...) needs to be defined in headerfiles - but i searched /usr/inluce for that defines/typedefs - there isn`t. Is this Linux specific ? I searched my linux box for files, containing the definition for loff_t - but no success what to do ? regards Roland roland AT schlepptopp /tmp/nbd-2.4.30/nbd $ make gcc -v -g -O2 -Wall -W -Wno-parentheses -Wstrict-prototypes -Wno-unused -o file .o -c ./file.c Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.2/specs Configured with: /netrel/src/gcc-3.2-3/configure --enable-languages=c,c++,f77,ja va --enable-libgcj --enable-threads=posix --with-system-zlib --enable-nls -- with out-included-gettext --enable-interpreter --disable-sjlj-exceptions --disabl e-ve rsion-specific-runtime-libs --enable-shared --build=i686-pc-linux --host=i68 6-pc -cygwin --target=i686-pc-cygwin --enable-haifa --prefix=/usr --exec-prefix=/ usr --sysconfdir=/etc --libdir=/usr/lib --includedir=/nonexistent/include --libe xecd ir=/usr/sbin Thread model: posix gcc version 3.2 20020927 (prerelease) /usr/lib/gcc-lib/i686-pc-cygwin/3.2/cc1.exe -lang-c -v -D__GNUC__=3 -D__GNUC _MI NOR__=2 -D__GNUC_PATCHLEVEL__=0 -D__GXX_ABI_VERSION=102 -D_X86_=1 -D_X86_=1 -Asy stem=winnt -D__OPTIMIZE__ -D__STDC_HOSTED__=1 -Acpu=i386 -Amachine=i386 -Di3 86 - D__i386 -D__i386__ -D__tune_i686__ -D__tune_pentiumpro__ -D__tune_pentium2__ -D_ _tune_pentium3__ -D__stdcall=__attribute__((__stdcall__)) -D__fastcall=__att ribu te__((__fastcall__)) -D__cdecl=__attribute__((__cdecl__)) -D_stdcall=__attri bute __((__stdcall__)) -D_fastcall=__attribute__((__fastcall__)) -D_cdecl=__attri bute __((__cdecl__)) -D__declspec(x)=__attribute__((x)) -D__i386__ -D__i386 -D__C YGWI N32__ -D__CYGWIN__ -Dunix -D__unix__ -D__unix -isystem /usr/lib/gcc-lib/i686-pc- cygwin/3.2/../../../../include/w32api -isystem /usr/lib/gcc-lib/i686-pc-cygwin/3 .2/../../../../i686-pc-cygwin/lib/../../include/w32api ./file.c -quiet -dumpbase file.c -g -O2 -Wall -W -Wno-parentheses -Wstrict-prototypes -Wno-unused -ver sio n -o /cygdrive/c/DOKUME~1/roland/LOKALE~1/Temp/ccaFSaQm.s GNU CPP version 3.2 20020927 (prerelease) (cpplib) (80386, BSD syntax) GNU C version 3.2 20020927 (prerelease) (i686-pc-cygwin) compiled by GNU C version 3.2 20020927 (prerelease). ignoring nonexistent directory "/usr/local/include" ignoring nonexistent directory "/usr/i686-pc-cygwin/include" ignoring duplicate directory "/usr/i686-pc-cygwin/lib/../../include/w32api" #include "..." search starts here: #include <...> search starts here: /usr/include/w32api /usr/lib/gcc-lib/i686-pc-cygwin/3.2/include /usr/include End of search list. file.c: In function `seek': file.c:56: warning: implicit declaration of function `lseek64' file.c:56: `loff_t' undeclared (first use in this function) file.c:56: (Each undeclared identifier is reported only once file.c:56: for each function it appears in.) file.c:56: parse error before "offset" file.c:66: warning: no return statement in function returning non-void file.c: In function `getsize1': file.c:259: warning: comparison between signed and unsigned file.c:261: `loff_t' undeclared (first use in this function) file.c:261: parse error before "off" file.c:263: `off' undeclared (first use in this function) file.c:271: warning: comparison between signed and unsigned file.c:273: warning: missing braces around initializer file.c:273: warning: (near initialization for `stat_buf.st_atim') file.c:273: warning: missing initializer file.c:273: warning: (near initialization for `stat_buf.st_ctim.tv_nsec') file.c:273: warning: missing initializer file.c:273: warning: (near initialization for `stat_buf.st_blksize') file.c:281: warning: comparison between signed and unsigned file.c:284: warning: implicit declaration of function `_IOR' file.c:288: warning: comparison between signed and unsigned file.c:291: warning: implicit declaration of function `_IO' file.c: In function `strgsub': file.c:367: warning: comparison between signed and unsigned file.c: In function `userstatfile': file.c:497: warning: passing arg 2 of `getgroups' from incompatible pointer type file.c: In function `opfile': file.c:1209: warning: comparison between signed and unsigned file.c:1326: warning: comparison between signed and unsigned make: *** [file.o] Error 1 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/