Linux - SoftwareThis 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.
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'm trying to setup tun under redhat 7.1 kernel 2.4.2
After doing
make menuconfig
make dep
make bzImage
mknod
I'm getting
depmod: *** Unresolved symbols in /lib/modules/2.4.2-2/kernel/drivers/net/tun.o
as well as alot of other modules. What am I doing wrong
I went to the site and yes I did make a backup when I copied
to /boot
When I did make modules only a few make
I'm getting error:
make[2]: *** [dummy.o] error 1
make[2]: leaving directory '/usr/src/linux-2.4.2/dirvers/net'
make[1]: ***[_mod_subdir_net] Error 2
make[1]: leaving directory '/usr/src/linux-2.4.2/dirvers'
make: *** [_mod_drivers} Error 2
Last edited by shollebeck; 06-19-2001 at 06:11 PM.
After the 'make bzImage' you want to copy the kernel from /usr/src/linux/arch/i386 (assuming you are on an intel box!) to /boot (the file is vmlinuz incase you hadn't guessed) then run
make modules
rm -r /lib/modules/2.4.2 (assuming you are recompiling the same kernel)
make modules_install
then run
lilo
then reboot.
HTH
Jamie...
PS The above won't backup your old kernel - this is something you probably want to do unless you are confident that you havn't missed anything out in the new kernel! Have a look at http://www.linuxdoc.org/HOWTO/Kernel-HOWTO.html for some real instructions!
I went to the site and yes I did make a backup when I copied
to /boot
When I did make modules only a few make
I'm getting error:
make[2]: *** [dummy.o] error 1
make[2]: leaving directory '/usr/src/linux-2.4.2/dirvers/net'
make[1]: ***[_mod_subdir_net] Error 2
make[1]: leaving directory '/usr/src/linux-2.4.2/dirvers'
make: *** [_mod_drivers} Error 2
What compiler are you using? Assuming its GCC run gcc --version to find out. I've had problems compiling the 2.4 tree with gcc 2.95.2 thats had the pgcc patch applied. Can't think of anything else, there is a remote possibilty that one of the files is damamged but I'd be surprised!
Running version 2.96.
I can easily try to reinstall the entire system. I've done it multiple
times.... I'm really a mainframe tech using linux to run a emulator
for mainframe software.... Not even a C coder.....
I apreciate the help..
If I were in your position I would get down the latest kernel source from you local mirror of ftp.kernel.org (2.4.5 I think) and try building that. Can anyone on the forum confirm that RH 7.1 ships with a correct version of gcc, not the knackered one where you need to use kgcc to compile the kernel? I think that was in RH 7.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.