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 upgrade kernel of my old firewall (Slackware 9.1, 2.4.22) to new kernel.
After deflating tar, and after I changed the link, I tried make menuconfig, make xconfig and make oldconfig, always obtaining this answer.
I am a user, trying to learn some more, so I tried to find limits.h file, and I found it.
HOSTCC scripts/fixdep
In file included from /usr/include/bits/posix1_lim.h:126,
from /usr/include/limits.h:144,
from /usr/lib/gcc-lib/i486-slackware-linux/3.3.1/include/limits.h:122,
from /usr/lib/gcc-lib/i486-slackware-linux/3.3.1/include/syslimits.h:7,
from /usr/lib/gcc-lib/i486-slackware-linux/3.3.1/include/limits.h:11,
from scripts/fixdep.c:105:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
In file included from /usr/include/netinet/in.h:212, from scripts/fixdep.c:107:
/usr/include/bits/socket.h:305:24: asm/socket.h: No such file or directory
scripts/fixdep.c: In function `use_config':
scripts/fixdep.c:193: error: `PATH_MAX' undeclared (first use in this function)
scripts/fixdep.c:193: error: (Each undeclared identifier is reported only once
scripts/fixdep.c:193: error: for each function it appears in.)
scripts/fixdep.c:193: warning: unused variable `s'
scripts/fixdep.c: In function `parse_dep_file':
scripts/fixdep.c:289: error: `PATH_MAX' undeclared (first use in this function)
scripts/fixdep.c:289: warning: unused variable `s'
make[1]: *** [scripts/fixdep] Error 1
make: *** [scripts/fixdep] Error 2
If I understand correctly, you wish to upgrade your firewall machine to a 2.6.x kernel - just guessing - is that correct?
Extract the tar file (tar.gz - I am guessing) to your preferred directory and then cd into the newly created directory. You can do this as user.
You should then be able to do make menuconfig or make xconfig if you are using kde.
Would it be asking too much for you to post the directory and command you issued to get these errors? Or would you rather we play "20 Questions" until someone guesses the answers?
I am a user, trying to learn some more, so I tried to find limits.h file, and I found it.
But it might not be the right one (as in the right (a 2nd) limits.h *might* be somewhere else that it hasn't looked yet.
I don't know if that's the case with you. But I got driven nuts a bunch of times due to the exact issue I said (with different file(s) though, not limits.h)
/usr/src/linux
I suggest you search this forum using relevant terms also at google groups the group alt.os.linux.slackware
At that latter I know there's huge volumes of answered kernel compile questions (and info about two of _name-here_ files and it finding the wrong one until someone points it to the right one.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.