delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/04/18/11:51:27

X-Spam-Check-By: sourceware.org
From: "Mark Moriarty" <mfmori AT hotmail DOT com>
To: <cygwin AT cygwin DOT com>
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
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
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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 <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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019