On Thu, 23 Jan 2003, Brian Ipsen wrote: > Hi, > > > > One quick question (whcih actually is giving me a lot of trouble > > > building > > > some other software). My RH 7.2 kernel is 2.4.18-19 - but the latest > > > kernel-headers rpm package available is 2.4.9-34 - how come there is > > > no update to 2.4.18-19 of this package too ?? > > > > The kernel headers as necessary for building kernel modules, for > > instance, can be found in the kernel-source binary rpm for your > > kernel version. On the other hand, the headers in the kernel-headers > > package (the glibc-kernheaders package for newer versions of Red Hat > > Linux) are for compiling glibc and other apps/libs which depend on > > the kernel API. > > Okay, but running with kernel 2.4.18-19.7.xsmp and having installed > kernel-headers-2.4.9-34 > on a 7.2 box - gives me, when compiling the ISC ipmi driver from Intel, > an error-message when I try to do an insmod: > > insmod ./imb > ./imb: kernel-module version mismatch > ./imb was compiled for kernel version 2.4.9-34smp > while this kernel is version 2.4.18-19.7.xsmp. > > The question is then where the 2.4.9-34smp originates from ? > Try # rpm -q --qf="%{SOURCERPM}\n" kernel You can list all the available tags with --querytags. Apparenty kernel-2.4.9-34.src.rpm, but need to have kernel-source-2.4.9-34.%{arch}.rpm installed. The %{arch} is the target architecture kernel was built. So you first install kernel-source package, then usually you enter to created /usr/src/kernel-%{version}-%{release} directory, next copy the /boot/config-%{version}-%{release} to /usr/src/kernel-%{version}-%{release}/.config and run "make dep". After that you are able to start building the modules, and this is all shows exactly the unnecessary complexity you hit yourself too -- not very uncommon nowadays. I'm not supprised you couldn't follow the conversation we had on this very issue ... :/ HTH, :-) riku -- [ This .signature intentionally left blank ] _______________________________________________ Redhat-devel-list mailing list Redhat-devel-list@redhat.com https://listman.redhat.com/mailman/listinfo/redhat-devel-list