OK. I must be missing something here, so please bear with me.
I downloaded the kernel version required, then tried to install it (first with -i, then with -U), but I get the following message:
[root@localhost root]# rpm -Uv kernel-2.4.20-19.9.i686.rpm
Preparing packages for installation...
package kernel-2.4.20-19.9 is already installed
So, I tried rebuilding the source package again. Here is the complete output:
[root@localhost root]# rpmbuild --rebuild hsflinmodem-5.03.27lnxtbeta03042700-1.src.rpm
Installing hsflinmodem-5.03.27lnxtbeta03042700-1.src.rpm
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.52784
+ umask 022
+ cd /usr/src/redhat/BUILD
+ LANG=C
+ export LANG
+ cd /usr/src/redhat/BUILD
+ rm -rf hsflinmodem-5.03.27lnxtbeta03042700
+ /usr/bin/gzip -dc /usr/src/redhat/SOURCES/hsflinmodem-5.03.27lnxtbeta03042700.tar.gz
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd hsflinmodem-5.03.27lnxtbeta03042700
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chown -Rhf root .
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chgrp -Rhf root .
+ /bin/chmod -Rf a+rX,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.99966
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd hsflinmodem-5.03.27lnxtbeta03042700
+ LANG=C
+ export LANG
+ make --quiet --no-print-directory all
+ cp /usr/src/redhat/SOURCES/100498D_RM_HxF_Released.pdf .
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.34138
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd hsflinmodem-5.03.27lnxtbeta03042700
+ LANG=C
+ export LANG
+ rm -rf /var/tmp/hsflinmodem-5.03.27lnxtbeta03042700-root
+ make --quiet --no-print-directory ROOT=/var/tmp/hsflinmodem-5.03.27lnxtbeta03042700-root install
common.mak:11: *** Is the kernel-source package installed? KERNELSRC does not point to a proper directory (/lib/modules/2.4.20-19.9/build). Stop.
make: *** [install] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.34138 (%install)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.34138 (%install)
Does RPM unpackage the files to a directory and THEN performs the compile? If so, do I alter the makefile in that directory?
Still not getting it (sorry).
Thanks for your help.