Tugger the SLUGger!SLUG Mailing List Archives

Re: [SLUG] Debian & .h files / Kernel building


Craige McWhirter wrote:
> 
> I'm trying to work out what Debian package I need to install to
> supply me with files such as sys/types.h, fcntl.h etc, related
> to making a kernel. These files usually live in /usr/include.
> I've got them on one Debian system but not another. One was a
> clean Potato install, the other an upgrade from Slink to Potato.

Ah the replies to this will provide some info between how
Debian and RH packages can answer this question.
 
> I've not been able to figure out which package supplies me with
> those files. If anyone can shed some light on that for me, or even
> better let me know how I can use dpkg tools to find out which package
> provided a particular file, that'd be great.

$ locate fcntl.h
/usr/include/fcntl.h
/usr/include/sys/fcntl.h
/usr/include/bits/fcntl.h
/usr/src/linux-2.2.14/include/asm-i386/fcntl.h
/usr/src/linux-2.2.14/include/linux/fcntl.h

Using RedHat rpm....

$ rpm -q -f /usr/include/fcntl.h
	glibc-devel-2.1.1-6
and the same for the file fcntl.h in /usr/include/sys and
bits...

$ rpm -q -f /usr/src/linux-2.2.14/include/asm-i386/fcntl.h
	kernel-headers-2.2.14-5.0
and for the file fcntl.h in the source tree.

Mike
-- 
--------------------------------------------------------------------
Michael Lake
University of Technology, Sydney
Email: mailto:Mike.Lake@xxxxxxxxxx Ph: 02 9514 1724 Fx: 02
9514 1628 
URL: http://www.science.uts.edu.au/~michael-lake/
Linux enthusiast, active caver and interested in anything
technical.
--------------------------------------------------------------------