LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Kernel is to new, help. (https://www.linuxquestions.org/questions/linux-software-2/kernel-is-to-new-help-54631/)

Streams 04-11-2003 06:14 PM

Kernel is to new, help.
 
I have just upgraded to RH 9.0, and I am trying to get my winmodem to work with the drivers here http://www.mbsi.ca/cnxtlindrv/hcf/downloads.html I have had this modem working before in RH 7.1, but there is no RPM for my Kernel 2.4.20-8. So I want to use the source.

i downloaded the source and tried rpmbuild --rebuild filename.src.rpm but it ended with errors.

What can I do to get this to work?

Thanks.

pablob 04-11-2003 06:34 PM

try with non RedHat sources (plain .tar.gz packages).
Submit errors.

Streams 04-11-2003 07:33 PM

Thanks for the reply, here is what happened when i used the tar.gz;

Code:

[root@localhost hcfpcimodem-0.99mbsibeta02123100]# make install
make[1]: Entering directory `/root/Desktop/hcfpcimodem-0.99mbsibeta02123100/inf'
install -m 644 hcf_linux.cty hcfv90_lan_linux.inf hcfv90_linux.inf hcfv92_linux.inf hcfv92_riptide_linux.inf /etc/hcfpci/inf
make[1]: Leaving directory `/root/Desktop/hcfpcimodem-0.99mbsibeta02123100/inf'
make[1]: Entering directory `/root/Desktop/hcfpcimodem-0.99mbsibeta02123100/scripts'
sed \
-e 's!@PREFIX@!/usr!g' \
-e 's!@HCFTARGET@!hcfpci!g' \
-e 's!@HCFSERDEV@!HCF!g' \
-e 's!@HCFETCDIR@!/etc/hcfpci!g' \
-e 's!@HCFLIBDIR@!/usr/lib/hcfpci!g' \
-e 's!@HCFINFDIR@!/etc/hcfpci/inf!g' \
-e 's!@HCFSERIALMINOR@!64!g' \
-e 's!@HCFINF_FILE@!/etc/hcfpci/current.inf!g' \
-e 's!@HCFCTY_FILE@!/etc/hcfpci/current.cty!g' \
-e 's!@HCFLINUXVERSION@!0.99mbsibeta02123100!g' \
< hcfconfig.in > hcfpciconfig
chmod 755 hcfpciconfig
sed \
-e 's!@HCFTARGET@!hcfpci!g' \
< hcfstop.in > hcfpcistop
chmod 755 hcfpcistop
install -m 755 hcfpciconfig hcfpcistop /usr/sbin
make[1]: Leaving directory `/root/Desktop/hcfpcimodem-0.99mbsibeta02123100/scripts'
make[1]: Entering directory `/root/Desktop/hcfpcimodem-0.99mbsibeta02123100/modules'
common.mak:11: *** Is the kernel-source package installed? KERNELSRC does not point to a proper directory (/lib/modules/2.4.20-8/build).  Stop.
make[1]: Leaving directory `/root/Desktop/hcfpcimodem-0.99mbsibeta02123100/modules'
make: *** [install] Error 2
[root@localhost hcfpcimodem-0.99mbsibeta02123100]


pablob 04-12-2003 06:17 AM

Well, keep cool. Very simple error:

<<Is the kernel-source package installed? KERNELSRC does not point to a proper directory (/lib/modules/2.4.20-8/build). Stop.>>

The installation process says that it needs the kernel sources, or at least the modules directory for the version of the kernel.

Is the a directory named /lib/modules/2.4.20-8/ ?
What's inside /lib/modules/ ?

The theory:
If you are compiling a module, you might need the kernel sources (keep in mind that a module is just an external piece of the kernel)
and you need a directory for installing the modules after compilation.)

So, get the kernel sources for 2.4.20-8; that "-8" sure means it is a kernel provided by your distribution. Otherwise it would be just 2.4.20.
Check /lib/modules.

Keep in mind that by now the problem is not with the compile of your module itself, but with something you still need for compiling it.


All times are GMT -5. The time now is 07:46 PM.