SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am trying to compile and install the 2.6.21.5 kernel but I keep getting errors when running the make menuconfig command. Here is the output...
Code:
HOSTCC scripts/basic/fixdep
In file included from /usr/include/bits/posix1_lim.h:153,
from /usr/include/limits.h:145,
from /usr/lib/gcc/i486-slackware-linux/4.1.2/include/limits.h:122,
from /usr/lib/gcc/i486-slackware-linux/4.1.2/include/syslimits.h:7,
from /usr/lib/gcc/i486-slackware-linux/4.1.2/include/limits.h:11,
from scripts/basic/fixdep.c:115:
/usr/include/bits/local_lim.h:36:26: error: 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:117:
/usr/include/bits/socket.h:310:24: error: asm/socket.h: No such file or directory
scripts/basic/fixdep.c: In function 'use_config':
scripts/basic/fixdep.c:206: error: 'PATH_MAX' undeclared (first use in this function)
scripts/basic/fixdep.c:206: error: (Each undeclared identifier is reported only once
scripts/basic/fixdep.c:206: error: for each function it appears in.)
scripts/basic/fixdep.c:206: warning: unused variable 's'
scripts/basic/fixdep.c: In function 'parse_dep_file':
scripts/basic/fixdep.c:306: error: 'PATH_MAX' undeclared (first use in this function)
scripts/basic/fixdep.c:306: warning: unused variable 's'
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2
Can anyone tell me what is wrong from the output or give me any advice?
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,645
Rep:
You can take the headers package that is on your Slackware CD. And I think that even the 2.4.33 kernel headers should be ok. What kernel do you actually have installed? You could probably without any harm install the 2.6 headers from the /extra folder instead of the 2.4 ones.
If you mount your CD you find them at $PATH_TO_CD/extra/linux-2.6.17.13/linux-headers...tgz (2.6 kernel) and $PATH_TO_CD/slackware/d/kernel-headers...tgz (2.4 kernel) -- I abbreviated them but you should find them this way without problem.
EDIT: Sorry, I didn't recognize the URL to the now official package browser but thought you were talking about a package from www.slacky.it. So yes, if you search them on http://packages.slackware.it or take them from your CD doesn't matter at all
Last edited by titopoquito; 06-18-2007 at 01:04 PM.
I found the kernel-headers-2.6.21.5 package on the site but cant find the linux-headers. I can't use the disc i got cause for some reason it isn't mounting and when I try to install the kernel headers my kernel is to old to install that so.. idk what to do. Anyone got an idea?
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,645
Rep:
I thought kernel headers are linux headers, but please someone correct me if that's wrong. What Slackware version and kernel have you installed now? 11.0 with 2.4.33 kernel? Looks like you have searched for "Slackware current" packages?
I have Slackware 11.0 with the 2.6 kernel and the 2.6 headers. I get no error if I untar the 2.6.21.5 sources and call "make menuconfig". I don't know if something else might be missing or screwed up, but I think someone else could jump in now ...
you probably don't want to install the headers from slackware current. because you almost certainly will bork things if your kernel headers are compiled against a different version of glibc. (or something like that)
find the slackware-11.0 headers and install them. any flavor should work, AFAIK the 2.4 one should be fine as well.
this is confusing, but you don't actually need the 2.6.21.5 headers, just some from a slackware 11 kernel.
also remember to make mrproper before trying anything with a 2.6 kernel.
FATAL: kernel too old
Segmentation fault /sbin/ldconfig
/sbin/ldconfig complains about your running kernel. It seems as if you had installed packages from slackware-current without reading the instructions. It is interesting that it still works at all, with glibc-2.5 on a 2.4 kernel (?)
oh well thanks for the info but I just went ahead and installed slackware again, thank anyway though. Bioe007, I noticed you have a link on how to do this sort of thing, its actually really helpful. I tell you if it got me through the whole process or if I run into any problem though.
alright I'm at the configuring the kernel part and I cant start any of the graphical menues. I've tried xconfig, command not found is what it said, I also tried menuconfig, another command not found. What should I do now?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.