LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   tun.o (https://www.linuxquestions.org/questions/linux-software-2/tun-o-3531/)

shollebeck 06-19-2001 05:07 PM

tun.o
 
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




jharris 06-19-2001 05:19 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!

shollebeck 06-19-2001 06:07 PM

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

jharris 06-20-2001 01:44 PM

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!

Jamie...

shollebeck 06-20-2001 05:29 PM

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..

jharris 06-20-2001 05:36 PM

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.

HTH

Jamie...

drjimstuckinwin 06-25-2001 05:38 PM

Red Hat "just" sent me an advisory about an updated GCC for 7.1 new gcc-2.96 version available


All times are GMT -5. The time now is 08:23 PM.