This is the mail archive of the newlib@sourceware.org mailing list for the newlib 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: Failure in rebuilding Cygwin-1.5.24-2 with recent newlib


On Jun 16 21:47, Corinna Vinschen wrote:
> On Jun 16 08:38, Brian Dessent wrote:
> > This is just due to __FBSDID not getting #defined to blank properly. 
> > The file includes sys/cdefs.h and newlib's copy contains the required
> > bit (#define __FBSDID(x) /* nothing */) however when building with
> > Cygwin, the Cygwin headers are used and Cygwin's sys/cdefs.h doesn't
> > contain this.  The appropriate fix is either to modify strcasestr.c or
> > to fix Cygwin's sys/cdefs.h.  I think the latter is probably the better
> > choice, since it seems that there is precedent already in newlib for
> > being able to just #include <sys/cdefs.h> followed by use of __FBSDID
> > without having to explicitly undefine it.  Patch attached which fixes
> > the build for me.
> 
> Thanks for the patch.  However, when comparing newlib's and Cygwin's
> sys/cdefs.h file, I'm wondering why Cygwin needs its own version of
> sys/cdefs.h at all.
> 
> Chris, do you know why we maintain our own sys.cdefs.h?  It looks
> like we could just delete it.

...and add the missing __CONCAT definition to newlib's cdefs.h.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat


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