OpenVZ Forum


Home » General » Support » Fail to compile 2.6.18-028stab049.1 on amd64 machine
Fail to compile 2.6.18-028stab049.1 on amd64 machine [message #23583] Tue, 20 November 2007 15:43 Go to next message
draga is currently offline  draga
Messages: 20
Registered: July 2007
Junior Member
Here's what gets out from a make-kpkg (on debian):

LD init/built-in.o
LD .tmp_vmlinux1
arch/x86_64/kernel/built-in.o: In function `alloc_ldt':
/tmp/linux-2.6.18/arch/x86_64/kernel/ldt.c:50: undefined reference to `ub_kmalloc'
mm/built-in.o: In function `out_of_memory':
/tmp/linux-2.6.18/mm/oom_kill.c:353: undefined reference to `show_slab_info'
fs/built-in.o: In function `alloc_fdset':
/tmp/linux-2.6.18/fs/file.c:219: undefined reference to `ub_kmalloc'
fs/built-in.o: In function `alloc_fd_array':
/tmp/linux-2.6.18/fs/file.c:50: undefined reference to `ub_kmalloc'
kernel/built-in.o: In function `ub_dentry_walk_node':
/tmp/linux-2.6.18/kernel/ub/ub_dcache.c:446: undefined reference to `kmem_cache_free_block'
/tmp/linux-2.6.18/kernel/ub/ub_dcache.c:451: undefined reference to `kmem_cache_free_block'
net/built-in.o: In function `scm_fp_dup':
/tmp/linux-2.6.18/net/core/scm.c:281: undefined reference to `ub_kmalloc'
net/built-in.o: In function `scm_fp_copy':
/tmp/linux-2.6.18/net/core/scm.c:75: undefined reference to `ub_kmalloc'
net/built-in.o: In function `alloc_netdev':
/tmp/linux-2.6.18/net/core/dev.c:3407: undefined reference to `ub_kzalloc'
drivers/built-in.o: In function `alloc_tty_struct':
/tmp/linux-2.6.18/drivers/char/tty_io.c:196: undefined reference to `ub_kmalloc'
drivers/built-in.o: In function `init_dev':
/tmp/linux-2.6.18/drivers/char/tty_io.c:1971: undefined reference to `ub_kmalloc'
/tmp/linux-2.6.18/drivers/char/tty_io.c:1979: undefined reference to `ub_kmalloc'
/tmp/linux-2.6.18/drivers/char/tty_io.c:2005: undefined reference to `ub_kmalloc'
/tmp/linux-2.6.18/drivers/char/tty_io.c:2013: undefined reference to `ub_kmalloc'
drivers/built-in.o: In function `sysrq_handle_showmem':
/tmp/linux-2.6.18/drivers/char/sysrq.c:202: undefined reference to `show_slab_info'
ipc/built-in.o: In function `ipc_rcu_alloc':
/tmp/linux-2.6.18/ipc/util.c:517: undefined reference to `ub_kmalloc'
ipc/built-in.o: In function `ipc_alloc':
/tmp/linux-2.6.18/ipc/util.c:427: undefined reference to `ub_kmalloc'
ipc/built-in.o: In function `sysv_msg_load':
/tmp/linux-2.6.18/ipc/msgutil.c:44: undefined reference to `ub_kmalloc'
/tmp/linux-2.6.18/ipc/msgutil.c:64: undefined reference to `ub_kmalloc'
ipc/built-in.o: In function `get_undo_list':
/tmp/linux-2.6.18/ipc/sem.c:1014: undefined reference to `ub_kmalloc'
ipc/built-in.o:/tmp/linux-2.6.18/ipc/sem.c:1141: more undefined references to `ub_kmalloc' follow
make[1]: *** [.tmp_vmlinux1] Error 1
make[1]: Leaving directory `/tmp/linux-2.6.18'
make: *** [debian/stamp-build-kernel] Error 2


Any idea? Thank you!
Re: Fail to compile 2.6.18-028stab049.1 on amd64 machine [message #23648 is a reply to message #23583] Wed, 21 November 2007 13:16 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hi,

1. Can you please thoroughly describe how you get your source? (step by step).
2. Have you change it manually or applied any external patch?

Thank You!
Re: Fail to compile 2.6.18-028stab049.1 on amd64 machine [message #23667 is a reply to message #23648] Wed, 21 November 2007 21:10 Go to previous messageGo to next message
draga is currently offline  draga
Messages: 20
Registered: July 2007
Junior Member
Sure.
1. I get the source downloading the 2.6.18 tarball from the main kernel site. Then I download the ovz patch (as I've always done and as it works on the x86 arch) and apply it. It applies without any problem. Then I get the old 2.6.18 .config file, I type a "make oldconfig" and put some missing variables (like the grsecurity support).
After this I just give a "make-kpkg --initrd kernel-image kernel-headers" and, after some compiling, it stops with that error.
Performing a normale "make" gives the same result.
No other patches have been applied.

Thank you!
Re: Fail to compile 2.6.18-028stab049.1 on amd64 machine [message #23695 is a reply to message #23667] Thu, 22 November 2007 11:57 Go to previous message
curx
Messages: 739
Registered: February 2006
Location: Nürnberg, Germany
Senior Member

Hi,

can you please post your kernel-config,
or use a OpenVZ kernel-config (-> http://download.openvz.org/kernel/branches/2.6.18/stable/con figs/ ) and edit it.

Previous Topic: FTP login problem
Next Topic: yum.repo per VE
Goto Forum:
  


Current Time: Sat Nov 16 14:17:51 GMT 2024

Total time taken to generate the page: 0.03096 seconds