Mail Archives: cygwin/2007/04/18/11:51:27
Apologies in advance if this is the wrong ML -- I've poked about a fair
amount on the Web, couldn't seem to find a match to this question.
I'm running Cygwin on WinXP, current packages. I have autoconf 2.61, gcc
and g++ 3.4.4-3, mingw-runtime 3.12-4.
I can see that C:\cygwin\usr\i686-pc-mingw32\include points back to
C:\cygwin\usr\include\mingw
When autoconf is run it detects unistd.h, then in later tests that use it
(have an #include <unistd.h>), the tests consistently error out:
In file included from conftest.c:56:
/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../i686-pc-mingw32/include/unist
d.h:37: error: parse error before "off_t"
/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../i686-pc-mingw32/include/unist
d.h:38: error: parse error before "off_t"
/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../i686-pc-mingw32/include/unist
d.h: In function `ftruncate':
/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../i686-pc-mingw32/include/unist
d.h:40: error: `__fd' undeclared (first use in this function)
/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../i686-pc-mingw32/include/unist
d.h:40: error: (Each undeclared identifier is reported only once
/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../i686-pc-mingw32/include/unist
d.h:40: error: for each function it appears in.)
/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../i686-pc-mingw32/include/unist
d.h:40: error: `__length' undeclared (first use in this function)
The unistd.h contents, lines 37 - 41, are:
int ftruncate(int, off_t);
__CRT_INLINE int ftruncate(int __fd, off_t __length)
{
return _chsize (__fd, __length);
}
Has anyone run into this? Suggestions? I've tried many reinstalls of the
Cygwin packages, includeing full kill-and-fill, using different sites, and
keep running into this problem.
Thank you.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
- Raw text -