From: peter Bier Subject: problems with tools/pygrub/setup.py and xen/xm/main.py Date: Fri, 21 Oct 2005 16:47:04 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org When making the "unstable" version I got an in "tools". There was a complaint about "cc.has_function" in the following code area in tools/pygrub/setup.py if cc.has_function("ext2fs_open"): ext2defines.append( ("HAVE_EXT2FS_OPEN2", None) ) else : sys.stderr.write ("Warning: older veriosn of e2fsprogs installed ...") sys.stderr.write (" .... " ) ext2 = ... As workaround I simply deleted the entire if - else construct. Make worked then, but I suppose this is not a really satisfactory solution. My python version is 2.2 in xen/xm/main.py I got a problem with the line : warnings.filterwarnings('ignore', category=FutureWarning ); python complained about FutureWarning being an undefined name. Commenting this out resulted in code that seems to work properly. Peter Bier