LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-11-2003, 07:14 PM   #1
Streams
Member
 
Registered: Jun 2002
Location: NewZealand
Distribution: Slackware 9.1
Posts: 146

Rep: Reputation: 15
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.
 
Old 04-11-2003, 07:34 PM   #2
pablob
Member
 
Registered: Apr 2003
Location: Madrid
Distribution: RHEL, Kubuntu, Solaris, TRU64
Posts: 382

Rep: Reputation: 31
try with non RedHat sources (plain .tar.gz packages).
Submit errors.
 
Old 04-11-2003, 08:33 PM   #3
Streams
Member
 
Registered: Jun 2002
Location: NewZealand
Distribution: Slackware 9.1
Posts: 146

Original Poster
Rep: Reputation: 15
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]
 
Old 04-12-2003, 07:17 AM   #4
pablob
Member
 
Registered: Apr 2003
Location: Madrid
Distribution: RHEL, Kubuntu, Solaris, TRU64
Posts: 382

Rep: Reputation: 31
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel 2.4 in Zipslack (Waring: unable to open an initial console | Kernel Panic...) kurtamos Linux - General 2 05-10-2006 01:58 PM
Kernel-Patch Debian Logo 2.6.2 not correctly working for custom kernel 2.6.11 smp deepclutch Debian 3 06-27-2005 04:59 AM
kernel panic: try passing init= option to kernel...installation with Red Hat 9 kergen Linux - Hardware 1 09-30-2004 04:28 AM
Unable to build NVIDIA kernel module / determin kernel version Night Ink Fedora 2 05-31-2004 05:54 PM
Kernel 2.4.23 compile causes kernel panics on ATA RAID-1 (mirror) array Raptor Ramjet Slackware 3 12-18-2003 02:40 PM


All times are GMT -5. The time now is 06:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration