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] [PATCH] Enabling vtpm causes installation error

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Enabling vtpm causes installation error
From: "S.Çağlar Onur" <caglar@xxxxxxxxxxxxx>
Date: Sat, 19 May 2007 02:38:07 +0300
Delivery-date: Fri, 18 May 2007 16:36:44 -0700
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>
Organization: TÜBİTAK / UEKAE
Reply-to: caglar@xxxxxxxxxxxxx
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.9.7
Hi;

Enabling vtpm support on xen-3.1.0 causes installation error like following;

make -C vtpm install
make[2]:`/var/pisi/xen-3.1.0-9/work/xen-3.1.0-src/tools/vtpm/vtpm' dizinine 
giriliyor
gcc -Werror -g3 -I. -Wp,-MD,.install.d -g -Wall  -DDEBUG -I. -Itpm 
-I../../vtpm_manager/manager -c 
tpmd.c -o tpmd.o
cc1: warnings being treated as errors
tpmd.c: In function 'main':
tpmd.c:164: warning: passing argument 2 of 'accept' from incompatible pointer 
type
make[2]: *** [tpmd.o] Hata 1
make[2]: `/var/pisi/xen-3.1.0-9/work/xen-3.1.0-src/tools/vtpm/vtpm' dizininden 
çıkılıyor
make[1]: *** [install] Hata 2
make[1]: `/var/pisi/xen-3.1.0-9/work/xen-3.1.0-src/tools/vtpm' dizininden 
çıkılıyor
make: *** [install] Hata 2
DEBUG: "make DESTDIR=/var/pisi/xen-3.1.0-9/install XEN_PYTHON_NATIVE_INSTALL=1 
install" için dönüş değeri 2

Following patch fixes that warning so -Werror no longer fails

Signed-off-by: S.Çağlar Onur <caglar@xxxxxxxxxxxxx>

diff -r aee991c7723a tools/vtpm/vtpm.patch
--- a/tools/vtpm/vtpm.patch     Wed May 09 16:34:47 2007 +0100
+++ b/tools/vtpm/vtpm.patch     Sat May 19 02:36:41 2007 +0300
@@ -468,7 +468,7 @@ diff -uprN tpm_emulator/tpmd.c vtpm/tpmd
 +#ifndef VTPM_MULTI_VM
 +  int sockfd = -1;
 +  struct sockaddr_un addr;
-+  struct sockaddr_un client_addr;
++  struct sockaddr client_addr;
 +  unsigned int client_length;
 +
 +#endif

Cheers
-- 
S.Çağlar Onur <caglar@xxxxxxxxxxxxx>
http://cekirdek.pardus.org.tr/~caglar/

Linux is like living in a teepee. No Windows, no Gates and an Apache in house!

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>