newlib master vs current newlib snapshot
joel at rtems.org
Tue Mar 22 18:06:38 UTC 2016
On Tue, Mar 22, 2016 at 12:50 PM, Gedare Bloom <gedare at rtems.org> wrote:
That's what I am expecting. I will not include my fix in the warning patch
Better to be a warning on new tools for a while than a hard failure. :(
> On Tue, Mar 22, 2016 at 1:43 PM, Joel Sherrill <joel at rtems.org> wrote:
> > Hi
> > When compiling at least main_date.c, there are no issues when compiled
> > when the current toolset. However, the newlib master reworks the
> > feature flags.
> > To fix a warning for strptime(), I had to define _XOPEN_SOURCE which
> > in turn disabled the BSD timebin. So I had to add _BSD_SOURCE. With
> > these in place, the file compiles with the newlib master but not the
> > snapshot.
> > #define _XOPEN_SOURCE
> > #define _BSD_SOURCE
> > As a hack, I also added this
> > #define __BSD_VISIBLE 1
> > and it will compile against the current tools and the master but the
> > "VISIBLE"
> > flags are not supposed to be defined
> > Any suggestions on how to address this cleanly or are we looking at
> > a tool hiccup on the next newlib change?
> > --joel
> > _______________________________________________
> > devel mailing list
> > devel at rtems.org
> > http://lists.rtems.org/mailman/listinfo/devel
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the devel