WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Problem to compile ant to use the xenstat perl/python bindin

To: xen-devel@xxxxxxxxxxxxxxxxxxx, xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Problem to compile ant to use the xenstat perl/python binding
From: "Marco Sinhoreli" <msinhore@xxxxxxxxx>
Date: Fri, 14 Sep 2007 21:19:04 -0300
Delivery-date: Fri, 14 Sep 2007 17:19:42 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=oQW1DM/l3L7GaUsnoQzNu9q5QEvBtDYTk/iG7hyqKlg=; b=n4E+KSKxn4mpLlU6SnhOCu1hx87gIQfATWB/lxY7Pu/4iQGxsNWFh0HTXkElsjkOwLVdEZHx/EAR7gl6RWHMSdzQ3Qao3+qsUUavsNI0fa4iHuIHeZTEqcXe9/P5wKJVEoFyLHMkzfK/tdPnixsAAYkYaj5bX41Cq2+n26IKvnc=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=sLYlEdlQifJncifgQWy5ymyDcbnGW9A6AK6ULHpkjb8r9A6QeZZv+43gY5f9NAmmffBmJbdWTFMcIVT/UwVTUrZRE72vlp/gVhLFGmqjpw3vzHzkph/pCJHWOB6vz+5qVgI0qCKBuwc+LzkSURCu2ja97hXtzMFONfw1N1PIQzg=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hello all,

I tried to compile the xenstat python binding and didn't work with
64bit machine:

# output in a 64bit:
barad-dur:/usr/src/xen-3.1.0-src/tools/xenstat/libxenstat# make all-bindings
gcc -O2 -fomit-frame-pointer -m64 -DNDEBUG -std=gnu99 -Wall
-Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement
-D__XEN_TOOLS__  -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE  -Isrc
-I../../../tools/libxc -I../../../tools/xenstore    -Lsrc
-L../../../tools/xenstore/ -L../../../tools/libxc/ -Wl,-soname
-Wl,libxenstat.so.0 -shared -o src/libxenstat.so.0.0 \
            src/xenstat.o src/xenstat_linux.o -lxenstore -lxenctrl
/usr/bin/ld: src/xenstat.o: relocation R_X86_64_32S against `a local
symbol' can not be used when making a shared object; recompile with
-fPIC
src/xenstat.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [src/libxenstat.so.0.0] Error 1
# end output

In a 32bit instalation was compiled but didn't  work:
# output python:
>>> import xenstat
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "xenstat.py", line 7, in ?
    import _xenstat
ImportError: ./_xenstat.so: undefined symbol: xenstat_init
# end output

In both cases, I have changed the PYTHON_VERSION in
tools/xenstat/libxenstat/Makefile.

I want to use the python binding in my project. Anybody have idea?

-- 
Marco Sinhoreli

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] Problem to compile ant to use the xenstat perl/python binding, Marco Sinhoreli <=