LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-26-2003, 06:27 AM   #1
demmylls
Member
 
Registered: Aug 2003
Location: AT
Distribution: Fedora Core 3
Posts: 404

Rep: Reputation: 30
compiling error


when i compiling new kernel2.6 under redhat 9 i got alot of this warning

warning: `check_region' is deprecated
(what is deprecated anyway in this context?
oxford concise dictionary said this:
express disapproval of.)

one of this error:

drivers/char/isicom.c:1677: warning: `error' might be used uninitialized in this function

i also got this problem.

drivers/char/isicom.c:155: warning: comparison of distinct pointer types lacks a cast
drivers/char/isicom.c:160: warning: comparison of distinct pointer types lacks a cast

how to fix that since i have many times compilations and many hours of time compiling it but still got kernel panic on startup using new kernel.

someone said some warning message is fine, but is it?
is there anyone of you out there has compiled your kernel without any warning?

Last edited by demmylls; 12-26-2003 at 06:32 AM.
 
Old 12-26-2003, 07:16 AM   #2
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,187

Rep: Reputation: 53
those are normal compiler warnings.

you'll just need more trial and error.

the fastest way is to disable everything that you don't need for the
machine to boot. then get it working.
then start putting stuff back in the config, half of it
at a time, until you find what's causing the crashes.
 
Old 12-26-2003, 09:34 AM   #3
demmylls
Member
 
Registered: Aug 2003
Location: AT
Distribution: Fedora Core 3
Posts: 404

Original Poster
Rep: Reputation: 30
[root@localhost linux-2.6.0]# make modules_install
Warning: you may need to install module-init-tools
See http://www.codemonkey.org.uk/post-halloween-2.5.txt
INSTALL drivers/net/tokenring/3c359.ko

i found this when make modules_install

so i have downloaded modules-init-tools in tar.gz file. now where to install it as the readme file said i can install it in /usr/sbin or /usr/local/sbin.

which location should i chose for my redhat9?
 
Old 12-26-2003, 09:43 AM   #4
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,187

Rep: Reputation: 53
it probably doesn't matter. they probably mean that's where the tools
are looked for by what needs them.
 
Old 12-26-2003, 10:56 AM   #5
demmylls
Member
 
Registered: Aug 2003
Location: AT
Distribution: Fedora Core 3
Posts: 404

Original Poster
Rep: Reputation: 30
after some trial and error and now i have upgraded my
module-init-tools and my modutils

and compiled my kernel-2.6 with minor warning of 'check reigon' deprecated.

i got these problem when booting the new kernel:

mounting root filesystem
mount: error 19 mount ext3
pivotroot: pivot_root (/system, /sysroot/initrd) filed: 2
umount /initrd/proc failed:2
freeing unused kernel memory: 232 freed
kernel panic: No init found. trying passing init option to kernel

what should i do now?
what is the setting i dont set in the make xconfig?
what am i missing here?
 
Old 12-26-2003, 11:02 AM   #6
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,187

Rep: Reputation: 53
ext3 filesystem?
/proc filesystem?
 
Old 12-26-2003, 11:20 AM   #7
demmylls
Member
 
Registered: Aug 2003
Location: AT
Distribution: Fedora Core 3
Posts: 404

Original Poster
Rep: Reputation: 30
i got ext3 file system check in the xconfig
where do i find /proc settings?
 
Old 12-26-2003, 04:25 PM   #8
demmylls
Member
 
Registered: Aug 2003
Location: AT
Distribution: Fedora Core 3
Posts: 404

Original Poster
Rep: Reputation: 30
drivers/char/isicom.c: In function `ISILoad_ioctl':
drivers/char/isicom.c:155: warning: comparison of distinct pointer types lacks a cast
drivers/char/isicom.c:160: warning: comparison of distinct pointer types lacks a cast
drivers/char/isicom.c: In function `unregister_drivers':
drivers/char/isicom.c:1677: warning: `error' might be used uninitialized in this function

kernel panic again after another compilation from scratch.
what is the matter with the compilation..
i'm gonna get crazy soon......

the compiled kernel now reported kernel panic just like the previous one but now it add another line of error message and that is this :
mounting root filesystem
mount: error 19 mount ext3
pivotroot: pivot_root (/system, /sysroot/initrd) filed: 2
umount /initrd/proc failed:2
freeing unused kernel memory: 232 freed
mounted devfs on /dev(THIS ONE WHICH IS NEW)
kernel panic: No init found. trying passing init option to kernel
 
Old 12-26-2003, 10:45 PM   #9
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,187

Rep: Reputation: 53
/dev/ filesystem
and /proc filesystem settings are under filesystems.
at least they were under 2.4

i have a feeling you're going to get crazy before you get it working.
 
Old 12-27-2003, 04:17 AM   #10
demmylls
Member
 
Registered: Aug 2003
Location: AT
Distribution: Fedora Core 3
Posts: 404

Original Poster
Rep: Reputation: 30
ok now that i have successfully installed the new kernel 2.6 but i dont have usb mouse support so my usb optical intelli mouse dosent work in the new kernel. i have successfull boot into new kernel but many services reported failed.
is this normal?

and where to enable usb mouse in kernel?
i cant found the usb mouse, where is it?
 
Old 12-27-2003, 04:18 AM   #11
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,187

Rep: Reputation: 53
probably under character devices.
 
Old 12-27-2003, 01:09 PM   #12
demmylls
Member
 
Registered: Aug 2003
Location: AT
Distribution: Fedora Core 3
Posts: 404

Original Poster
Rep: Reputation: 30
theres no entry that said anything about usb mouse. can you be specific please.
 
Old 12-28-2003, 01:46 AM   #13
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,187

Rep: Reputation: 53
i can't be specific because i don't have that source here.
there may be a subsection somewhere called universal serial bus devices..
maybe someone else will post where it is.
 
Old 12-28-2003, 12:47 PM   #14
demmylls
Member
 
Registered: Aug 2003
Location: AT
Distribution: Fedora Core 3
Posts: 404

Original Poster
Rep: Reputation: 30
i have successfully compiled and boot into my kernel 2.6 but mouse appears in the center but dont move at all.
i got
under character devices:
OHCI HCD support as module
UHCI HCD support d as module
under USB support:
USB HIDBP Mouse support as module

but still my usb optical mouse dont work at all..

what shall i do?
whats wrong with my kernel settings?

can anyone look at my config file?
here are they!

http://www.churches.net/students/dscs/config26.txt

my system is
redhat 9
P4 1.5GHz
intel D845WN motherboard
maxtor dimond plus9
intelli usb optical mouse
a canon pararrel port printer
and a smartlink usb modem.
asus GeForce 2 VGA card






Last edited by demmylls; 12-28-2003 at 01:02 PM.
 
Old 12-28-2003, 01:42 PM   #15
ttilt
Member
 
Registered: Dec 2003
Location: Campinas, Brasil
Distribution: slackware 10
Posts: 150

Rep: Reputation: 15
just for the record I've had a similar problem. I'm using Mandrake 9.2, currently kernel 2.4.22-10mdk.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error while Compiling X shashir Linux - Software 1 09-03-2005 07:36 PM
[C++] Compiling error Ossar Programming 2 06-10-2005 04:32 PM
error compiling Qt 3.3.1 cyberfunk Linux - General 0 04-20-2004 09:27 PM
help with compiling error matt_w_lambert Linux From Scratch 2 09-13-2003 01:31 PM
Compiling Error!! teeno Programming 3 08-20-2001 04:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:31 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