X-Spam-Check-By: sourceware.org
Message-ID: <465CCA84.9EB8E458@dessent.net>
Date: Tue, 29 May 2007 17:51:16 -0700
From: Brian Dessent <brian@dessent.net>
X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Build problems - unistd.h
References: <ee9b16d00705281855m57914fcag37e88f9a52b47315@mail.gmail.com> 	 <ee9b16d00705291413j579cc046vcd3d8d8517c3f6ef@mail.gmail.com> <ee9b16d00705291712s4b79ba95u66054f4dc66709a5@mail.gmail.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Reply-To: cygwin@cygwin.com
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Scott Peterson wrote:

> Here's the content of the intermediate file dbus-binding-tool-glib.i:

Did you really have to send a 350 KB message to thousands of people? 
Some people consider that a little wasteful when exactly one line of all
of that was relevant.  If you're going to do that at least send it as a
compressed attachment.

Line 108 of unistd.h after preprocessing is:

int __attribute__((__cdecl__)) _pipe (int __fildes[2], 4096, _O_BINARY);

That is obviously wrong, it's not even a valid function prototype any
more, not to mention the underscore and the fact that pipe only takes
one argument.  It should look more like:

$ gcc -E /usr/include/sys/unistd.h | grep pipe
int __attribute__((__cdecl__)) pipe (int __fildes[2] );

So, you'll need to look through all the headers that are included before
that point and find out where this erroneous macro expansion is coming
from.

Brian

--
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/

