From: Michele Denber <denber@mindspring.com>
To: Thomas Huth <thuth@redhat.com>
Cc: Peter Tribble <peter.tribble@gmail.com>, qemu-devel@nongnu.org
Subject: Re: [PATCH] configure / util: Auto-detect the availability of openpty()
Date: Fri, 03 Jul 2020 12:25:34 -0400 [thread overview]
Message-ID: <5EFF5BFE.9000209@mindspring.com> (raw)
In-Reply-To: <975b5072-43de-da16-bf62-fc7e5a7a87f5@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 2239 bytes --]
On 07/03/20 01:11, Thomas Huth wrote:
>
> Did you have a local modification to that file?
Oops yes, I had changed the line
static int openpty(int *amaster, int *aslave, char *name,
struct termios *termp, struct winsize *winp)
to
int openpty(int *amaster, int *aslave, char *name,
struct termios *termp, struct winsize *winp)
> If so, please revert it first before applying the patch (or add the
> "#if !defined(HAVE_OPENPTY)" now manually to see whether it works).
OK - looks like that did it:
root@hemlock:~/qemu-5.0.0# gpatch -p1 < configpatch.diff
patching file configure
Hunk #1 succeeded at 5049 (offset -85 lines).
Hunk #2 succeeded at 7117 (offset -267 lines).
patching file util/qemu-openpty.c
Hunk #2 succeeded at 94 with fuzz 2.
root@hemlock:~/qemu-5.0.0#
Then
root@hemlock:~/qemu-5.0.0# /opt/csw/bin/bash ./configure --cc=gcc
--extra-cflags="-m32"
succeeded with only one odd thing:
./configure: line 6326: pod2man: command not found
I fixed that with
root@hemlock:~/qemu-5.0.0# PATH=$PATH:/usr/perl5/5.26/bin
So I can confirm your patch works in Solaris 11.4.
gmake then ran successfully through qemu-openpty.c becfore stopping with:
...
CC crypto/trace.o
util/drm.c: In function \u2018qemu_drm_rendernode_open\u2019:
util/drm.c:41:16: error: \u2018struct dirent\u2019 has no member named
\u2018d_type\u2019; did you mean \u2018d_name\u2019?
if (e->d_type != DT_CHR) {
^~~~~~
d_name
util/drm.c:41:26: error: \u2018DT_CHR\u2019 undeclared (first use in
this function); did you mean \u2018TH_CWR\u2019?
if (e->d_type != DT_CHR) {
^~~~~~
TH_CWR
util/drm.c:41:26: note: each undeclared identifier is reported only once
for each function it appears in
gmake: *** [/export/home/denber/qemu-5.0.0/rules.mak:69: util/drm.o] Error 1
PMM said about this:
Ah, the Haiku folks just ran into exactly this issue.
Their fix should also be good for Solaris:
https://lists.gnu.org/archive/html/qemu-devel/2020-06/msg08800.html
(This whole file is for using a Linux-specific feature so there's
no point even compiling it for other OSes.)
- Michele
[-- Attachment #2: Type: text/html, Size: 4360 bytes --]
next prev parent reply other threads:[~2020-07-03 16:35 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-02 14:39 [PATCH] configure / util: Auto-detect the availability of openpty() Thomas Huth
2020-07-02 14:46 ` Daniel P. Berrangé
2020-07-02 16:07 ` Michele Denber
2020-07-02 17:38 ` Thomas Huth
2020-07-02 16:13 ` Michele Denber
2020-07-02 17:34 ` Thomas Huth
2020-07-02 21:33 ` Michele Denber
2020-07-03 5:11 ` Thomas Huth
2020-07-03 16:25 ` Michele Denber [this message]
2020-07-03 16:34 ` Michele Denber
2020-07-03 16:50 ` Peter Maydell
2020-07-03 18:49 ` gmake in Solaris 11.4: _IOR missing Michele Denber
2020-07-03 21:35 ` gmake in Solaris 11.4: TFR missing Michele Denber
2020-07-03 21:55 ` Philippe Mathieu-Daudé
2020-07-04 9:11 ` Peter Maydell
2020-07-04 11:30 ` Philippe Mathieu-Daudé
2020-07-04 13:52 ` Peter Maydell
2020-07-04 15:27 ` Michele Denber
2020-07-04 12:02 ` Thomas Huth
2020-07-04 15:36 ` Michele Denber
2020-07-04 15:57 ` Philippe Mathieu-Daudé
2020-07-04 19:15 ` Michele Denber
2020-07-04 21:58 ` Peter Maydell
2020-07-04 19:48 ` Michele Denber
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=5EFF5BFE.9000209@mindspring.com \
--to=denber@mindspring.com \
--cc=peter.tribble@gmail.com \
--cc=qemu-devel@nongnu.org \
--cc=thuth@redhat.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.