LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-08-2005, 08:37 PM   #1
bmorgan98
LQ Newbie
 
Registered: Jul 2004
Location: ireland
Distribution: mandrake 10.2 LE 2005
Posts: 19

Rep: Reputation: 0
Unhappy 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?
 
Old 08-08-2005, 09:07 PM   #2
zhy2111314
Member
 
Registered: Aug 2005
Location: China
Distribution: redhat(Fedora Core)->Debian Sid->Slackware
Posts: 91

Rep: Reputation: 15
I thougth u can compile IPV6 instead of IPV4 when choose the options after 'make menuconfig or xconfig'.
 
Old 08-08-2005, 09:19 PM   #3
bmorgan98
LQ Newbie
 
Registered: Jul 2004
Location: ireland
Distribution: mandrake 10.2 LE 2005
Posts: 19

Original Poster
Rep: Reputation: 0
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.
 
Old 08-08-2005, 09:35 PM   #4
zhy2111314
Member
 
Registered: Aug 2005
Location: China
Distribution: redhat(Fedora Core)->Debian Sid->Slackware
Posts: 91

Rep: Reputation: 15
Good Luck to u
 
Old 08-08-2005, 09:36 PM   #5
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 7,162

Rep: Reputation: 2205Reputation: 2205Reputation: 2205Reputation: 2205Reputation: 2205Reputation: 2205Reputation: 2205Reputation: 2205Reputation: 2205Reputation: 2205Reputation: 2205
Good idea.

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

Last edited by sundialsvcs; 08-08-2005 at 09:37 PM.
 
Old 08-10-2005, 08:31 AM   #6
bmorgan98
LQ Newbie
 
Registered: Jul 2004
Location: ireland
Distribution: mandrake 10.2 LE 2005
Posts: 19

Original Poster
Rep: Reputation: 0
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling kernel = kernel panic Tons of Fun Debian 5 07-02-2005 02:59 PM
Compiling kernel module for linux kernel 2.4 in 2.6 guam Linux - Software 0 01-13-2005 03:02 AM
Where Is Kernel Directory In Rh9(kernel 2.4.20-8), For Compiling HSP56 MR(pctel) Mode rudy3107 Linux - Software 1 07-25-2004 05:17 AM
Help! Everything seems to be compiling into kernel! KuRe Slackware 18 12-17-2003 09:04 PM
Kernel compiling and module compiling tarballed Linux - General 1 12-22-2002 06:31 PM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration