Quick question regarding the kernel source packages
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.
Quick question regarding the kernel source packages
I am currently running Slackware 12 with the 2.6.24.1 kernel and was buzzing through pkgtool cleaning out unused things when i noticed a bunch of old kernel packages. Is it safe for me to uninstall these or should i just leave them be?
Thanks
if you will find something that will need those sources you can install them easily.
Normaly you only might need the source from the kernel you're running...
Well i just delted them and low and behold no kernel will display its options using xconfig, menuconfig, oldconfig, all broken. Guess it is time to go find the disc again
how did you delete them??? what do you mean by all broken? deleting kernel sources can't break anything that was working.the sources normally are only needed to compile something against them...
in pkgtool, the kernel-2.6.21.5 smp, no-arch, etc. those .tgz files. when i uninstalled the package, i noticed my linux folder in /usr/src disappeared. now whenever i try to make a config file i get errors. The good news is though is that it is bootable. just none of my patches like the madwifi work now.
yes a symbolic link. ln -s linux-2.6.24.1 linux However it is no longer there, and when i make one, cd to thelinux directory, make xconfig it spews errors at me.
this is what i do:
Code:
cd /usr/src
rm linux && ln -s linux-<current> linux
cd linux
make mrproper
make xconfig
^^^This is where it is failing now^^^
set my config options
make && make modules_install && make install && reboot.
ok here is the error:
Code:
root@Darkstar:/usr/src/linux# make xconfig
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
Last edited by C-Sniper; 02-11-2008 at 06:56 PM.
Reason: added error
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.