LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Compiling the 2.6.12.3 Kernel (https://www.linuxquestions.org/questions/linux-newbie-8/compiling-the-2-6-12-3-kernel-351328/)

bmorgan98 08-08-2005 07:37 PM

Compiling the 2.6.12.3 Kernel
 
Hello,

I am getting this message of the below nature when attempting to compile the kernel 2.6.12.3

Code:

make[3]: *** No rule to make target `net/ipv4/netfilter/ipt_mark.c', needed by `net/ipv4/netfilter/ipt_mark.o'.  Stop.
make[2]: *** [net/ipv4/netfilter] Error 2
make[1]: *** [net/ipv4] Error 2
make: *** [net] Error 2

From Searching on forum with the string 'No rule to make target' i see a few have had this trouble but with different files. Some have suggested that the makefile isnt setup right as when i run make xconfig (the GUI based configurator) i see no mention of ipv4 just ipv6. Oh Well HEH im new to linux. So how can i compile the kernel cleanly? is it just a simple matter of excluding ipv4 out of the makefile or is ipv4 important?

zhy2111314 08-08-2005 08:07 PM

I thougth u can compile IPV6 instead of IPV4 when choose the options after 'make menuconfig or xconfig'.

bmorgan98 08-08-2005 08:19 PM

Quote:

Originally posted by zhy2111314
I thougth u can compile IPV6 instead of IPV4 when choose the options after 'make menuconfig or xconfig'.

Yeah well as i said i cannot find a hint of ipv4 in the configurator just ipv6, i follow the instructions by make config/oldconfig/xconfig then after the configuration is done i then just type make and that is as far as i get i have yet to make modules_install but cant get to that stage. So i really dont know were im going wrong im following the intructions in the readme file exactly, I cant choose ipv4 from the xconfig unless it is a hidden item, but not sure anyhow its late 2:30am here im off to bed nn, will try this in the morning.

thanks for replying zhy.

zhy2111314 08-08-2005 08:35 PM

Good Luck to u:)

sundialsvcs 08-08-2005 08:36 PM

Good idea. :D

Many kernel/module features have co-dependencies on other features that may only become apparent when you try to do a build and/or when you try to build or to install modules.

Don't "diddle with the Makefiles!" :eek: Assume that they are correct. Your objective, after all, is not only to make sure that the system compiles, but that it will run! :)

"Getting some sleep" is definitely a good idea. It'll still be there :cry: tomorrow... ;)

P.S.: All of the systems that I have built with IPV6 support also had IPV4 selected, and who knows, this may be necessary. "If it works," the "extra" code can easily be ignored...

bmorgan98 08-10-2005 07:31 AM

is it possible that it could be the gcc compiler version? i recall (not on my linuxbox yet) from the README that it said some compiler versions have inconsistancies and may skip some source code.


All times are GMT -5. The time now is 09:00 PM.