From mboxrd@z Thu Jan 1 00:00:00 1970 From: Josh Triplett Subject: Re: libxenstat python bindings Date: Mon, 17 Oct 2005 14:37:04 -0700 Message-ID: <43541980.3060309@freedesktop.org> References: <1129558244.18539.8.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1598033636==" Return-path: In-reply-to: <1129558244.18539.8.camel@localhost.localdomain> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Travis Vachon Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --===============1598033636== Content-type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary=------------enig4D2B0A669F5E821BB19110FD This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig4D2B0A669F5E821BB19110FD Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Travis Vachon wrote: > I seem to be having a little trouble with libxenstat, and was wondering > if the xenstat guys might be able to help. > > I've pulled the xen-unstable.hg tree and done a somewhat clean install > (ie, post-make uninstall, as well as deleting the relevant libxenstat > libraries). > > Next, I entered the tools/xenstat/libxenstat directory and modified the > Makefile so that the shared libraries would be installed. I've included > my Makefile below. > > I ran: > > make > make install > make python-bindings > make install-python-bindings > > > Next, I started a python session and entered: > > import xenstat > > and got the following output. > > >>Python 2.3.5 (#2, Sep 4 2005, 22:01:42) >>[GCC 3.3.5 (Debian 1:3.3.5-13)] on linux2 >>Type "help", "copyright", "credits" or "license" for more information. >> >>>>>import xenstat >> >>Traceback (most recent call last): >> File "", line 1, in ? >> File "/usr/local/lib/python2.3/site-packages/xenstat.py", line 5, in ? >> import _xenstat >>ImportError: /usr/local/lib/python2.3/site-packages/_xenstat.so: undefined symbol: xenstat_init > > Any thoughts? You have modified the makefile to install into the prefix /usr/local, but /usr/local/lib is often not included in the default library search path; this may be the cause of your problem. If so, you can either add /usr/local/lib to the default search path by editting /etc/ld.so.conf, or you can install into the prefix /usr which will put the libraries in /usr/lib. Also, as Anthony pointed out, keep in mind that xenstat will not be an officially supported public interface in Xen 3.0. It may become such an interface in the unstable tree after 3.0 is released. However, don't let that stop you from making use of it, and feel free to ask if you need any additional assistance. - Josh Triplett --------------enig4D2B0A669F5E821BB19110FD Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Using GnuPG with Debian - http://enigmail.mozdev.org iD8DBQFDVBmBGJuZRtD+evsRAhBZAKCz5E4l2+FEds3/nzG6TImbZSN4XQCeP7fJ 7C9ItQhPIYc34x1AVjEYX50= =ysSG -----END PGP SIGNATURE----- --------------enig4D2B0A669F5E821BB19110FD-- --===============1598033636== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1598033636==--