OpenVZ Forum


Home » General » Support » *SOLVED* compat_nanosleep_restart undeclared
*SOLVED* compat_nanosleep_restart undeclared [message #9917] Tue, 30 January 2007 06:57 Go to next message
wilf is currently offline  wilf
Messages: 30
Registered: January 2007
Location: UK
Member
Hi All,

I have 'got around this' by using a kernel I patched a few days ago, but...

I am moving things around between machines, and needed to turn another machine into an OpenVZ server. This is on site at one of my customers. The boxes are dual opteron X2 machines, with LSI MegaRAID controllers. I use 64bit 2006.1 Gentoo.

I wasn't particularly bothered about this as I am now fairly used to being able top pull a working system together. I have just done exactly the same thing for one of my own servers - and it works a treat (although the hardware isn't quite as nice Smile).

Hence I followed my usual approach:-
fetch the vanilla 2.6.18 kernel
fetch the kernel patches
fetch the kernel .config
Apply the patches
Configure the kernel

All AOK so far, until...

make the kernel
When I received
ff_dev linux-2.6.18.openvz # cat make.log
  CHK     include/linux/version.h
  CHK     include/linux/utsrelease.h
  CHK     include/linux/compile.h
  CC [M]  kernel/cpt/cpt_process.o
kernel/cpt/cpt_process.c: In function 'dump_one_process':
kernel/cpt/cpt_process.c:658: error: 'compat_nanosleep_restart' undeclared (first use in this function)
kernel/cpt/cpt_process.c:658: error: (Each undeclared identifier is reported only once
kernel/cpt/cpt_process.c:658: error: for each function it appears in.)
make[2]: *** [kernel/cpt/cpt_process.o] Error 1
make[1]: *** [kernel/cpt] Error 2
make: *** [kernel] Error 2

I got around this by zipping up my own patched installation and installing it.

If I this is a real problem and I can help, I am happy to answer questions/do stuff.

Best Regards, Paul.


[Updated on: Tue, 30 January 2007 10:19]

Report message to a moderator

Re: compat_nanosleep_restart undeclared [message #9919 is a reply to message #9917] Tue, 30 January 2007 09:09 Go to previous messageGo to next message
dim is currently offline  dim
Messages: 344
Registered: August 2005
Senior Member
Paul, please, try attached patch.

http://static.openvz.org/openvz_userbar_en.gif
Re: compat_nanosleep_restart undeclared [message #9920 is a reply to message #9919] Tue, 30 January 2007 09:48 Go to previous messageGo to next message
wilf is currently offline  wilf
Messages: 30
Registered: January 2007
Location: UK
Member
Hello Dmitry,

That was quick! read the patch, makes sense and gets a bit further...

ff_dev linux-2.6.18.openvz # patch -p1 < diff-cpt-compat-fix-20070130
patching file kernel/cpt/cpt_process.c
ff_dev linux-2.6.18.openvz # make
  CHK     include/linux/version.h
  CHK     include/linux/utsrelease.h
  CHK     include/linux/compile.h
  GEN     usr/initramfs_data.cpio.gz
  AS      usr/initramfs_data.o
  LD      usr/built-in.o
  CC [M]  kernel/cpt/cpt_process.o
  CC [M]  kernel/cpt/cpt_mm.o
  CC [M]  kernel/cpt/cpt_files.o
  CC [M]  kernel/cpt/cpt_kernel.o
  CC [M]  kernel/cpt/cpt_socket.o
  CC [M]  kernel/cpt/cpt_socket_in.o
  CC [M]  kernel/cpt/cpt_tty.o
  CC [M]  kernel/cpt/cpt_sysvipc.o
  CC [M]  kernel/cpt/cpt_net.o
  CC [M]  kernel/cpt/cpt_conntrack.o
  CC [M]  kernel/cpt/cpt_epoll.o
  CC [M]  kernel/cpt/cpt_ubc.o
  AS [M]  kernel/cpt/cpt_x8664.o
  CC [M]  kernel/cpt/rst_proc.o
  CC [M]  kernel/cpt/rst_undump.o
kernel/cpt/rst_undump.c: In function 'hook':
kernel/cpt/rst_undump.c:337: error: 'compat_nanosleep_restart' undeclared (first use in this function)
kernel/cpt/rst_undump.c:337: error: (Each undeclared identifier is reported only once
kernel/cpt/rst_undump.c:337: error: for each function it appears in.)
make[2]: *** [kernel/cpt/rst_undump.o] Error 1
make[1]: *** [kernel/cpt] Error 2
make: *** [kernel] Error 2

Best Regards, Paul.
Re: compat_nanosleep_restart undeclared [message #9921 is a reply to message #9920] Tue, 30 January 2007 09:55 Go to previous message
wilf is currently offline  wilf
Messages: 30
Registered: January 2007
Location: UK
Member
Hi Dmitry,

I applied the same patch to undump.c and Hey Presto! It compiles.

In "kernel/cpt/rst_undump.c", Line 336
/* #ifdef CONFIG_X86_64 // - old knackered code PWI 20070130 */
#if defined(CONFIG_X86_64) && defined(CONFIG_COMPAT)
                        if (!ti->cpt_64bit)
                                current->thread_info->restart_block.fn = compat_nanosleep_restart;
#endif


Best Regards, Paul.
Previous Topic: outbound connectivity lost on all VE nodes
Next Topic: *SOLVED* Fedora core 6 and permission
Goto Forum:
  


Current Time: Wed Aug 07 09:42:46 GMT 2024

Total time taken to generate the page: 0.02836 seconds