Wrong header file taskstats.h

Yann E. MORIN yann.morin.1998@anciens.enib.fr
Tue May 19 12:04:00 GMT 2009


Hello Hichem!
Hello All!

On Tuesday 19 May 2009 10:25:54 Hichem Boussetta wrote:
> getdelays.c:215: error: 'struct taskstats' has no member named
> 'freepages_count'
> getdelays.c:216: error: 'struct taskstats' has no member named
> 'freepages_delay_total'

Those two fields were added between 2.6.26 and 2.6.27.

> When I compared between the taskstats.h of my cross toolchain and that
> of my native toolchain, I saw that effectively in the former the two
> fields "freepages_count" and "freepages_delay_total" are missing (it is
> the same for all crosstool-ng's toolchains). I am wondering if this
> happens only for certain versions of glibc or uclibc or if I am missing
> something.
> Does someone know how to  how to fix this problem ?

Paths and misc options --->
[*] Debug crosstool-NG
[*]   Pause between every steps

And step until the kernel heade'rs are installed. Then check the taskstats.h
file in the sysroot if it gets those fields. Then step past the glibc/uclibc
headers install step, and re-check the taskstats.h in the sysroot.

If the headers installed a bad version; then you'll know who the culprit
is.

If the kernel installed a correct version, but the one after C library
headers is wrong, then you'll know who the culprit is :-)

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +0/33 662376056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| --==< ^_^ >==-- `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
`------------------------------^-------^------------------^--------------------'


--
For unsubscribe information see http://sourceware.org/lists.html#faq



More information about the crossgcc mailing list