LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   compiling error (https://www.linuxquestions.org/questions/linux-general-1/compiling-error-128996/)

demmylls 12-26-2003 05:27 AM

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?

whansard 12-26-2003 06:16 AM

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.

demmylls 12-26-2003 08:34 AM

[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?

whansard 12-26-2003 08:43 AM

it probably doesn't matter. they probably mean that's where the tools
are looked for by what needs them.

demmylls 12-26-2003 09:56 AM

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?

whansard 12-26-2003 10:02 AM

ext3 filesystem?
/proc filesystem?

demmylls 12-26-2003 10:20 AM

i got ext3 file system check in the xconfig
where do i find /proc settings?

demmylls 12-26-2003 03:25 PM

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

whansard 12-26-2003 09:45 PM

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

demmylls 12-27-2003 03:17 AM

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?

whansard 12-27-2003 03:18 AM

probably under character devices.

demmylls 12-27-2003 12:09 PM

theres no entry that said anything about usb mouse. can you be specific please.

whansard 12-28-2003 12:46 AM

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.

demmylls 12-28-2003 11:47 AM

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






ttilt 12-28-2003 12:42 PM

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


All times are GMT -5. The time now is 06:26 AM.