insmod problem after modutils upgrading

2000-12-13 Thread Corisen

i've upgraded modutils from 2.3.14 (originally installed by RH7,kernel
2.2.16) to 2.3.22 using "rpm -Fvh modultils2.3.22-1.i386.rpm*" as required
by the kernel 2.4test12 compilation. after upgrading, the network module
refused to load anymore (was working fine with insmod 2.3.14) with kernel
2.2.16/RH7. during boot process, the following error message was shown:
insmod: /lib/modules/2.4.0-test12/kernel/drivers/net/8139too.o insmod eth0
failed.

executing "insmod 8139too" at the command prompt shows the following error
message:
using /lib/modules/2.4.0-test12/kernel/drivers/net/8139too.o
/lib/modules/2.4.0-test12/kernel/drivers/net/8139too.o: symbol for
parameter debug not found.

pls kindly advise if i've done something wrong during the upgrade or are
there known compatibility issues with modutils 2.3.22?

how can i make insmod load the network module again pls?

thanks.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



Re: warning during make modules

2000-12-11 Thread Corisen

Hi Keith,

Thanks for your reply. The below mentioned warning messages where displayed
while using modutils 2.3.22. Guess I need to apply the patch you mentioned
to removed all the anonying messages.

As I've not applied any patch before, pls advise where should I download the
patch and the instructions for patching pls.

Thanks.


- Original Message -
From: Keith Owens <[EMAIL PROTECTED]>
To: Corisen <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, December 11, 2000 5:27 PM
Subject: Re: warning during make modules


> On Mon, 11 Dec 2000 17:15:53 +0800,
> "Corisen" <[EMAIL PROTECTED]> wrote:
> >i'm compiling kernel 2.4.0-test11 uder RH7. i've changed the CC= line to
use
> >kgcc, executed "make clean" and "make mrproper". "make menuconfig" and
"make
> >dep" went smoothly. however during the "make modules" process, several
> >warning messages (shown below) appeared:
> >
> >{standard input}: Assembler messages:
> >{standard input}:8: Warning: Ignoring changed section attributes for
> >.modinfo
> >
> >pls kindly advise how can i resolve the warning messages, or can i can
> >safely igonre the warning messages?
>
> You can safely ignore the messages.  But if they get too annoying,
> upgrade to modutils >= 2.3.19 (current is 2.3.22) and apply this patch.
>
> Index: 0-test12-pre7.1/include/linux/module.h
> --- 0-test12-pre7.1/include/linux/module.h Thu, 07 Dec 2000 09:20:04 +1100
kaos (linux-2.4/W/33_module.h 1.1.2.1.2.1.2.1.2.1.1.3.1.1 644)
> +++ 0-test12-pre7.2(w)/include/linux/module.h Mon, 11 Dec 2000 20:26:22
+1100 kaos (linux-2.4/W/33_module.h 1.1.2.1.2.1.2.1.2.1.1.3.1.2 644)
> @@ -247,12 +247,6 @@ static const struct gtype##_id * __modul
>__attribute__ ((unused)) = name
>  #define MODULE_DEVICE_TABLE(type,name) \
>MODULE_GENERIC_TABLE(type##_device,name)
> -/* not put to .modinfo section to avoid section type conflicts */
> -
> -/* The attributes of a section are set the first time the section is
> -   seen; we want .modinfo to not be allocated.  */
> -
> -__asm__(".section .modinfo\n\t.previous");
>
>  /* Define the module variable, and usage macros.  */
>  extern struct module __this_module;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



warning during make modules

2000-12-11 Thread Corisen

i'm compiling kernel 2.4.0-test11 uder RH7. i've changed the CC= line to use
kgcc, executed "make clean" and "make mrproper". "make menuconfig" and "make
dep" went smoothly. however during the "make modules" process, several
warning messages (shown below) appeared:

{standard input}: Assembler messages:
{standard input}:8: Warning: Ignoring changed section attributes for
.modinfo

pls kindly advise how can i resolve the warning messages, or can i can
safely igonre the warning messages?

thanks.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



Re: anyone compiled 2.2.17 on RH7 successfully? [SOLVED]

2000-11-13 Thread Corisen

thanks for all those who replied. your help is really appreciated.

basically, in order to compile kernel in RH7, kgcc *MUST* be used instead of
gcc.

to use kgcc edit the Makefile. find the line below and change to:
CC =$(CROSS_COMPILE)kgcc <(changed to kgcc instead of gcc/cc)

once again. thank you for those who helped :)

cheers!

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



Re: anyone compiled 2.2.17 on RH7 successfully?

2000-11-13 Thread Corisen

thanks for the info. i've kgcc installed during RH7 installation. i've
checked the version to be 2.91.66. i've used the following 2 methods with
kgcc but it won't even allow me to compile:
1. make CC=kgcc zImage
2. change the CC=gcc to CC=kgcc in Makefile

the "make CC=kgcc zImage" process reports the following error messages:

In file included from init/main.c:15:
/usr/i386-glibc21-linux/include/linux/proc_fs.h:283: parse error before
`mode_t'
/usr/i386-glibc21-linux/include/linux/proc_fs.h:283: warning: no semicolon
at end of struct or union
/usr/i386-glibc21-linux/include/linux/proc_fs.h:284: warning: data
definition has no type or storage class
/usr/i386-glibc21-linux/include/linux/proc_fs.h:285: parse error before
`uid'
/usr/i386-glibc21-linux/include/linux/proc_fs.h:285: warning: data
definition has no type or storage class
/usr/i386-glibc21-linux/include/linux/proc_fs.h:286: parse error before
`gid'
/usr/i386-glibc21-linux/include/linux/proc_fs.h:286: warning: data
definition has no type or storage class
/usr/i386-glibc21-linux/include/linux/proc_fs.h:289: parse error before
`off_t'
/usr/i386-glibc21-linux/include/linux/proc_fs.h:290: warning: `struct inode'
declared inside parameter list
/usr/i386-glibc21-linux/include/linux/proc_fs.h:290: warning: its scope is
only this definition or declaration,
/usr/i386-glibc21-linux/include/linux/proc_fs.h:290: warning: which is
probably not what you want.
/usr/i386-glibc21-linux/include/linux/proc_fs.h:293: parse error before
`off_t'
/usr/i386-glibc21-linux/include/linux/proc_fs.h:296: warning: `struct file'
declared inside parameter list
/usr/i386-glibc21-linux/include/linux/proc_fs.h:300: parse error before `}'
/usr/i386-glibc21-linux/include/linux/proc_fs.h:302: parse error before
`off_t'
/usr/i386-glibc21-linux/include/linux/proc_fs.h:305: warning: `struct file'
declared inside parameter list
/usr/i386-glibc21-linux/include/linux/proc_fs.h:308: parse error before
`off_t'
/usr/i386-glibc21-linux/include/linux/proc_fs.h: In function
`proc_scsi_register':
/usr/i386-glibc21-linux/include/linux/proc_fs.h:344: dereferencing pointer
to incomplete type
/usr/i386-glibc21-linux/include/linux/proc_fs.h:345: dereferencing pointer
to incomplete type
/usr/i386-glibc21-linux/include/linux/proc_fs.h: In function
`proc_scsi_unregister':
/usr/i386-glibc21-linux/include/linux/proc_fs.h:359: dereferencing pointer
to incomplete type
/usr/i386-glibc21-linux/include/linux/proc_fs.h:362: `NULL' undeclared
(first use in this function)
/usr/i386-glibc21-linux/include/linux/proc_fs.h:362: (Each undeclared
identifier is reported only once
/usr/i386-glibc21-linux/include/linux/proc_fs.h:362: for each function it
appears in.)
/usr/i386-glibc21-linux/include/linux/proc_fs.h:363: dereferencing pointer
to incomplete type
/usr/i386-glibc21-linux/include/linux/proc_fs.h:365: dereferencing pointer
to incomplete type
/usr/i386-glibc21-linux/include/linux/proc_fs.h:368: sizeof applied to an
incomplete type
.many more lines
.....many more lines


- Original Message -
From: David Relson <[EMAIL PROTECTED]>
To: Corisen <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, November 14, 2000 9:58 AM
Subject: Re: anyone compiled 2.2.17 on RH7 successfully?


> Corisen,
>
> RedHat 7.0's version of gcc, known as gcc 2.96, is incompatible with the
> kernel's code.  Preprocessor changes cause the problem you encountered.
It
> also has some defects in how it optimizes code that would cause the kernel
> to run incorrectly.
>
> The 7.0 distribution includes an older version of gcc, known as kgcc (for
> kernel gcc), that compiles code correctly and can be used for kernel
> compilation.  Install the rpm and go for it!
>
> David
>
> At 08:44 PM 11/13/00, Corisen wrote:
> >has anyone running RedHat7(with kernel 2.2.16, gcc 2.96, kgcc 2.91.66)
> >complied 2.2.17 kernel successfully?
> >
> >i've downloaded the source and gunzip/untar to /root/linux-2.2.17
> >
> >1. make menuconfig (ok)
> >2. make dep (ok)
> >3. make zImage
> >===> lots of warning message
> >===> error: checksum.S:231 badly punctuated parameter list in #define
> >===> error: checksum.S:237 badly punctuated parameter list in #define
> >
> >4. make CC=kgcc zImage
> >===> snapshot of errors reported:
> >In file included from init/main.c:15:
> >/usr/i386-glibc21-linux/include/linux/proc_fs.h:283: parse error before
> >`mode_t'
> >/usr/i386-glibc21-linux/include/linux/proc_fs.h:283: warning: no
semicolon
> >at end of struct or union
> >/usr/i386-glibc21-linux/include/linux/proc_fs.h:284: warning: data
> >definition has no type or storage class
> >/usr/i386-glibc21-linux/include/linux/proc_fs.h:285: parse error b

anyone compiled 2.2.17 on RH7 successfully?

2000-11-13 Thread Corisen

has anyone running RedHat7(with kernel 2.2.16, gcc 2.96, kgcc 2.91.66)
complied 2.2.17 kernel successfully?

i've downloaded the source and gunzip/untar to /root/linux-2.2.17

1. make menuconfig (ok)
2. make dep (ok)
3. make zImage
===> lots of warning message
===> error: checksum.S:231 badly punctuated parameter list in #define
===> error: checksum.S:237 badly punctuated parameter list in #define

4. make CC=kgcc zImage
===> snapshot of errors reported:
In file included from init/main.c:15:
/usr/i386-glibc21-linux/include/linux/proc_fs.h:283: parse error before
`mode_t'
/usr/i386-glibc21-linux/include/linux/proc_fs.h:283: warning: no semicolon
at end of struct or union
/usr/i386-glibc21-linux/include/linux/proc_fs.h:284: warning: data
definition has no type or storage class
/usr/i386-glibc21-linux/include/linux/proc_fs.h:285: parse error before
`uid'
/usr/i386-glibc21-linux/include/linux/proc_fs.h:285: warning: data
definition has no type or storage class
/usr/i386-glibc21-linux/include/linux/proc_fs.h:286: parse error before
`gid'
/usr/i386-glibc21-linux/include/linux/proc_fs.h:286: warning: data
definition has no type or storage class
many more errors
many more errors


5. changed CC= kgcc in Makefile and execute "make zImage"
===> same error as 3 (strange, seems like the the compilation is still by
gcc and not kgcc despite the change)

i was able to compile 2.4.0-test10 kernel image with "make CC=kgcc bzImage"

pls kindly advise on the possible solutions.

thanks.





-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



compiling 2.4.0-test10 kernel

2000-11-10 Thread Corisen

hi,

i'm currently running RH7, with 2.2.16-22 kernel, gcc 2.96 on a Sharp Actius
250 notebook.

i've manged to successfully compile 2.4.0-test10 kernel. however, upon
startup there are some failed/error messages:
1. finding module dependencies: depmod *** Unresolved symbols in
/lib/modules/2.4.0-test10/kernel/arch/i386/kernel/apm.o
2. Starting NFS lockd: lockdsvc: Invalid argument [FAILED]

during shutdown, the following failed messages was noticed:
1. Turning off accounting: aacton: Function not implemented
2. Shutting down NFS lockd [FAILED]

the system is also not able to shutdown/power off completely after
"shutdown -h now". however, using RH7 2.2.16 kernel, the notebook was able
to power off. how can i configure it to turn off automatically?

pls kindly advise where i have gone wrong and how to rectify the above
errors.

pls pardon my ignorance as i'm quite new to linux and this is my first
kernel compilation attempt.

thank you very much.

ps: i've tried the kernel compilation on a HP Vectra PII PC and the error
messages are similar.




-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/