* [Qemu-devel] QEMU host support
@ 2010-10-15 16:51 Jes Sorensen
2010-10-16 0:37 ` [Qemu-devel] " Paolo Bonzini
2010-10-16 7:46 ` [Qemu-devel] " Stefan Hajnoczi
0 siblings, 2 replies; 7+ messages in thread
From: Jes Sorensen @ 2010-10-15 16:51 UTC (permalink / raw)
To: QEMU Developers
Hi,
Looking through some code in qemu-char.c I was wondering if we support
any other QEMU host target than Win32 which isn't covered by these defines:
#if defined(__linux__) || defined(__sun__) || defined(__FreeBSD__) \
|| defined(__NetBSD__) || defined(__OpenBSD__) ||
defined(__DragonFly__) \
|| defined(__GLIBC__)
Thanks,
Jes
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Qemu-devel] Re: QEMU host support
2010-10-15 16:51 [Qemu-devel] QEMU host support Jes Sorensen
@ 2010-10-16 0:37 ` Paolo Bonzini
2010-10-16 9:44 ` Andreas Färber
2010-10-16 14:25 ` Jes Sorensen
2010-10-16 7:46 ` [Qemu-devel] " Stefan Hajnoczi
1 sibling, 2 replies; 7+ messages in thread
From: Paolo Bonzini @ 2010-10-16 0:37 UTC (permalink / raw)
To: Jes Sorensen; +Cc: QEMU Developers
On 10/15/2010 06:51 PM, Jes Sorensen wrote:
> Hi,
>
> Looking through some code in qemu-char.c I was wondering if we support
> any other QEMU host target than Win32 which isn't covered by these defines:
>
> #if defined(__linux__) || defined(__sun__) || defined(__FreeBSD__) \
> || defined(__NetBSD__) || defined(__OpenBSD__) ||
> defined(__DragonFly__) \
> || defined(__GLIBC__)
Darwin?
Paolo
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] Re: QEMU host support
2010-10-16 0:37 ` [Qemu-devel] " Paolo Bonzini
@ 2010-10-16 9:44 ` Andreas Färber
2010-10-16 16:05 ` Jes Sorensen
2010-10-16 14:25 ` Jes Sorensen
1 sibling, 1 reply; 7+ messages in thread
From: Andreas Färber @ 2010-10-16 9:44 UTC (permalink / raw)
To: Paolo Bonzini; +Cc: Jes Sorensen, QEMU Developers
Am 16.10.2010 um 02:37 schrieb Paolo Bonzini:
> On 10/15/2010 06:51 PM, Jes Sorensen wrote:
>> Looking through some code in qemu-char.c I was wondering if we
>> support
>> any other QEMU host target than Win32 which isn't covered by these
>> defines:
>>
>> #if defined(__linux__) || defined(__sun__) || defined(__FreeBSD__) \
>> || defined(__NetBSD__) || defined(__OpenBSD__) ||
>> defined(__DragonFly__) \
>> || defined(__GLIBC__)
>
> Darwin?
Affirmative. If I add || defined(__APPLE__) it builds with a warning:
CC qemu-char.o
/Users/andreas/QEMU/qemu/qemu-char.c:1215: warning:
‘qemu_chr_open_tty’ defined but not used
Andreas
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] Re: QEMU host support
2010-10-16 9:44 ` Andreas Färber
@ 2010-10-16 16:05 ` Jes Sorensen
0 siblings, 0 replies; 7+ messages in thread
From: Jes Sorensen @ 2010-10-16 16:05 UTC (permalink / raw)
To: Andreas Färber; +Cc: Paolo Bonzini, QEMU Developers
On 10/16/10 11:44, Andreas Färber wrote:
> Am 16.10.2010 um 02:37 schrieb Paolo Bonzini:
>
>> On 10/15/2010 06:51 PM, Jes Sorensen wrote:
>>> Looking through some code in qemu-char.c I was wondering if we support
>>> any other QEMU host target than Win32 which isn't covered by these
>>> defines:
>>>
>>> #if defined(__linux__) || defined(__sun__) || defined(__FreeBSD__) \
>>> || defined(__NetBSD__) || defined(__OpenBSD__) ||
>>> defined(__DragonFly__) \
>>> || defined(__GLIBC__)
>>
>> Darwin?
>
> Affirmative. If I add || defined(__APPLE__) it builds with a warning:
Should we add __APPLE__ to the list or is it not necessary? I really
know zilch about our OSX support.
Cheers,
Jes
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Qemu-devel] Re: QEMU host support
2010-10-16 0:37 ` [Qemu-devel] " Paolo Bonzini
2010-10-16 9:44 ` Andreas Färber
@ 2010-10-16 14:25 ` Jes Sorensen
1 sibling, 0 replies; 7+ messages in thread
From: Jes Sorensen @ 2010-10-16 14:25 UTC (permalink / raw)
To: Paolo Bonzini; +Cc: QEMU Developers
On 10/16/10 02:37, Paolo Bonzini wrote:
> On 10/15/2010 06:51 PM, Jes Sorensen wrote:
>> Hi,
>>
>> Looking through some code in qemu-char.c I was wondering if we support
>> any other QEMU host target than Win32 which isn't covered by these
>> defines:
>>
>> #if defined(__linux__) || defined(__sun__) || defined(__FreeBSD__) \
>> || defined(__NetBSD__) || defined(__OpenBSD__) ||
>> defined(__DragonFly__) \
>> || defined(__GLIBC__)
>
> Darwin?
Ah right, I wasn't sure if that was still building. It just seemed a
pretty excessive positive list.
Jes
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] QEMU host support
2010-10-15 16:51 [Qemu-devel] QEMU host support Jes Sorensen
2010-10-16 0:37 ` [Qemu-devel] " Paolo Bonzini
@ 2010-10-16 7:46 ` Stefan Hajnoczi
2010-10-16 9:14 ` Andreas Färber
1 sibling, 1 reply; 7+ messages in thread
From: Stefan Hajnoczi @ 2010-10-16 7:46 UTC (permalink / raw)
To: Andreas Färber; +Cc: Jes Sorensen, QEMU Developers
On Fri, Oct 15, 2010 at 5:51 PM, Jes Sorensen <Jes.Sorensen@redhat.com> wrote:
> Looking through some code in qemu-char.c I was wondering if we support
> any other QEMU host target than Win32 which isn't covered by these defines:
>
> #if defined(__linux__) || defined(__sun__) || defined(__FreeBSD__) \
> || defined(__NetBSD__) || defined(__OpenBSD__) ||
> defined(__DragonFly__) \
> || defined(__GLIBC__)
What about Haiku? It uses __HAIKU__ but I'm not sure if it defines
__GLIBC__ or even one of the others.
Stefan
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] QEMU host support
2010-10-16 7:46 ` [Qemu-devel] " Stefan Hajnoczi
@ 2010-10-16 9:14 ` Andreas Färber
0 siblings, 0 replies; 7+ messages in thread
From: Andreas Färber @ 2010-10-16 9:14 UTC (permalink / raw)
To: Stefan Hajnoczi
Cc: HaikuPorts developers discussion list, Jes Sorensen,
QEMU Developers
Am 16.10.2010 um 09:46 schrieb Stefan Hajnoczi:
> On Fri, Oct 15, 2010 at 5:51 PM, Jes Sorensen
> <Jes.Sorensen@redhat.com> wrote:
>> Looking through some code in qemu-char.c I was wondering if we
>> support
>> any other QEMU host target than Win32 which isn't covered by these
>> defines:
>>
>> #if defined(__linux__) || defined(__sun__) || defined(__FreeBSD__) \
>> || defined(__NetBSD__) || defined(__OpenBSD__) ||
>> defined(__DragonFly__) \
>> || defined(__GLIBC__)
>
> What about Haiku? It uses __HAIKU__ but I'm not sure if it defines
> __GLIBC__ or even one of the others.
Apparently it doesn't define __GLIBC__ (it has a libroot that contains
parts of glibc only). It definitely doesn't define any of the others.
If I add || defined (__HAIKU__) to the list above, I get:
CC qemu-char.o
/Data/QEMU/qemu/qemu-char.c: In function 'qemu_chr_open_pty':
/Data/QEMU/qemu/qemu-char.c:982: warning: implicit declaration of
function 'openpty'
/Data/QEMU/qemu/qemu-char.c:982: warning: nested extern declaration of
'openpty'
/Data/QEMU/qemu/qemu-char.c:988: warning: implicit declaration of
function 'cfmakeraw'
/Data/QEMU/qemu/qemu-char.c:988: warning: nested extern declaration of
'cfmakeraw'
/Data/QEMU/qemu/qemu-char.c: In function 'tty_serial_ioctl':
/Data/QEMU/qemu/qemu-char.c:1149: error: 'TIOCMGET' undeclared (first
use in this function)
/Data/QEMU/qemu/qemu-char.c:1149: error: (Each undeclared identifier
is reported only once
/Data/QEMU/qemu/qemu-char.c:1149: error: for each function it appears
in.)
/Data/QEMU/qemu/qemu-char.c:1151: error: 'TIOCM_CTS' undeclared (first
use in this function)
/Data/QEMU/qemu/qemu-char.c:1153: error: 'TIOCM_CAR' undeclared (first
use in this function)
/Data/QEMU/qemu/qemu-char.c:1155: error: 'TIOCM_DSR' undeclared (first
use in this function)
/Data/QEMU/qemu/qemu-char.c:1157: error: 'TIOCM_RI' undeclared (first
use in this function)
/Data/QEMU/qemu/qemu-char.c:1159: error: 'TIOCM_DTR' undeclared (first
use in this function)
/Data/QEMU/qemu/qemu-char.c:1161: error: 'TIOCM_RTS' undeclared (first
use in this function)
/Data/QEMU/qemu/qemu-char.c:1184: error: 'TIOCMSET' undeclared (first
use in this function)
make: *** [qemu-char.o] Error 1
openpty() is defined in Haiku's BSD compatibility layer, in pty.h.
Hacking the FreeBSD #include code path makes QEMU find it.
There's no cfmakeraw(). Reusing the one from the Sun code path seems
to work.
I believe these TIOCM* defines were not supported in Haiku and we
didn't find out where they originate from. They were not in POSIX.
Anyone know off-hand?
Andreas
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2010-10-16 16:05 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-15 16:51 [Qemu-devel] QEMU host support Jes Sorensen
2010-10-16 0:37 ` [Qemu-devel] " Paolo Bonzini
2010-10-16 9:44 ` Andreas Färber
2010-10-16 16:05 ` Jes Sorensen
2010-10-16 14:25 ` Jes Sorensen
2010-10-16 7:46 ` [Qemu-devel] " Stefan Hajnoczi
2010-10-16 9:14 ` Andreas Färber
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).