OpenVZ Forum


Home » General » Support » Top Patch exists?
Re: Top Patch exists? [message #7684 is a reply to message #7666] Fri, 20 October 2006 10:19 Go to previous messageGo to previous message
curx
Messages: 739
Registered: February 2006
Location: Nürnberg, Germany
Senior Member

Hi,

compiling these vzproc tools a error occured:
on a debian system i download it, patched in the order like in vzproc.spec and :

# make

gcc -D_GNU_SOURCE -O3 -Wall -Wstrict-prototypes -Wshadow -I/usr/src/openvz/vzproc/procps-2.0.11.orig -I/usr/include/ncurses -I/usr/X11R6/include -fwritable-strings -c top.c
In file included from top.c:114:
proc/sysinfo.h:7:20: vzlist.h: No such file or directory
make: *** [top.o] Error 1

-> to fix, I snipped the vzlist.h out of the vzctl-3.0.12/include/vzlist.h and copied to proc/vzlist.h and modify proc/sysinfo.h, to use the proc/vzlist.h

again:

# make
gcc -Wl,-warn-common -o top top.o proc/libproc.a proc/libproc.a -lncurses
proc/libproc.a(compare.o)(.data+0x0): multiple definition of `ve_status'
top.o(.data+0x18): first defined here
proc/libproc.a(readproc.o)(.data+0x0): multiple definition of `ve_status'
top.o(.data+0x18): first defined here
proc/libproc.a(status.o)(.data+0x0): multiple definition of `ve_status'
top.o(.data+0x18): first defined here
proc/libproc.a(sysinfo.o)(.data+0x0): multiple definition of `ve_status'
top.o(.data+0x18): first defined here
proc/libproc.a(whattime.o)(.data+0x0): multiple definition of `ve_status'
top.o(.data+0x18): first defined here
collect2: ld returned 1 exit status
make: *** [top] Error 1

it's a debian system with :
gcc (GCC) 3.3.5 (Debian 1:3.3.5-13)
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: FC6 VPS
Next Topic: OpenSuse 10 template
Goto Forum:
  


Current Time: Wed Jul 31 16:26:54 GMT 2024

Total time taken to generate the page: 0.02576 seconds