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

Re: [Xen-devel] Re: [PATCH] [UNTESTED] Fix sentinel in call to execlp in

To: David F Barrera <dfbp@xxxxxxxxxx>
Subject: Re: [Xen-devel] Re: [PATCH] [UNTESTED] Fix sentinel in call to execlp in tools/iommu/vnc.c
From: Harry Butterworth <harry@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 31 Aug 2006 14:14:52 +0100
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 31 Aug 2006 06:15:16 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <44F5D6DA.5090300@xxxxxxxxxx>
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>
References: <44F5B588.4090505@xxxxxxxxxx> <1156955488.7718.11.camel@xxxxxxxxxxxxxxxxxxxxx> <44F5D6DA.5090300@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Wed, 2006-08-30 at 13:20 -0500, David F Barrera wrote:
> Harry Butterworth wrote:
> > This patch should fix your problem here.  I have not tested it.  Please
> > give it a go and report whether it is OK to be committed to the tree.
> >
> > The issue is that 0 on a 64 bit machine is a 32 bit integer whereas the
> > sentinel needs to be a 64 bit null pointer for the code to be correct.
> >
> > Signed-off-by: Harry Butterworth <butterwo@xxxxxxxxxx>
> >   
> > ------------------------------------------------------------------------
> >
> > diff -r dc773bf49664 -r 606ec67fb063 tools/ioemu/vnc.c
> > --- a/tools/ioemu/vnc.c     Wed Aug 30 10:05:00 2006
> > +++ b/tools/ioemu/vnc.c     Wed Aug 30 16:23:38 2006
> > @@ -1269,7 +1269,7 @@
> >     exit(1);
> >  
> >      case 0:        /* child */
> > -   execlp("vncviewer", "vncviewer", s, 0);
> > +   execlp("vncviewer", "vncviewer", s, (char *)NULL);
> >     fprintf(stderr, "vncviewer execlp failed\n");
> >     exit(1);
> >  
> >   
> Here's the tail end of what I get:
> 
> ...
> XK_Control_Lâ undeclared (first use in this function)
> /usr/local/autobench/var/tmp/xen/xen-unstable.hg/tools/ioemu/vnc.c:847: 
> error: âXK_Alt_Lâ undeclared (first use in this function)
> /usr/local/autobench/var/tmp/xen/xen-unstable.hg/tools/ioemu/vnc.c:864: 
> error: âXK_1â undeclared (first use in this function)
> /usr/local/autobench/var/tmp/xen/xen-unstable.hg/tools/ioemu/vnc.c:864: 
> error: âXK_9â undeclared (first use in this function)
> make[4]: *** [vnc.o] Error 1
> make[4]: Leaving directory 
> `/usr/local/autobench/var/tmp/xen/xen-unstable.hg/tools/ioemu/i386-dm'
> make[3]: *** [subdir-i386-dm] Error 2
> make[3]: Leaving directory 
> `/usr/local/autobench/var/tmp/xen/xen-unstable.hg/tools/ioemu'
> make[2]: *** [ioemuinstall] Error 2
> make[2]: Leaving directory 
> `/usr/local/autobench/var/tmp/xen/xen-unstable.hg/tools'
> make[1]: *** [install] Error 2
> make[1]: Leaving directory 
> `/usr/local/autobench/var/tmp/xen/xen-unstable.hg/tools'
> make: *** [install-tools] Error 2

Well, my patch seems to have fixed your previous compile error so I
think it is good.  The errors above are unrelated to the patch.

The errors above indicate that the symbols XK_Alt_L XK_1 and XK_9 are
undefined.  (I don't understand where the weird 'â' characters are
coming from in the error report above).

These symbols should be defined in /usr/include/X11/keysymdef.h which is
included by vnc.c.

Please check that you have this header file installed on your build
machine and that the symbols are defined in it.

Harry.


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

<Prev in Thread] Current Thread [Next in Thread>