First, thanks to the work so far to all involved.

On Die, 2006-03-14 at 14:59 +1100, Greg Schafer wrote:
> Bryan Kadzban wrote:
> >  I've been running Alexander's tests
> > (http://linuxfromscratch.org/pipermail/lfs-dev/2006-March/056159.html)
> 
> I agree with Alexander that every userspace header should be compilable
> by itself (at least in an ideal world). Note that current LLH fails this
> criteria. Also note there are many kernel headers simply not shipped with
> LLH.

Yes, LLH fails that criteria and it ships with a lot of kernel-only
stuff. Based on Jim's script I've written an extended version which
removes a lot of headers that shouldn't be part of the linux glibc
header set, AFAICT. My script structure is slightly different due to
performance (still very slow as it "seds" alot) and distro reasons.

Using that script on a patched 2.6.16-rc6, I've managed to get every
header compilable by itself (without -ansi but with -Werror) on x86 and
x86_64 system with gcc 4.1 and glibc 2.4.

I'll probably use this for my distro (paldo.org) as soon as possible, so
I'll keep the script up-to-date with the kernel. If there is interest, I
could create tarballs and update them a bit quicker than LLH ;) but I
can't provide anything asm- besides i386 and x86_64 (no real machines
available and no time to do it without them).

TODO:
 * Verify headers with real applications
   Will do a full distro (800 packages) recompilation with these headers
sometime this week and fix headers resp. applications as necessary
 * Check whether the kernel patch has some superfluous include lines
 * Add more __KERNEL__ ifdefs around function declarations and internal
structures and submit patches upstream
 * Check for [us](8|16|32|64) userspace leaks and submit patches
upstream
 * Recheck set of installed headers (add missing kernel-only headers to
remove list, remove accidentally added headers from remove list)
 * Add support for other architectures

Regards,

Jürg

Attachment: linux-glibc-headers-20060314
Description: application/shellscript

Attachment: linux-glibc-headers-test-20060314
Description: application/shellscript

Attachment: linux-2.6.16-rc6-glibc-headers-1.patch.bz2
Description: application/bzip

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to