2006-11-01 10:09:26

by Vasily Averin

[permalink] [raw]
Subject: 2.6.19-rc3-mm1: compilation fails if CONFIG_KEVENT is disabled

Hello Evgeniy,

Probably this issue is already known for you, but anyway:

[linux-2.6.19-rc3-mm1]$ ARCH=i386 make
CHK include/linux/version.h
CHK include/linux/utsrelease.h
CHK include/linux/compile.h
GEN .version
CHK include/linux/compile.h
UPD include/linux/compile.h
CC init/version.o
LD init/built-in.o
LD .tmp_vmlinux1
arch/i386/kernel/built-in.o(.rodata+0x520): In function `sys_call_table':
: undefined reference to `sys_kevent_get_events'
arch/i386/kernel/built-in.o(.rodata+0x524): In function `sys_call_table':
: undefined reference to `sys_kevent_ctl'
arch/i386/kernel/built-in.o(.rodata+0x528): In function `sys_call_table':
: undefined reference to `sys_kevent_wait'
make: *** [.tmp_vmlinux1] Error 1
[linux-2.6.19-rc3-mm1]$ grep KEVENT .config
CONFIG_GENERIC_CLOCKEVENTS=y
# CONFIG_KEVENT is not set

thank you,
Vasily Averin


2006-11-01 10:44:01

by Evgeniy Polyakov

[permalink] [raw]
Subject: Re: 2.6.19-rc3-mm1: compilation fails if CONFIG_KEVENT is disabled

On Wed, Nov 01, 2006 at 01:09:10PM +0300, Vasily Averin ([email protected]) wrote:
> Hello Evgeniy,

Hi Vasily.

> Probably this issue is already known for you, but anyway:
>
> [linux-2.6.19-rc3-mm1]$ ARCH=i386 make
> CHK include/linux/version.h
> CHK include/linux/utsrelease.h
> CHK include/linux/compile.h
> GEN .version
> CHK include/linux/compile.h
> UPD include/linux/compile.h
> CC init/version.o
> LD init/built-in.o
> LD .tmp_vmlinux1
> arch/i386/kernel/built-in.o(.rodata+0x520): In function `sys_call_table':
> : undefined reference to `sys_kevent_get_events'
> arch/i386/kernel/built-in.o(.rodata+0x524): In function `sys_call_table':
> : undefined reference to `sys_kevent_ctl'
> arch/i386/kernel/built-in.o(.rodata+0x528): In function `sys_call_table':
> : undefined reference to `sys_kevent_wait'
> make: *** [.tmp_vmlinux1] Error 1
> [linux-2.6.19-rc3-mm1]$ grep KEVENT .config
> CONFIG_GENERIC_CLOCKEVENTS=y
> # CONFIG_KEVENT is not set

Hmm, works for me in 2.6.19 kevent git, I will check if some patches
sneaked from -mm.

Thanks.

> thank you,
> Vasily Averin

--
Evgeniy Polyakov

2006-11-07 10:16:20

by Evgeniy Polyakov

[permalink] [raw]
Subject: Re: 2.6.19-rc3-mm1: compilation fails if CONFIG_KEVENT is disabled

On Wed, Nov 01, 2006 at 01:09:10PM +0300, Vasily Averin ([email protected]) wrote:
> arch/i386/kernel/built-in.o(.rodata+0x520): In function `sys_call_table':
> : undefined reference to `sys_kevent_get_events'
> arch/i386/kernel/built-in.o(.rodata+0x524): In function `sys_call_table':
> : undefined reference to `sys_kevent_ctl'
> arch/i386/kernel/built-in.o(.rodata+0x528): In function `sys_call_table':
> : undefined reference to `sys_kevent_wait'
> make: *** [.tmp_vmlinux1] Error 1
> [linux-2.6.19-rc3-mm1]$ grep KEVENT .config
> CONFIG_GENERIC_CLOCKEVENTS=y
> # CONFIG_KEVENT is not set

Could you send output of
cat kernel/sys_ni.c | grep kevent
there should be all above syscalls, but it looks like they are not.

P.S. I will remove [email protected] from Cc: next time since it does not
allow posts from not subscribed people.

--
Evgeniy Polyakov

2006-11-07 10:35:50

by Vasily Averin

[permalink] [raw]
Subject: Re: 2.6.19-rc3-mm1: compilation fails if CONFIG_KEVENT is disabled

Evgeniy Polyakov wrote:
> On Wed, Nov 01, 2006 at 01:09:10PM +0300, Vasily Averin ([email protected]) wrote:
>> arch/i386/kernel/built-in.o(.rodata+0x520): In function `sys_call_table':
>> : undefined reference to `sys_kevent_get_events'
>> arch/i386/kernel/built-in.o(.rodata+0x524): In function `sys_call_table':
>> : undefined reference to `sys_kevent_ctl'
>> arch/i386/kernel/built-in.o(.rodata+0x528): In function `sys_call_table':
>> : undefined reference to `sys_kevent_wait'
>> make: *** [.tmp_vmlinux1] Error 1
>> [linux-2.6.19-rc3-mm1]$ grep KEVENT .config
>> CONFIG_GENERIC_CLOCKEVENTS=y
>> # CONFIG_KEVENT is not set
>
> Could you send output of
> cat kernel/sys_ni.c | grep kevent
> there should be all above syscalls, but it looks like they are not.

Sorry, I've switched to new kernels and removed your tree already. :(

Thank you,
Vasily Averin