LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 10-22-2004, 02:23 PM   #1
y0shi
Member
 
Registered: Oct 2004
Location: Boston, MA
Distribution: SUSE 9.1, Slackware 10.0
Posts: 95

Rep: Reputation: 15
slowly fixing all the errors, please help :-\


hey all, finaly made it to slack 10.0 (previously using suse 9.1...and years ago it seems red hat 5 )

the 2.4.26 kernel works fine for me, but i had to update to a 2.6.7+ for the WG511 card i bought, i wanted it to be supported..not wrapped.

*which works awsome btw*

so anywho, i'm new to kernel compiling and i think i've worked out most of the bugs, but i still get a make error and i think this is causing my 10/100 net card to not function....which it does in 2.4.26

btw i decided to go with the latest 2.6.9...which i know is not the most stable option, but this is my 2nd laptop...so it's no crucial to me...just trying to learn


this is the error:
Code:
make[3]: *** No rule to make target 'net/ipv4/netfilter/ipt_ecn.c', needed by 'net/ipv4/netfilter/ipt_ecn.o'
make[2]: *** [net/ipv4/netfilter] Error 2
make[1]: *** [net/ipv4] Error 2
make: *** [net] Error 2
the first time i compiled the kernel took about 35 mins for this error to popup...when i recompile this happens in about 3 minutes....i'm assuming when you recompile it does something different...like just changes the overlaps and gaps ?

It always stops after this error.

Do i even need what it's trying to do here? ( i think it's just something i selected out of stupidity )

I don't know if this actually stops the process...or just tosses that error our at the end, but when that error hits, it does no further

and i have a few errors when the kernel loads also,:

Code:
Device 'i823650' does not have a release() function, it is broke nand must be fixed.
another:
Code:
Warning: Could not open /lib/modules/2.6.9/modules.dep
"Fatal":
""
""
"" just means it says the same thing, but prefixed with fatal 3 times instead of warning.


^that seems to happen in two places


the strange thing is....the only thing not functioning is the damn 10/100 card. lol...o yea and the sound, but thats pretty low on my list of fixes right now...didn't even bother with it yet

This is my first (by hand) kernel compile so i'm sure i have way too much stuff in there, and probably some stuff i need. slowly parsing through it all.

any help would be greatly appreciated, i've already search through the forums to fix what seems to be the rest of the issues.

next post will have dmesg...gonna go home where i can connect to wireless and copy paste it....@ work right now where the 10/100 won't work and the wireless requires PEAP.

should i post the .config i'm using also ?


once all of this is cleared up...xsupplicant is my next hump to get over...which i could not get to work with linux ant or ndiswrapper in suse 9.1....so i bought this card ( WG511 ) and lept over to slack...hopefully both of these moves will help....network on campus uses PEAP.
 
Old 10-22-2004, 02:47 PM   #2
sjalex
Member
 
Registered: Oct 2004
Location: Houston
Distribution: CentOS, ubuntu
Posts: 41

Rep: Reputation: 15
well, the problem may be an incompatible config file, did you copy it over from the 2.4 kernel? it's best to start from scratch as there are a lot of options which don't translate.

that said, if I were you I'd hose out /usr/src, get the latest stable from kernel.org, unzip, link to /usr/src/linux. then cd /usr/src/linux, make menuconfig, set options,
make all
make modules_install
make install

anyway the reason it takes a while to come up with the error the first time is all the objects have to be compiled, and the second time all the objects are already compiled. Unless you "make clean" or "make mrproper" those files will still be there. As suggested I'd clean it all out though and start over.

let me know if you need anything clarified.
 
Old 10-22-2004, 03:26 PM   #3
y0shi
Member
 
Registered: Oct 2004
Location: Boston, MA
Distribution: SUSE 9.1, Slackware 10.0
Posts: 95

Original Poster
Rep: Reputation: 15
k thanks...i will do try that right now...and yes it is moved over from 2.4.26 but i tried a clean one and i was too far over my head with knowing what i need...i mean i can guess my devices and hardware and stuff....but some of it is just simply not intuitive....so let me try to make mrproper and redo it...knowing what i know now and i'll post back.
 
Old 10-22-2004, 03:49 PM   #4
y0shi
Member
 
Registered: Oct 2004
Location: Boston, MA
Distribution: SUSE 9.1, Slackware 10.0
Posts: 95

Original Poster
Rep: Reputation: 15
bah the ecn thing still errored during make....

is this error stoping the make ? or does ti get tossed out @ the end...i'm gonna see if i can take it out then try again

^^ using a clean .config
 
Old 10-22-2004, 04:33 PM   #5
y0shi
Member
 
Registered: Oct 2004
Location: Boston, MA
Distribution: SUSE 9.1, Slackware 10.0
Posts: 95

Original Poster
Rep: Reputation: 15
GAH i can't figure out where this is so i can remove it. :-\
 
Old 10-22-2004, 06:18 PM   #6
mcd
Member
 
Registered: Aug 2003
Location: Boulder, CO
Distribution: Slackware, RHEL, CentOS
Posts: 825

Rep: Reputation: 33
i did a quick www.google.com/linux search for "net/ipv4/netfilter/ipt_ecn.c", and it looks like it's related to iptables, and IPv4, whatever that is.

this page has the following excerpt:
Quote:
1 /* iptables module for the IPv4 and TCP ECN bits, Version 1.2
2 *
3 * (C) 2002 by Harald Welte <laforge@gnumonks.org>
4 *
5 * This software is distributed under GNU GPL v2, 1991
6 *
7 * ipt_ECN.c,v 1.4 2002/08/05 19:36:51 laforge Exp
8 */
9
10 #include <linux/module.h>
11 #include <linux/skbuff.h>
12 #include <linux/ip.h>
13 #include <net/checksum.h>
14
15 #include <linux/netfilter_ipv4/ip_tables.h>
16 #include <linux/netfilter_ipv4/ipt_ECN.h>
17
18 MODULE_LICENSE("GPL");
19
20 /* set ECT codepoint from IP header.
21 * return 0 in case there was no ECT codepoint
22 * return 1 in case ECT codepoint has been overwritten
23 * return < 0 in case there was error */

from which i surmise that you're trying to compile an iptables module in, but leaving out a neccessary dependency. i'm no expert, but it looks like what you're trying to compile in is 'net/ipv4/netfilter/ipt_ecn.o', and what's missing is 'net/ipv4/netfilter/ipt_ecn.c'. in fact, it almost looks like it can't find any directory named 'net', but i don't know, i'm not familiar with error syntax. so i guess i would look for something with ipt_ecn.o in the name, paying special attention to anything regarding iptables. sorry i can't be more help!
 
Old 10-23-2004, 12:08 AM   #7
sjalex
Member
 
Registered: Oct 2004
Location: Houston
Distribution: CentOS, ubuntu
Posts: 41

Rep: Reputation: 15
When you do make menuconfig, the dependencies should mostly be resolved for you... ipv4 is straight up TCP/IP, you need it if you want to go online at all. Ipchains is a firewall, I don't know much about it.

In menuconfig, help is available for most options even if some of it is totally cryptic. Basically I can only recommend going through and building a kernel and figuring out what works and what doesn't, make sure you keep a record for next time either in your head or on paper. if something doesn't work, go back through make menuconfig and check/uncheck relevant stuff and try again. this is time consuming but it will teach you a lot (:
 
Old 10-23-2004, 11:03 AM   #8
y0shi
Member
 
Registered: Oct 2004
Location: Boston, MA
Distribution: SUSE 9.1, Slackware 10.0
Posts: 95

Original Poster
Rep: Reputation: 15
thanks guys, finally got it all figured out....

did something super nooby...used winrar to extract the kernel onto a disc...to save time....and winrar doesn't see a difference between ENC and enc.... heh so it overwrote lots of files....i extracted it in linux, and i've been compiling ever since trying to get all the bugs out.

something i'm having trouble with is......

when i just wana re-compile how can i have it not make the current kernel the vmlinuz.old

because if i recompile then i have a new kernel, and the old one just loads the previous new one...

like :

i have 2.4.26, and i'm compilier 2.6.9

so now i have 2.6.9 and 2.4.66 ( vmlinuz and vmlinuz.old )

if i recompile i get 2.6.9 and 2.6.9 ( the version from above ) sooo yea... i don't know how to explain what i am saying, but i'm sure people know what i mean.
 
Old 10-23-2004, 12:11 PM   #9
sjalex
Member
 
Registered: Oct 2004
Location: Houston
Distribution: CentOS, ubuntu
Posts: 41

Rep: Reputation: 15
the simplest thing to do is to rename your vmlinuz.old to something useful like vmlinuz-2.4.26. It's simpler to just not count on vmlinuz.old except for temporary purposes.
 
Old 10-24-2004, 07:12 AM   #10
y0shi
Member
 
Registered: Oct 2004
Location: Boston, MA
Distribution: SUSE 9.1, Slackware 10.0
Posts: 95

Original Poster
Rep: Reputation: 15
so like go in and physically rename it...and change it in lilo.conf ?
 
Old 10-24-2004, 08:07 AM   #11
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 242Reputation: 242Reputation: 242
Yes, but if you don't run 'make install' (and you should not run it) the new kernel is not automatically copied in /boot.

For my part I prefer do it by hand:
cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.x
cp System.map /boot/System.map-2.6.x

I give the same suffix to both file (2.6.x) so vmlinuz-2.6.x will use right System.map

Usually, I make a new entry for the kernel in bootloader conf (mine is grub.conf as I use grub not lilo)
and after that I reboot, if all run well, then I delete the entry for old kernel in bootloader conf.

For lilo, you need to run lilo after change lilo.conf, to update MBR accordingly.
 
Old 10-24-2004, 07:32 PM   #12
y0shi
Member
 
Registered: Oct 2004
Location: Boston, MA
Distribution: SUSE 9.1, Slackware 10.0
Posts: 95

Original Poster
Rep: Reputation: 15
ahh okay...semi startign from scratch here:

extract the files to /usr/src/linux-2.6.9 then make a link : linux

cd into linux

make mrproper

move my config file over and edit it

make all

make modules_install

then your suggestion:

cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.x
cp System.map /boot/System.map-2.6.x

then in lilo make it

image = /boot/vmlinuz-2.6.x
root = /dev/hda2
label = Slack-2.6.x
read-only

( add those )

then just execute lilo...


and it will work ?


also before i do any make commands..should i edit Makefile with the export path thingie? or do i not have to because i'm manually copying the system map and image over now.

Last edited by y0shi; 10-24-2004 at 07:44 PM.
 
Old 10-24-2004, 08:09 PM   #13
rotvogel
Member
 
Registered: Oct 2003
Posts: 534

Rep: Reputation: 30
Instead of naming your kernel vmlinuz-2.6.x you'd better named it vmlinuz-2.6.9-1. Same applies to the System.map file. But that's something to remember next time. the -1 is something I use for versioning.

But to answer your question: there is no need to adjust the Makefile when you manually copy the kernel (which you are doing) .

The kernel build commands should be something like
Code:
make menuconfig
make
make modules_install
cp arch/i386/boot/bzImage /boot/vmlinuz-<version>
cp System.map /boot/System.map-<version>
 
Old 10-24-2004, 08:25 PM   #14
y0shi
Member
 
Registered: Oct 2004
Location: Boston, MA
Distribution: SUSE 9.1, Slackware 10.0
Posts: 95

Original Poster
Rep: Reputation: 15
k ty
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Everything is running slowly... Doolspin Linux - Hardware 3 02-02-2006 10:06 AM
fixing kernel errors entropyguy Linux - Newbie 0 10-13-2004 06:01 PM
fixing dvd-r errors festriaqua Linux - Software 0 08-11-2004 08:45 PM
Fixing HD errors in Knoppix KungFuHamster Linux - General 7 05-01-2003 05:13 PM
slowly learning hatchetman Linux - Newbie 2 12-08-2002 04:08 PM


All times are GMT -5. The time now is 01:46 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration