On Tue, Dec 23, 2003 at 05:43:20PM +0530, Rajkumar S wrote: > in my testing installation, libc6-dev depends on linux-kernel-headers > 2.5.999-test7-bk-9, but one of the programs I > compile require 2.4 headers. If I remove linux-kernel-headers, libc6-dev > also gets removed. I have installed kernel-headers-2.4.22-1-386, but it > seems by default the 2.5 version gets used. So how can I compile my > programs using the 2.4 headres under Sarge?
Your programs should never touch anything in /usr/include/linux or /usr/include/asm, so the version of linux-kernel-headers should, assuming they're correct, be irrelevant to them. linux-kernel-headers is private to glibc. If they need kernel constants, they should supply their own header files containing them. If modifying them to do that is too difficult, change their Makefile to pass an option like -I/usr/src/kernel-headers-2.4.22-1-386/include (whatever's appropriate for the kernel-headers package you want) to the compiler. Cheers, -- Colin Watson [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]