readahead-list-0.20050425.1452 failed with error attached patch solves the problem...
Created attachment 58960 [details, diff] readahead-list-0.20050425.1452.patch
Created attachment 58961 [details, diff] readahead-list-0.20050425.1452.ebuild.patch
By the way in order to compile readahead with this patch, #92713 is neccesary. So maybe depend this on #92713 is a good idea :)
update your kernel headers!
Error says assert is undeclared, this is not about linux-headers. And if you also look #92713 you can easily see i updated before... then mv -f ".deps/filelist-order.Tpo" ".deps/filelist-order.Po"; else rm -f ".deps/filelist-order.Tpo"; exit 1; fi if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -march=pentium4 -O3 -pipe -mfpmath=sse -msse2 -mmmx -fomit-frame-pointer -fstack-protector -Wall -W -MT readahead-list.o -MD -MP -MF ".deps/readahead-list.Tpo" -c -o readahead-list.o readahead-list.c; \ then mv -f ".deps/readahead-list.Tpo" ".deps/readahead-list.Po"; else rm -f ".deps/readahead-list.Tpo"; exit 1; fi readahead-list.c:37: warning: `program_header' defined but not used readahead-list.c:38: warning: `program_id' defined but not used i686-pc-linux-gnu-gcc -march=pentium4 -O3 -pipe -mfpmath=sse -msse2 -mmmx -fomit-frame-pointer -fstack-protector -Wall -W -o readahead-list readahead-list.o filelist-order.cxx: In function `void process_fieldorder(char*)': filelist-order.cxx:402: error: `assert' undeclared (first use this function) filelist-order.cxx:402: error: (Each undeclared identifier is reported only once for each function it appears in.) /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130/include/g++-v3/bits/locale_facets.h: At top level: filelist-order.cxx:55: warning: `char*program_header' defined but not used filelist-order.cxx:56: warning: `char*program_id' defined but not used make[2]: *** [filelist-order.o] Hata 1 make[2]: Leaving directory `/var/tmp/portage/readahead-list-0.20050425.1452/work/readahead-list-0.20050425.1452/src' make[1]: *** [all-recursive] Hata 1 make[1]: Leaving directory `/var/tmp/portage/readahead-list-0.20050425.1452/work/readahead-list-0.20050425.1452' make: *** [all] Hata 2
Created attachment 59039 [details, diff] readahead-list-0.20050425.1452.patch
fixed in my upstream sources now.