[Sig] RH 7.1 kernel recompile
jeff zartler
jacaz@fast.net
Sat, 26 May 2001 08:08:15 -0400
No, I didn't try that, but I found the following on bugzilla, I am also using
both the tulip an dummy drivers. You will notice something about "If
"linux/versions.h" is included in "dummy.c", the module will build." How
would I go about including versions.h in dummy.c?
Jeff
If "linux/versions.h" is included in "dummy.c", the module will build.
Same problem was reproduced in tulip driver.
Reproducible: Always
Steps to Reproduce:
1. Install RH 7.1
2. cd /usr/src/linux-2.4
3. make menuconfig
4. set tulip and dummy network drivers to be modules
5. save config
6. make dep ; make modules
7. note errors
Actual Results: On a clean install of RH 7.1, kernel modules won't build
with errors similar to:
In file included from dummy.c:34:
/usr/src/linux-2.4/include/linux/module.h:173: nondigits in number and
nonhexadecimal
/usr/src/linux-2.4/include/linux/module.h:173: nondigits in number and
nonhexadecimal
/usr/src/linux-2.4/include/linux/module.h:173: nondigits in number and
nonhexadecimal
/usr/src/linux-2.4/include/linux/module.h:173: parse error before
`62dada05'
If "linux/versions.h" is included in "dummy.c", the module will build.
Same problem was reproduced in tulip driver.
Expected Results: Modules should build without errors.
On Friday 25 May 2001 04:46 pm, you wrote:
> did you edit the Makefile or is it the configure file and change
>
> HOST = gcc
>
> to
>
> HOST =kgcc
> ?
>
> RedHat 7.0 required this.
>
>
> On Sat, 26 May 2001 02:24:47 -0400
>
> jeff zartler <jacaz@fast.net> wrote:
> > Has anyone been able to recompile the kernel in RH 7.1?
> >
> > Been trying to recompile the kernel (2.4.2-2) in Redhat 7.1 Make
>
> modules
>
> > fails everytime. Checked Usenet and this seems to be a common problem.
> >
> > I did: make mkproper, make xconfig, etc. Following the instructions in
>
> the
>
> > RedHat Customization Guide.
> >
> > I redirected the errors from make modules to a file, module.error. The
> > resulting file was 908 lines long, most of it like the upper section of
>
> the
>
> > file listed below. The beginning and end of the file are listed below.
> >
> > ********** beginning of file********************
> >
> > In file included from dummy.c:34:
> > /usr/src/linux-2.4/include/linux/module.h:173: nondigits in number and
>
> not
>
> > hexadecimal
> > /usr/src/linux-2.4/include/linux/module.h:173: nondigits in number and
>
> not
>
> > hexadecimal
> > /usr/src/linux-2.4/include/linux/module.h:173: nondigits in number and
>
> not
>
> > hexadecimal
> > /usr/src/linux-2.4/include/linux/module.h:173: nondigits in number and
>
> not
>
> > hexadecimal
> > /usr/src/linux-2.4/include/linux/module.h:173: parse error before
>
> `62dada05'
>
> > /usr/src/linux-2.4/include/linux/module.h:173:
> > `inter_module_register_R_ver_str' declared as function returning a
>
> function
>
> > /usr/src/linux-2.4/include/linux/module.h:173: warning: function
>
> declaration
>
> > isn't a prototype
> > /usr/src/linux-2.4/include/linux/module.h:174: nondigits in number and
>
> not
>
> > hexadecimal
> > /usr/src/linux-2.4/include/linux/module.h:174: missing white space after
> >
> > number `7a9e845'
> > /usr/src/linux-2.4/include/linux/module.h:174: parse error before
>
> `7a9e845'
>
> > /usr/src/linux-2.4/include/linux/module.h:174:
> > `inter_module_unregister_R_ver_str' declared as function returning a
>
> function
>
> > /usr/src/linux-2.4/include/linux/module.h:174: warning: function
>
> declaration
>
> > isn't a prototype
> > /usr/src/linux-2.4/include/linux/module.h:175:
>
> `inter_module_get_R_ver_str'
>
> > declared as function returning a function
> > /usr/src/linux-2.4/include/linux/module.h:175: warning: parameter names
> > (without types) in function declaration
> > **************************snip*********************************
> > dummy.c:59: called object is not a function
> > dummy.c: In function `dummy_cleanup_module':
> > dummy.c:117: nondigits in number and not hexadecimal
> > dummy.c:117: nondigits in number and not hexadecimal
> > dummy.c:117: nondigits in number and not hexadecimal
> > dummy.c:117: nondigits in number and not hexadecimal
> > dummy.c:117: called object is not a function
> > make[2]: *** [dummy.o] Error 1
> > make[1]: *** [_modsubdir_net] Error 2
> > make: *** [_mod_drivers] Error 2
> >
> > Jeff
> >
> >
> > _______________________________________________
> > Sig mailing list
> > Sig@thelinuxlink.net
> > http://www.thelinuxlink.net/mailman/listinfo/sig