This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Build problems - unistd.h


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]