|
From: <phi...@ve...> - 2003-02-17 20:49:08
|
I'm trying to build gsm-1.0-pl10 under cygwin with MinGW's executables = (for example, "which gcc" shows that the MinGW gcc is being found; the = make I'm using is apparently from MSYS). I get a bunch of errors = starting with several that look like: src/toast.c: In function `update_mode': src/toast.c:320: invalid use of undefined type `struct stat' (The complete error chain is below, but I'm going on the principle of = fixing cascading errors by trying to fix the first manifestation of = trouble.) Now, after doing a few searches i think this issue is probably related: = http://www.winehq.com/hypermail/wine-patches/2003/01/0197.html . Note = the recent date and the comment "It's implemented similarly in mingw as = well." But I can't tell whether this issue was ever addressed in = MinGW. Does this issue look familiar to anyone? Can someone point me in the = right direction? Thanks in advance, Philip (More output below) VERSION OF EXECUTABLES All MinGW stuff is dated 2002-09-07 on my system. $ gcc --version gcc.exe (GCC) 3.2 (mingw special 20020817-1) $ make --version GNU Make version 3.79.1, by Richard Stallman and Roland McGrath. Built for i686-pc-msys $ ld --version GNU ld version 2.13 WHAT'S BEING BUILT I downloaded gsm from a link on gnophone.com, although that site seems = to be down at the moment, and attempted to build it with make. FWIW = compilation had previously gotten a lot of warnings, which seem to be = composed entirely of "#include_next is a GCC extension" and "ISO C89 = does not support `long long'". I also had to hack a = -L"c:\dev\MinGW\include" into the linker flags to get it to compile. = Because I had also fixed another linker problem to get to this point, = and because only get the warnings the first time i build after each = "make clean", I assume the problem i'm having is at the linker step, = although the messages seem more relevant to compilation (to me at = least). ERROR OUTPUT src/toast.c: In function `update_mode': src/toast.c:320: invalid use of undefined type `struct stat' src/toast.c:323: invalid use of undefined type `struct stat' src/toast.c: In function `update_own': src/toast.c:341: invalid use of undefined type `struct stat' src/toast.c:343: invalid use of undefined type `struct stat' src/toast.c:343: invalid use of undefined type `struct stat' src/toast.c: In function `update_times': src/toast.c:353: invalid use of undefined type `struct stat' src/toast.c:386: invalid use of undefined type `struct stat' src/toast.c:387: invalid use of undefined type `struct stat' src/toast.c: In function `okay_as_input': src/toast.c:411: dereferencing pointer to incomplete type src/toast.c:411: `S_IFREG' undeclared (first use in this function) src/toast.c:411: (Each undeclared identifier is reported only once src/toast.c:411: for each function it appears in.) src/toast.c:417: dereferencing pointer to incomplete type src/toast.c:420: dereferencing pointer to incomplete type src/toast.c:420: dereferencing pointer to incomplete type src/toast.c: In function `open_input': src/toast.c:462: dereferencing pointer to incomplete type src/toast.c: In function `open_output': src/toast.c:509: `O_WRONLY' undeclared (first use in this function) src/toast.c:509: `O_CREAT' undeclared (first use in this function) src/toast.c:509: `O_EXCL' undeclared (first use in this function) src/toast.c:510: warning: assignment makes pointer from integer without = a cast c:/dev/MinGW/include/stdlib.h: At top level: src/toast.c:24: storage size of `instat' isn't known make: *** [src/toast.o] Error 1 |