qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Luiz Capitulino <lcapitulino@redhat.com>
To: Luiz Capitulino <lcapitulino@redhat.com>
Cc: agraf@suse.de, qemu-devel@nongnu.org,
	"dunrong huang" <riegamaths@gmail.com>,
	"Michael Roth" <mdroth@linux.vnet.ibm.com>,
	qemu@buildbot.b1-systems.de, gollub@b1-systems.de,
	"Eric Blake" <eblake@redhat.com>,
	"Andreas Färber" <afaerber@suse.de>
Subject: Re: [Qemu-devel] buildbot failure in qemu on default_openbsd_current
Date: Wed, 23 May 2012 12:57:11 -0300	[thread overview]
Message-ID: <20120523125711.783be240@doriath.home> (raw)
In-Reply-To: <20120523113549.346baf42@doriath.home>

[-- Attachment #1: Type: text/plain, Size: 828 bytes --]

On Wed, 23 May 2012 11:35:49 -0300
Luiz Capitulino <lcapitulino@redhat.com> wrote:

> > Maybe we need a patch to declare environ for openbsd
> 
> Yes, I have the patch already but am installing openbsd on a VM to test it.

I'm getting lots of make errors on openbsd 4.9:

"Makefile", line 7: Missing dependency operator
"/root/qemu.a/rules.mak", line 20: Missing dependency operator
"/root/qemu.a/rules.mak", line 23: Need an operator
"/root/qemu.a/rules.mak", line 26: Need an operator
"Makefile", line 15: Need an operator
"Makefile", line 19: Need an operator
"Makefile", line 22: Missing dependency operator
"Makefile", line 24: Need an operator
Bad modifier: $(SRC_PATH)/hw)

Bad modifier: $(SRC_PATH)/hw)

"Makefile", line 36: Need an operator

Anyone knows what I did wrong? Or, if anybody could test the attached fix...

[-- Attachment #2: 0001-qemu-ga-Fix-missing-environ-declarion.patch --]
[-- Type: text/x-patch, Size: 1179 bytes --]

>From 4a3f4cff8aa27fe3810d621d20bf90f18ca8e2d5 Mon Sep 17 00:00:00 2001
From: Luiz Capitulino <lcapitulino@redhat.com>
Date: Wed, 23 May 2012 11:33:51 -0300
Subject: [PATCH] qemu-ga: Fix missing environ declarion

Commit 3674838cd05268954bb6473239cd7f700a79bf0f uses the environ
global variable, but is relying on it to be declared somewhere else.

This works for Linux because _GNU_SOURCE declares it, but it brakes
for system where _GNU_SOURCE is not declared, such as OpenBSD.

Fix it by declaring environ when _GNU_SOURCE is not defined.

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
---
 qga/commands-posix.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/qga/commands-posix.c b/qga/commands-posix.c
index 7664be1..304ffa8 100644
--- a/qga/commands-posix.c
+++ b/qga/commands-posix.c
@@ -12,6 +12,7 @@
  */
 
 #include <glib.h>
+#include <unistd.h>
 #include <sys/types.h>
 #include <sys/ioctl.h>
 #include "qga/guest-agent-core.h"
@@ -20,6 +21,10 @@
 #include "qemu-queue.h"
 #include "host-utils.h"
 
+#ifndef _GNU_SOURCE
+extern char **environ;
+#endif
+
 #if defined(__linux__)
 #include <mntent.h>
 #include <linux/fs.h>
-- 
1.7.9.2.384.g4a92a


  reply	other threads:[~2012-05-23 15:57 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-22 23:09 [Qemu-devel] buildbot failure in qemu on default_openbsd_current qemu
2012-05-22 23:41 ` Andreas Färber
2012-05-23  2:35   ` dunrong huang
2012-05-23 13:39     ` Luiz Capitulino
2012-05-23 14:33       ` dunrong huang
2012-05-23 14:35         ` Luiz Capitulino
2012-05-23 15:57           ` Luiz Capitulino [this message]
2012-05-23 16:01             ` Eric Blake
2012-05-23 18:46               ` Luiz Capitulino
2012-05-23 16:06             ` Paolo Bonzini
2012-05-23 16:11               ` Luiz Capitulino
2012-05-23 16:22             ` Michael Roth
  -- strict thread matches above, loose matches on Subject: below --
2012-09-15  0:55 qemu
2012-08-15 23:06 qemu
2012-07-28 23:09 qemu
2012-07-19 23:14 qemu
2012-07-17 23:08 qemu
2012-06-09  0:31 qemu
2012-06-10 16:01 ` Paolo Bonzini
2012-06-10 20:36   ` Blue Swirl
2012-03-01  0:08 qemu
2012-02-04  0:07 qemu
2011-10-03 23:12 qemu
2011-09-20 23:05 qemu
2011-08-14 23:11 qemu

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=20120523125711.783be240@doriath.home \
    --to=lcapitulino@redhat.com \
    --cc=afaerber@suse.de \
    --cc=agraf@suse.de \
    --cc=eblake@redhat.com \
    --cc=gollub@b1-systems.de \
    --cc=mdroth@linux.vnet.ibm.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu@buildbot.b1-systems.de \
    --cc=riegamaths@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).