From: Sinitsyn Valentine (Valentine.Sinitsyn@usu.ru)
Date: Sat Apr 05 2003 - 07:55:59 EST
Hi all,
it appears to be unable for me to compile AbiWord 1.1.4 on Windows
using MinGW-2.0.0-3 and MSYS-1.0.8. I've installed additional
libraries (expat, libiconv, libpng and zlib) from CVS tree (all of
them were compiled successfully ) but failed to make libwv (both from
.tar.gz file and CVS tree). The compiler output is quoted below:
-----------------------------------------------------------------------------------------
Found libwv in peer directory
PLEASE verify that VERSION in version.c is correct!!!
make[5]: Entering directory `/d/abiword-1.1.4/wv'
Building on [MINGW32] with [LicensedTrademarks:Off Debug:Off BiDi:LTR Pango:Off XML:expat Pspell:Off Scripting:Off].
winmmap.c:
In file included from winmmap.c:2:
winmmap.h:24: parse error before "off_t"
winmmap.c:26: parse error before "off_t"
winmmap.c: In function `mmap':
winmmap.c:36: `protection' undeclared (first use in this function)
winmmap.c:36: (Each undeclared identifier is reported only once
winmmap.c:36: for each function it appears in.)
winmmap.c:41: warning: implicit declaration of function `_get_osfhandle'
winmmap.c:41: `file' undeclared (first use in this function)
winmmap.c:42: `length' undeclared (first use in this function)
winmmap.c:72: `offset' undeclared (first use in this function)
make[5]: *** [/d/abiword-1.1.4/abi/src/MINGW32_1.0.8_i386_OBJ/obj/wv/winmmap.o] Error 1
make[5]: Leaving directory `/d/abiword-1.1.4/wv'
make[4]: *** [_LIBWV_] Error 2
make[4]: Leaving directory `/d/abiword-1.1.4/abi/src/config/require/win'
make[3]: *** [build] Error 2
make[3]: Leaving directory `/d/abiword-1.1.4/abi/src/config/require'
make[2]: *** [build] Error 2
make[2]: Leaving directory `/d/abiword-1.1.4/abi/src/config'
make[1]: *** [build] Error 2
make[1]: Leaving directory `/d/abiword-1.1.4/abi/src'
make: *** [compile] Error 2
-----------------------------------------------------------------------------------------
It seems that the problem occurs because something defines
__STRICT_ANSI__ macro, but in <sys/types.h> one can find:
#ifndef __STRICT_ANSI__
#ifndef _OFF_T_
#define _OFF_T_
typedef long _off_t;
#ifndef _NO_OLDNAMES
typedef _off_t off_t;
#endif
#endif /* Not _OFF_T_ */
That's why gcc fails on winmmap.h:24 ("void *mmap(char
*,size_t,int,int,int,off_t);").
How should I handle this?
Regards,
Valentine.
This archive was generated by hypermail 2.1.4 : Sat Apr 05 2003 - 08:05:29 EST