[oe] Strange header file error

Khem Raj raj.khem at gmail.com
Tue Jul 15 15:22:59 UTC 2008


On Tue, 2008-07-15 at 10:06 -0500, E Robertson wrote:

> > Its not clear from your email what you might be facing. You can
> > preprocess your source file with -E and see whats getting included
> >
> > what happens when you use  -D_GNU_SOURCE ?
> 
> I've always used -D_GNU_SOURCE to get around the problem but "why?" is
> the question I'm trying to answer.

These are Non Posix noticed (_NP) ? thats why you need _GNU_SOURCE which
tells compiler that you want this code.

> Clearly USE_GNU is defined so the only way I can try to determine
> problem is to dig deeper.

Can you formulate the problem once again

> I must point out however that if I use I define _GNU_SOURCE just
> before the pthread.h header file is included
> I get the same result (as oppose to -D_GNU_SOURCE in the cc path).

having this define on GCC commandline is correct thing to do.
> 
> I tried the -E option and it appears that all the necessary files are
> included. I don't see anything unusual.

Khem





More information about the Openembedded-devel mailing list