__GLIBC__ #define

NightStrike nightstrike at gmail.com
Mon Feb 19 05:56:30 UTC 2007


Setting it to 1 instead of 2 still causes mcheck() to be processed,
which doesn't work in the i386 root environment.  The only way I found
it to work was by undefining __GLIBC__.

On 2/18/07, Kevin Day <thekevinday at gmail.com> wrote:
> On 2/18/07, NightStrike <nightstrike at gmail.com> wrote:
> > I downloaded the i386 root environment
> > (http://www.uclibc.org/downloads/root_fs_i386.ext2.bz2), and in
> > features.h, __GLIBC__ is set to 2.  This causes issues when compiling
> > g95 (g95.sourceforge.net), as they have things like the following:
> >
> > #ifdef __GLIBC__
> > #  include <mcheck.h>
> > #endif
> >
> > #ifdef __GLIBC__
> >   mcheck();
> > #endif
> >
> > This doesn't work.  Any suggestions?
> > _______________________________________________
> > uClibc mailing list
> > uClibc at uclibc.org
> > http://busybox.net/cgi-bin/mailman/listinfo/uclibc
> >
>
> If it has a config.h file created, add a #define __GLIBC__ 1 inside of it.
> If not, find some sort of central include file add it there.
> As a second to last resort, I believe you can pas -D__GLIBC__=1 (I
> don't remember if that exact syntax is correct off the top of my mind)
> As a last resort, modify your system uClibc headers to use this.
>
> --
> Kevin Day
>



More information about the uClibc mailing list