[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx, xen-users@xxxxxxxxxxxxxxxxxxx
  • From: "Marco Sinhoreli" <msinhore@xxxxxxxxx>
  • Date: Fri, 14 Sep 2007 21:19:04 -0300
  • Delivery-date: Fri, 14 Sep 2007 17:19:42 -0700
  • 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=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.