LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 06-04-2006, 01:48 AM   #1
achtung_linux
Member
 
Registered: May 2006
Posts: 50

Rep: Reputation: 15
Instaling FC5 kernel source, couple of error messages


Hi,
On my Fedora 5 machine I need to install an application that requires kernel source code. After downloading kernel source from Fedora's website (http://download.fedora.redhat.com/pu.../source/SRPMS/) the RPM package was prepared for installation:
# rpm -ivh kernel-2.6.15-1.2054_FC5.src.rpm
after which I got the following
warning: kernel-2.6.15-1.2054__FC5.src.rpm: Header V3 DSA signature: NOKEY, keyID 4f2a6fd2
After ignoring it and continuing with installation with:
#rpmbuiuld -bp --target=noarch/usr/src/redhat/SPECS/kernel-2.6.spec
I got this message:
rpmbuild: no spec files given for build
I really need this app installed hence I need kernel source 2.6 installed too. How to go about it and where did it all went wrong?
 
Old 06-04-2006, 04:20 AM   #2
avivg
LQ Newbie
 
Registered: Dec 2004
Posts: 7

Rep: Reputation: 0
What you need is in :
(pub/fedora/linux/core/5/i386/os/repodata/repoview/kernel-devel-0-2.6.15-1.2054_FC5.html)

The story is thet when kernel source rpms are built, they generate a subpackage (called "devel" in FC case) that contains all you need to build kernel modules.
 
Old 06-04-2006, 11:22 AM   #3
achtung_linux
Member
 
Registered: May 2006
Posts: 50

Original Poster
Rep: Reputation: 15
After downloading the .i586 package from the address above mentioned and rpm -ivh it:
#rpm -ivh kernel-devel-2.6.15-1.2054_FC5.i586.rpm
I get the same warning about Header V3 and when trying to build get the same message about spec files not being found
 
Old 06-04-2006, 02:09 PM   #4
avivg
LQ Newbie
 
Registered: Dec 2004
Posts: 7

Rep: Reputation: 0
The V3 stuff is harmless. Regarding the failure to build: what exactly are you trying to build? You don't have to build the kernel src rpm again... so whats the comment about missing spec file?

Last edited by avivg; 06-04-2006 at 02:11 PM.
 
Old 06-04-2006, 02:19 PM   #5
achtung_linux
Member
 
Registered: May 2006
Posts: 50

Original Poster
Rep: Reputation: 15
I've got the same message as I mentioned in the first post:
#rpmbuild: no spec files given for build.
When trying to "make" the application that needs presence of kernel source, it reports:
"You do not appear to have the sources for the 2.6.15-1.2054_FC5 kernel installed"
which motivated me to get into this whole kernel source thing...
 
Old 06-04-2006, 04:03 PM   #6
avivg
LQ Newbie
 
Registered: Dec 2004
Posts: 7

Rep: Reputation: 0
Some notes:
  • You dont have to do the rpmbuild stuff after you've installed the kernel-devel package
  • "Applications" does not require kernel sources. Only kernel modules (drivers etc) require kernel headers. Can you provide more info on your "application"?
  • Some makefiles expect the kernel sources to be under /usr/src/linux so please create a symlink from /usr/src/linux to the sources (i.e. /usr/src/kernels/kernel-??) before running the "app".
  • You have to configure the kernel sources properly before any app could build using them. The bear minimum is to have a .config file in your kernel dir and run "make oldconfig".

Hope this helps.
 
Old 06-04-2006, 09:40 PM   #7
YAOMK
Member
 
Registered: Apr 2006
Location: Ft. Lauderdale
Distribution: FC7 and CentOS 5
Posts: 40

Rep: Reputation: 15
if you have access to the internet why not try: su -c 'yum install kernel-devel' instead of RPM, its much easier. Good luck!
 
Old 06-05-2006, 02:56 AM   #8
achtung_linux
Member
 
Registered: May 2006
Posts: 50

Original Poster
Rep: Reputation: 15
The infamous application that needs access to kernel source is part of Asterisk system of PC controled telephony, more precisely its zaptel driver (the driver that communicates with the PCI installed hardware). In order for the whole system to work, first thing required is installation of zaptel driver. Hence, when trying to install it, I got the error about kernel source not being present.
The next few steps were taken according to this tutorial at:
how to install FC5 kernel source
and that's when the error and warning messages started appearing.
I need to make zaptel see the kernel source since many things rely on its ability to communicate with the specialized hardware. More info about asterisk telephony atasterisk telephony server. You very well may find this open-source project interesting.
I have also looked for kernel-devel packages on the installation CD's and there are two:
kernel-xen0-devel-2.6.15-1.2054_FC5.i686.rpm
and
kernel-xenU-devel-2.6.15-1.2054_FC5.i686.rpm
Any of those that may be usefull?
P.S. Thank you for your attention avivg, if you assume that you are spoonfeeding a linux newbie, you assumed right. I didn't get the part with the symbolic links, not clear to me how to link the source to something that is not installed...
 
Old 06-05-2006, 04:41 AM   #9
avivg
LQ Newbie
 
Registered: Dec 2004
Posts: 7

Rep: Reputation: 0
Ahh.. the picture is much clearer now. So first, the first link you gave is redundant ("how to install FC5 kernel source"), because running rpm -ivh kernel-devel*.rpm is all you need. The rest is configuration. I will try to give you some actual steps but pls note i have suse linux installed and i'm shooting in the dark here. So:

#cd /usr/src
#ln -snf kernels/2.6.15-1.2054_FC5-i686 linux
#cd linux
#make oldconfig scripts

I was able to compile the zaptel driver on my suse machine (kernel 2.6.13 which is little bit older then FC5). So this is all you need.

If the zaptel driver compilation fails on your machine, please make sure that the zaptel driver *can* be compiled on FC5.

Today a newbiew, tomorrow an expert

Ohh... the xen is a special kernel that enables virtualization, you don't need it if your machine is not a Xen VM.

Last edited by avivg; 06-05-2006 at 04:43 AM.
 
Old 06-05-2006, 04:50 AM   #10
avivg
LQ Newbie
 
Registered: Dec 2004
Posts: 7

Rep: Reputation: 0
A google search revealed:
(http://www.voip-info.org/tiki-index....k+Linux+Fedora)

Search for FC5.

It seems that there are some known issues regarding FC5+zaptel. You might need to update the kernel (not through the source RPM, but downloading new binary RPMs from fedora update). If you have a dedicated machine, consider switching to Suse or an older FC, Or contact Asterisk for support.

 
Old 06-06-2006, 02:14 AM   #11
achtung_linux
Member
 
Registered: May 2006
Posts: 50

Original Poster
Rep: Reputation: 15
Now that things are clearer, I did the rpm -ivh on kernel-devel and then the steps with the ln -snf/kernels/.... and the same message about Header V3 came out. Proceeded with zaptel installation and the same outcome: message about no kernel source present...
Looks like FC5 kernel developers missed out on some things:
Typo in kernel
This is serious software development, yep... then how in the world does garrage experiment look like...
The yum option that YAOMK suggested is about to be explored... although have not great hopes about it...
 
Old 06-06-2006, 07:26 AM   #12
YAOMK
Member
 
Registered: Apr 2006
Location: Ft. Lauderdale
Distribution: FC7 and CentOS 5
Posts: 40

Rep: Reputation: 15
Well if you decide to give it a go.. .. I would do:
uname -r to see my current kernel version
su -c 'yum install yum-utils' to install utilities used by yum
su -c 'yum install kernel' (this is optional) Only if you must upgrade your current kernel
su -c 'yum install kernel-devel' installs kernel sources at /usr/src/kernels/<your-kernel-version> and it takes care of the configuration for you (links kernel sources to the kernel)

Another note: please make sure the kernel-devel version explicitly matches that of the kernel. If you happen to install a new kernel be aware that the new kernel will only take effect upon reboot, to remove old kernel you can use the following command once you reboot: rpm -e kernel- <your-old- kernel-version>

I'm sure the same can be done through RPM giving the BUILD folder in lib/modules/<your-kernel-version> the link to the kernel sources, but for that you must know the correct path to the RPM installed sources and then make use of the symbolic link command "ln -s" as explained by Avivg. The only problem is that the file structure in Fedora, Redhat and CentOS family is a bit different from other distros and thus the exact path given above wont do the trick. Again I hope it all works for you.

Last edited by YAOMK; 06-06-2006 at 08:28 AM.
 
  


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
fc5 kernel source: is it included in the distro media? vital4ik Fedora 4 05-23-2006 09:39 AM
Couldnt install kernel source on FC5 vbo Fedora 4 03-29-2006 02:28 PM
Error Messages with new Kernel davcefai Linux - General 2 01-26-2005 04:20 PM
FYI: Ndiswrapper, Kernel-Source 2.6.9-4, Linux-2.6.10 && Couple O' Questions Outabux Debian 0 12-29-2004 03:13 PM
Couple of error messages in dmesg for fglrx driver. op_stager Linux - Software 1 11-01-2004 08:49 PM


All times are GMT -5. The time now is 02:10 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration