Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#5306 - glibc lacks features because kernel-headers are too old.

Attached to Project: Arch Linux
Opened by Thomas Bächler (brain0) - Monday, 28 August 2006, 16:44 GMT
Last edited by Tobias Powalowski (tpowa) - Monday, 28 August 2006, 16:46 GMT
Task Type Bug Report
Category Packages: Current
Status Closed
Assigned To Jan de Groot (JGC)
Architecture not specified
Severity Medium
Priority Normal
Reported Version 0.7.2 Gimmick
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Arch's glibc package lacks some system calls. I discovered that unshare (whatever that does) and inotify_* are not implemented. This results in compiler messages like this:

[thomas@architect inotify_test]$ gcc -Wall -o test test.c
/tmp/ccpa1EsA.o: In function `main':
test.c:(.text+0x61): warning: warning: inotify_add_watch is not implemented and will always fail
test.c:(.text+0x12): warning: warning: inotify_init is not implemented and will always fail
test.c:(.text+0xa7): warning: warning: inotify_rm_watch is not implemented and will always fail

and errors like this:

[thomas@architect inotify_test]$ ./test
inotify_init(): Function not implemented

The problem is that kernel-headers is too old and lacks some system calls that are present in recent kernels. I attached a patch that applies to kernel-headers (apply this patch with -Np1, not -Np0 like the others) and adds all system calls that are have been added since 2.6.12, extracted from the 2.6.17 kernel source.

If you rebuild the kernel-headers package with this patch and then rebuild the glibc package, the missing system calls are working.
This task depends upon

Closed by  Jan de Groot (JGC)
Wednesday, 20 September 2006, 16:42 GMT
Reason for closing:  Implemented
Additional comments about closing:  Updated to 2.6.18 kernelheaders. Will move it into current when kernel 2.6.18 moves also.
Comment by Jan de Groot (JGC) - Monday, 28 August 2006, 17:37 GMT
I won't add these, since kernel 2.6.18 is around the corner, which provides a target in the Makefiles to install sanitized userspace headers. Once kernel 2.6.18 is final, I'll use these headers as kernel-headers and rebuild our toolchain against it (binutils is outdated too and I guess gcc could use some new snapshot from the 4.1 branch too).
Comment by Thomas Bächler (brain0) - Monday, 28 August 2006, 18:00 GMT
I heard about that target, I'm glad it made its way into vanilla now. Thanks for your effort, I am happy that we will see the updated toolchain soon.
Comment by Thomas Bächler (brain0) - Monday, 28 August 2006, 22:36 GMT
Just FYI, I just compiled a glibc package with the sanitized headers from 2.6.18-rc5 (make headers_install) and it looks fine right now, I only installed it in a test chroot though. At least the build worked without problems.

Loading...