[Debian] Re: Bug#403712: kernel-patch-openvz: Cannot compile kernel, undefined symbols

David Baron d_baron at 012.net.il
Wed Dec 20 08:50:20 EST 2006


>>> Hi
>>>
>>> I have built it now and I have no problem building. Not at least
>>> with make-kpkg.
>>
>>I use this.
>>
>>> According to upstream you did not run make oldconfig for some reason?
>>
>>It does this anyway. I compied to .config from the non-patched kernel and 
was 
>>asked to fill in various new items inserted by the patch.

>>>
>>> So my question to you (before I close this bug) is how exactly you
>>> built the kernel?

>>Here is the script that I use:
>>#!/bin/sh
>>export PATCH_THE_KERNEL=true
>>cd /usr/src/linux
>>sudo make-kpkg --append-to-version -davidb-ovz --added_patches openvz 
>>kernel_image
>>
>> Did you do as described in the README file or in some other way?

>>I started over, fresh untar of the sources, the resultant .config from the 
>>previous attempt and (another bug, this in the current kernel sources), made 
>>the symlink in /usr/src/linux/include  asm --> asm-i386 (or whatever one is 
>>using!)

>>Reran the script.

>>A few days ago when I filed the bug, the patch was followed by a series of 
>>deletions. This time, there were none, so just maybe it is OK....

>>Let you know. (I have never succeded in booting one of these but that is 
>>another issue!)

>Got the undefine references once again. Here is the complete error 
>termination:
>
>LD      .tmp_vmlinux1
>kernel/built-in.o: In function `ve_netdev_cleanup':
>vecalls.c:(.text+0x32a16): undefined reference to `addrconf_ifdown'
>kernel/built-in.o: In function `fini_ve_sysctl':
>vecalls.c:(.text+0x3315a): undefined reference to `addrconf_sysctl_fini'
>kernel/built-in.o: In function `fini_ve_proc':
>vecalls.c:(.text+0x33187): undefined reference to `ve_snmp_proc_fini'
>kernel/built-in.o: In function `real_do_env_free':
>(.text+0x336d4): undefined reference to `addrconf_sysctl_free'
>kernel/built-in.o: In function `env_cleanup':
>vecalls.c:(.text+0x33c3c): undefined reference to `fini_ve_route6'
>vecalls.c:(.text+0x33c4c): undefined reference to `ve_ndisc_fini'
>kernel/built-in.o: In function `do_env_create':
>vecalls.c:(.text+0x349a7): undefined reference to `ve_snmp_proc_init'
>vecalls.c:(.text+0x34a96): undefined reference to `ve_ndisc_init'
>vecalls.c:(.text+0x34ac2): undefined reference to `init_ve_route6'
>vecalls.c:(.text+0x34c36): undefined reference to `fini_ve_route6'
>vecalls.c:(.text+0x34c42): undefined reference to `ve_ndisc_fini'
>vecalls.c:(.text+0x34e6a): undefined reference to `addrconf_sysctl_init'
>make[1]: *** [.tmp_vmlinux1] Error 1
>make[1]: Leaving directory `/usr/src/ovz/linux-source-2.6.18'
>make: *** [debian/stamp-build-kernel] Error 2

This would seem to indicate one (or more) pieces that need be compiled into 
the kernel, would it not? (I do compile in all the ovz stuff rather than 
leave as modules because I had missing symbols on boot the last time I 
tried.)

If someone could point me in the correct direction .... :-)


More information about the Debian mailing list