X-Spam-Check-By: sourceware.org From: "Mark Moriarty" To: References: <5E558D6299EFA742AF296ACC8CD627563DC659 AT E2K3MAIL DOT servizi DOT prv> Subject: Problem with unistd.h Date: Tue, 17 Apr 2007 07:13:34 -0400 Message-ID: <003801c780e1$71284550$3202a8c0@Mark> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <5E558D6299EFA742AF296ACC8CD627563DC659@E2K3MAIL.servizi.prv> X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 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 ), 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/