2000-12-09 16:36:11

by John Summerfield

[permalink] [raw]
Subject: Kernel 2.4.0-test11 does not build:

/usr/src/linux/include/linux/modules/irmod.ver:139: warning: this is the
location of the previous definition
/usr/src/linux/include/linux/modules/irsyms.ver:145: warning:
`__ver_irda_task_kick' redefined
/usr/src/linux/include/linux/modules/irmod.ver:141: warning: this is the
location of the previous definition
/usr/src/linux/include/linux/modules/irsyms.ver:147: warning:
`__ver_irda_task_next_state' redefined
/usr/src/linux/include/linux/modules/irmod.ver:143: warning: this is the
location of the previous definition
/usr/src/linux/include/linux/modules/irsyms.ver:149: warning:
`__ver_irda_task_delete' redefined
/usr/src/linux/include/linux/modules/irmod.ver:145: warning: this is the
location of the previous definition
/usr/src/linux/include/linux/modules/irsyms.ver:151: warning:
`__ver_async_wrap_skb' redefined
/usr/src/linux/include/linux/modules/irmod.ver:147: warning: this is the
location of the previous definition
/usr/src/linux/include/linux/modules/irsyms.ver:153: warning:
`__ver_async_unwrap_char' redefined
/usr/src/linux/include/linux/modules/irmod.ver:149: warning: this is the
location of the previous definition
In file included from /usr/src/linux/include/linux/modversions.h:40,
from /usr/src/linux/include/linux/module.h:21,
from ksyms.c:14:
/usr/src/linux/include/linux/modules/ksyms.ver:504: warning: `del_timer_sync'
redefined
/usr/src/linux/include/linux/timer.h:34: warning: this is the location of the
previous definition
In file included from /usr/src/linux/include/linux/interrupt.h:45,
from ksyms.c:21:
/usr/src/linux/include/asm/hardirq.h:37: warning: `synchronize_irq' redefined
/usr/src/linux/include/linux/modules/i386_ksyms.ver:84: warning: this is the
location of the previous definition
In file included from ksyms.c:17:
/usr/src/linux/include/linux/kernel_stat.h: In function `kstat_irqs':
/usr/src/linux/include/linux/kernel_stat.h:48: `smp_num_cpus' undeclared
(first use in this function)
/usr/src/linux/include/linux/kernel_stat.h:48: (Each undeclared identifier is
reported only once
/usr/src/linux/include/linux/kernel_stat.h:48: for each function it appears
in.)
make[2]: *** [ksyms.o] Error 1
make[2]: Leaving directory `/usr/src/linux/kernel'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/usr/src/linux/kernel'
make: *** [_dir_kernel] Error 2
[summer@possum linux]$

I HAVE built this kernel for another computer. I was having problems with
this, so I remove the .config, created a new one with "make oldconfig" and the
customised with make xconfig"



Attachments:
K (2.60 kB)
K

2000-12-09 16:39:21

by Chmouel Boudjnah

[permalink] [raw]
Subject: Re: Kernel 2.4.0-test11 does not build:

John Summerfield <[email protected]> writes:

> I HAVE built this kernel for another computer. I was having problems with
> this, so I remove the .config, created a new one with "make oldconfig" and the
> customised with make xconfig"

make mrproper


--
MandrakeSoft Inc http://www.chmouel.org
--Chmouel

2000-12-10 00:03:31

by Mike A. Harris

[permalink] [raw]
Subject: Re: Kernel 2.4.0-test11 does not build:

On Sat, 9 Dec 2000, John Summerfield wrote:

>/usr/src/linux/include/linux/modules/irmod.ver:139: warning: this is the
>location of the previous definition
>/usr/src/linux/include/linux/modules/irsyms.ver:145: warning:
>`__ver_irda_task_kick' redefined
>/usr/src/linux/include/linux/modules/irmod.ver:141: warning: this is the
>location of the previous definition
>/usr/src/linux/include/linux/modules/irsyms.ver:147: warning:
>`__ver_irda_task_next_state' redefined
>/usr/src/linux/include/linux/modules/irmod.ver:143: warning: this is the
>location of the previous definition
>/usr/src/linux/include/linux/modules/irsyms.ver:149: warning:
>`__ver_irda_task_delete' redefined
>/usr/src/linux/include/linux/modules/irmod.ver:145: warning: this is the
>location of the previous definition
>/usr/src/linux/include/linux/modules/irsyms.ver:151: warning:
>`__ver_async_wrap_skb' redefined
>/usr/src/linux/include/linux/modules/irmod.ver:147: warning: this is the
>location of the previous definition
>/usr/src/linux/include/linux/modules/irsyms.ver:153: warning:
>`__ver_async_unwrap_char' redefined
>/usr/src/linux/include/linux/modules/irmod.ver:149: warning: this is the
>location of the previous definition
>In file included from /usr/src/linux/include/linux/modversions.h:40,
> from /usr/src/linux/include/linux/module.h:21,
> from ksyms.c:14:
>/usr/src/linux/include/linux/modules/ksyms.ver:504: warning: `del_timer_sync'
>redefined
>/usr/src/linux/include/linux/timer.h:34: warning: this is the location of the
>previous definition
>In file included from /usr/src/linux/include/linux/interrupt.h:45,
> from ksyms.c:21:
>/usr/src/linux/include/asm/hardirq.h:37: warning: `synchronize_irq' redefined
>/usr/src/linux/include/linux/modules/i386_ksyms.ver:84: warning: this is the
>location of the previous definition
>In file included from ksyms.c:17:
>/usr/src/linux/include/linux/kernel_stat.h: In function `kstat_irqs':
>/usr/src/linux/include/linux/kernel_stat.h:48: `smp_num_cpus' undeclared
>(first use in this function)
>/usr/src/linux/include/linux/kernel_stat.h:48: (Each undeclared identifier is
>reported only once
>/usr/src/linux/include/linux/kernel_stat.h:48: for each function it appears
>in.)
>make[2]: *** [ksyms.o] Error 1
>make[2]: Leaving directory `/usr/src/linux/kernel'
>make[1]: *** [first_rule] Error 2
>make[1]: Leaving directory `/usr/src/linux/kernel'
>make: *** [_dir_kernel] Error 2
>[summer@possum linux]$
>
>I HAVE built this kernel for another computer. I was having problems with
>this, so I remove the .config, created a new one with "make oldconfig" and the
>customised with make xconfig"

Try doing a "make distclean" or "make mrproper" first. Are you
using kgcc?


----------------------------------------------------------------------
Mike A. Harris - Linux advocate - Open source advocate
This message is copyright 2000, all rights reserved.
Views expressed are my own, not necessarily shared by my employer.
----------------------------------------------------------------------

If you're interested in computer security, and want to stay on top of the
latest security exploits, and other information, visit:

http://www.securityfocus.com

2000-12-10 02:39:20

by John Summerfield

[permalink] [raw]
Subject: Re: Kernel 2.4.0-test11 does not build:


[email protected] said:
> Try doing a "make distclean" or "make mrproper" first. Are you using
> kgcc?

Neither works. I'm using gcc 2.95-3 on RHL 6.2

In desperation, I removed the source tree and started afresh from test1.

These are the commands I used:


[summer@possum src]$ cat reinstall
#!/bin/bash
set -ex
cd /usr/src
rm -rf linux
tar Ixf /u03/kernels/patches/linux-2.4.0-test1.tar.bz2
dir -1rt `find /u03/kernels/patches/ -name patch-2.4.0-t\*.gz -newer
/u03/kernels/patches/patch-2.4.0-test1.gz` | xargs --max-lines=1 gzip -dc |
patch -p0
find linux -name \*.rej
cd linux
make mrproper
cp /u03/kernels/configs/possum-2.4.0-test11.config .config
make dep bzImage modules


and it still did not build.

In a hunch, i tried this:

set -ex
cd /usr/src
rm -rf linux
tar Ixf /u03/kernels/patches/linux-2.4.0-test1.tar.bz2
dir -1rt `find /u03/kernels/patches/ -name patch-2.4.0-t\*.gz -newer
/u03/kernels/patches/patch-2.4.0-test1.gz` | xargs --max-lines=1 gzip -dc |
patch -p0
find linux -name \*.rej
cd linux
make mrproper
cp /u03/kernels/configs/possum-2.4.0-test11.config .config
make oldconfig dep bzImage modules

and the oldconfig resulting in me bing asked three questions (and not those
new in test11).

The result builds.

It seems to me that some of the various "make *config" options have the
ability to create defective configurations in some circumstances.

I'm off to enjoy my new kernel now;-)