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 having a hell of a time trying to get any kernel compile working. The make command doesn't
work on any kernel I've tried it on. I've never had problems before. I currently am running
slackware-current and kernel-2.6.8.1. This is the error messages I get:
HOSTCC scripts/basic/fixdep
In file included from /usr/include/bits/posix1_lim.h:153,
from /usr/include/limits.h:144,
from /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/include/limits.h:122,
from /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/include/syslimits.h:7,
from /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/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_
Any help would be appreciated. I hate to have to do a reinstall.
What I did was download the kernel-2.6.9 from www.kernel.org and proceed to compile. I'm tried downloading three other kernel versions. Each time I do a make menuconfig, or make xconfig that error message I posted pops up. I've never had a problem before this, and I've done everything the same way. I was going to patch the 2.6.8.1 to 2.6.9 but can't. I forgot what errors popped up for that one.
Install the kernel-headers package that comes with slackware. Those are the headers used to compile glibc and are needed for compiling of some programs.
Commonly there's two things ... Slack will have two
lots of kernel-headers. One lot in /usr/include/linux
which you should have regardless of whether you install
the kernel-source package or not so you're able to
compile system-level code, and one under the respective
kernel-source tree (in your case /usr/src/linux-2.6.8.1/include).
Word of caution: one should NOT upgrade the /usr/include/linux
with a kernel upgrade.
OOPs,
I did forget to install the Kernel-header package. I think I'll be able to continue now. I don't recall doing that in previous compiles. Thanks for all you help. Now the fun part begins!!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.