From: David F Barrera <dfbp@us.ibm.com>
To: Harry Butterworth <harry@hebutterworth.freeserve.co.uk>
Cc: xen-devel <xen-devel@lists.xensource.com>
Subject: Re: [PATCH] [UNTESTED] Fix sentinel in call to execlp in tools/iommu/vnc.c
Date: Wed, 30 Aug 2006 13:20:10 -0500 [thread overview]
Message-ID: <44F5D6DA.5090300@us.ibm.com> (raw)
In-Reply-To: <1156955488.7718.11.camel@localhost.localdomain>
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@uk.ibm.com>
>
> ------------------------------------------------------------------------
>
> 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
--
Regards,
David F Barrera
Linux Technology Center
Systems and Technology Group, IBM
"The wisest men follow their own direction. "
Euripides
next prev parent reply other threads:[~2006-08-30 18:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-30 15:58 Daily Xen Builds David F Barrera
2006-08-30 16:31 ` [PATCH] [UNTESTED] Fix sentinel in call to execlp in tools/iommu/vnc.c Harry Butterworth
2006-08-30 18:20 ` David F Barrera [this message]
2006-08-31 13:14 ` Harry Butterworth
2006-09-08 16:01 ` Harry Butterworth
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=44F5D6DA.5090300@us.ibm.com \
--to=dfbp@us.ibm.com \
--cc=harry@hebutterworth.freeserve.co.uk \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.