Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 02-02-2005, 03:16 PM   #1
LQ Newbie
Registered: Nov 2003
Posts: 18

Rep: Reputation: 0
Installing Kernel Source in FC3

Ive been trying to get NDIS wrapper working in fc3 and im running into problems installing the kernel source, every time in try to install the rpm it gives me and error saying the file is a source RPM and cannot be installed with system config packages. I did this on another computer that had FC3 on it also so i kinda at a loss as to what to do about this any help would be greatly appreciated, thanks.
Old 02-14-2005, 10:50 PM   #2
Registered: Jun 2004
Posts: 51

Rep: Reputation: 15
Bas rpmbuild -bp --targend here: rpmbuild -bp --target=<arch> kernel.spec
lly, I'm trying to get ndiswrapper working using their instructions for fedora found here: (Fedora specific)
and here: (general)
But, I can't get ndiswrapper to compile.
According to the ndiswrapper installation info, you need to install the kernel source.
However, with FC3, there is no longer a kernel-source rpm package. I downloaded and installed the .src.rpm package for kernel 2.6.10-1.760. Then the problems begin. According to the fedora folks (, you have to do the following:In order to eliminate the redundancy inherent in providing a separate package for the kernel source code when that source code already exists in the kernel's .src.rpm file, Fedora Core 3 no longer includes the kernel-source package. Users that require access to the kernel sources can find them in the kernel .src.rpm file. To create an exploded source tree from this file, perform the following steps (note that <version> refers to the version specification for your currently-running kernel):

Change directory to /usr/src/redhat/SPECS/, and issue the following command:

rpmbuild -bp --target=<arch> kernel.spec

(Where <arch> is the desired target architecture.)

On a default RPM configuration, the kernel tree will be located in /usr/src/redhat/BUILD/.

It seems to go well for a bit, but then the process stops:
+ make ARCH=i386 nonint_oldconfig
In file included from /usr/include/bits/posix1_lim.h:153,
from /usr/include/limits.h:144,
from /usr/lib/gcc/i386-redhat-linux/3.4.2/include/limits.h:122, from /usr/lib/gcc/i386-redhat-linux/3.4.2/include/syslimits.h:7,
from /usr/lib/gcc/i386-redhat-linux/3.4.2/include/limits.h:11,
from scripts/basic/fixdep.c:113:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
In file included from /usr/include/sys/socket.h:35,
from /usr/include/netinet/in.h:24,
from /usr/include/arpa/inet.h:23,
from scripts/basic/fixdep.c:115:
/usr/include/bits/socket.h:304:24: asm/socket.h: No such file or directory
scripts/basic/fixdep.c: In function `use_config':
scripts/basic/fixdep.c:201: error: `PATH_MAX' undeclared (first use in this function)
scripts/basic/fixdep.c:201: error: (Each undeclared identifier is reported only once
scripts/basic/fixdep.c:201: error: for each function it appears in.)
scripts/basic/fixdep.c:201: warning: unused variable `s'
scripts/basic/fixdep.c: In function `parse_dep_file':
scripts/basic/fixdep.c:297: error: `PATH_MAX' undeclared (first use in this function)
scripts/basic/fixdep.c:297: warning: unused variable `s'
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.35717 (%prep)

RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.35717 (%prep)
[root@tatooine SPECS]#

I'm at a loss as to how to proceed.
Also, the ndiswrapper site talks about symlinking to the kernel source from the modules directory. But the way they describe it doesn't seem to make sense, as the would-be symlink had files in it already.

I'm lost and frustrated - Any help would be GREATLY appreciated.
Old 02-15-2005, 03:52 PM   #3
LQ Newbie
Registered: Nov 2003
Posts: 18

Original Poster
Rep: Reputation: 0
thanks for your help i got it installed and i got ndis wrapper working fine


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
Cannot find FC3 kernel source majara Fedora 3 11-14-2005 02:29 AM
apt-get kernel-source is installing the wrong kernel source. JordanH Ubuntu 10 07-08-2005 05:42 PM
kernel source and .o to .ko objects (fc3) kahn Fedora 2 04-10-2005 05:30 AM
Kernel Source in FC3 efanning Fedora 11 01-25-2005 01:30 PM
Where do I get the kernel source for FC3? deadmilkman Fedora 3 12-27-2004 04:22 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:50 AM.

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