* [Qemu-devel] [Bug 1838763] [NEW] Bugs in SSH module (ssh.c)
@ 2019-08-02 11:38 周文青
2019-08-02 17:50 ` [Qemu-devel] [Bug 1838763] " Philippe Mathieu-Daudé
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: 周文青 @ 2019-08-02 11:38 UTC (permalink / raw)
To: qemu-devel
Public bug reported:
I installed gcc-8&libssh* on my Ubuntu 18.04 arm64.When I was compiling
any version of qemu like 3.1.0 4.0.0or 4.1.0 with SSH support,the GCC
went wrong.It said some vars undeclared
like'SSH_KNOWN_HOSTS_OTHER','SSH_KNOWN_HOST_UNKNOWN',etc.
** Affects: qemu
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1838763
Title:
Bugs in SSH module (ssh.c)
Status in QEMU:
New
Bug description:
I installed gcc-8&libssh* on my Ubuntu 18.04 arm64.When I was
compiling any version of qemu like 3.1.0 4.0.0or 4.1.0 with SSH
support,the GCC went wrong.It said some vars undeclared
like'SSH_KNOWN_HOSTS_OTHER','SSH_KNOWN_HOST_UNKNOWN',etc.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1838763/+subscriptions
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Qemu-devel] [Bug 1838763] Re: Bugs in SSH module (ssh.c)
2019-08-02 11:38 [Qemu-devel] [Bug 1838763] [NEW] Bugs in SSH module (ssh.c) 周文青
@ 2019-08-02 17:50 ` Philippe Mathieu-Daudé
2019-08-07 10:47 ` Philippe Mathieu-Daudé
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Philippe Mathieu-Daudé @ 2019-08-02 17:50 UTC (permalink / raw)
To: qemu-devel
$ uname -smrv
Linux 5.1.17 #7 SMP Wed Jul 10 08:35:08 UTC 2019 aarch64
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.2 LTS
Release: 18.04
Codename: bionic
$ dpkg -l|fgrep libssh
ii libssh-4:arm64 0.8.0~20170825.94fa1e38-1ubuntu0.2 arm64 tiny C SSH library (OpenSSL flavor)
ii libssh-dev 0.8.0~20170825.94fa1e38-1ubuntu0.2 arm64 tiny C SSH library. Development files (OpenSSL flavor)
$ ./configure
...
libssh support yes
...
$ make
...
CC block/ssh.o
block/ssh.c: In function 'check_host_key_knownhosts':
block/ssh.c:281:28: error: storage size of 'state' isn't known
enum ssh_known_hosts_e state;
^~~~~
block/ssh.c:289:13: error: implicit declaration of function 'ssh_session_is_known_server' [-Werror=implicit-function-declaration]
state = ssh_session_is_known_server(s->session);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
block/ssh.c:289:13: error: nested extern declaration of 'ssh_session_is_known_server' [-Werror=nested-externs]
block/ssh.c:293:10: error: 'SSH_KNOWN_HOSTS_OK' undeclared (first use in this function); did you mean 'SSH_OPTIONS_HOSTKEYS'?
case SSH_KNOWN_HOSTS_OK:
^~~~~~~~~~~~~~~~~~
SSH_OPTIONS_HOSTKEYS
block/ssh.c:293:10: note: each undeclared identifier is reported only once for each function it appears in
block/ssh.c:297:10: error: 'SSH_KNOWN_HOSTS_CHANGED' undeclared (first use in this function); did you mean 'SSH_KNOWN_HOSTS_OK'?
case SSH_KNOWN_HOSTS_CHANGED:
^~~~~~~~~~~~~~~~~~~~~~~
SSH_KNOWN_HOSTS_OK
block/ssh.c:301:48: error: 'SSH_PUBLICKEY_HASH_SHA256' undeclared (first use in this function); did you mean 'SSH_PUBLICKEY_HASH_SHA1'?
r = ssh_get_publickey_hash(pubkey, SSH_PUBLICKEY_HASH_SHA256,
^~~~~~~~~~~~~~~~~~~~~~~~~
SSH_PUBLICKEY_HASH_SHA1
block/ssh.c:307:27: error: implicit declaration of function 'ssh_get_fingerprint_hash'; did you mean 'ssh_get_pubkey_hash'? [-Werror=implicit-function-declaration]
fingerprint = ssh_get_fingerprint_hash(SSH_PUBLICKEY_HASH_SHA256,
^~~~~~~~~~~~~~~~~~~~~~~~
ssh_get_pubkey_hash
block/ssh.c:307:27: error: nested extern declaration of 'ssh_get_fingerprint_hash' [-Werror=nested-externs]
block/ssh.c:324:10: error: 'SSH_KNOWN_HOSTS_OTHER' undeclared (first use in this function); did you mean 'SSH_KNOWN_HOSTS_OK'?
case SSH_KNOWN_HOSTS_OTHER:
^~~~~~~~~~~~~~~~~~~~~
SSH_KNOWN_HOSTS_OK
block/ssh.c:329:10: error: 'SSH_KNOWN_HOSTS_UNKNOWN' undeclared (first use in this function); did you mean 'SSH_KNOWN_HOSTS_CHANGED'?
case SSH_KNOWN_HOSTS_UNKNOWN:
^~~~~~~~~~~~~~~~~~~~~~~
SSH_KNOWN_HOSTS_CHANGED
block/ssh.c:333:10: error: 'SSH_KNOWN_HOSTS_NOT_FOUND' undeclared (first use in this function); did you mean 'SSH_KNOWN_HOSTS_UNKNOWN'?
case SSH_KNOWN_HOSTS_NOT_FOUND:
^~~~~~~~~~~~~~~~~~~~~~~~~
SSH_KNOWN_HOSTS_UNKNOWN
block/ssh.c:337:10: error: 'SSH_KNOWN_HOSTS_ERROR' undeclared (first use in this function); did you mean 'SSH_KNOWN_HOSTS_OTHER'?
case SSH_KNOWN_HOSTS_ERROR:
^~~~~~~~~~~~~~~~~~~~~
SSH_KNOWN_HOSTS_OTHER
block/ssh.c:281:28: error: unused variable 'state' [-Werror=unused-variable]
enum ssh_known_hosts_e state;
^~~~~
cc1: all warnings being treated as errors
rules.mak:69: recipe for target 'block/ssh.o' failed
make: *** [block/ssh.o] Error 1
** Changed in: qemu
Status: New => Confirmed
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1838763
Title:
Bugs in SSH module (ssh.c)
Status in QEMU:
Confirmed
Bug description:
I installed gcc-8&libssh* on my Ubuntu 18.04 arm64.When I was
compiling any version of qemu like 3.1.0 4.0.0or 4.1.0 with SSH
support,the GCC went wrong.It said some vars undeclared
like'SSH_KNOWN_HOSTS_OTHER','SSH_KNOWN_HOST_UNKNOWN',etc.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1838763/+subscriptions
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Qemu-devel] [Bug 1838763] Re: Bugs in SSH module (ssh.c)
2019-08-02 11:38 [Qemu-devel] [Bug 1838763] [NEW] Bugs in SSH module (ssh.c) 周文青
2019-08-02 17:50 ` [Qemu-devel] [Bug 1838763] " Philippe Mathieu-Daudé
@ 2019-08-07 10:47 ` Philippe Mathieu-Daudé
2019-10-09 18:41 ` Philippe Mathieu-Daudé
2020-07-13 17:56 ` Thomas Huth
3 siblings, 0 replies; 5+ messages in thread
From: Philippe Mathieu-Daudé @ 2019-08-07 10:47 UTC (permalink / raw)
To: qemu-devel
May be related to https://www.redhat.com/archives/libvir-
list/2018-May/msg00597.html
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1838763
Title:
Bugs in SSH module (ssh.c)
Status in QEMU:
Confirmed
Bug description:
I installed gcc-8&libssh* on my Ubuntu 18.04 arm64.When I was
compiling any version of qemu like 3.1.0 4.0.0or 4.1.0 with SSH
support,the GCC went wrong.It said some vars undeclared
like'SSH_KNOWN_HOSTS_OTHER','SSH_KNOWN_HOST_UNKNOWN',etc.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1838763/+subscriptions
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug 1838763] Re: Bugs in SSH module (ssh.c)
2019-08-02 11:38 [Qemu-devel] [Bug 1838763] [NEW] Bugs in SSH module (ssh.c) 周文青
2019-08-02 17:50 ` [Qemu-devel] [Bug 1838763] " Philippe Mathieu-Daudé
2019-08-07 10:47 ` Philippe Mathieu-Daudé
@ 2019-10-09 18:41 ` Philippe Mathieu-Daudé
2020-07-13 17:56 ` Thomas Huth
3 siblings, 0 replies; 5+ messages in thread
From: Philippe Mathieu-Daudé @ 2019-10-09 18:41 UTC (permalink / raw)
To: qemu-devel
As suggested by Richard in [*], filled a libssh report:
https://bugs.launchpad.net/ubuntu/+source/libssh/+bug/1847514
[*] https://lists.gnu.org/archive/html/qemu-devel/2019-08/msg02506.html
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1838763
Title:
Bugs in SSH module (ssh.c)
Status in QEMU:
Confirmed
Bug description:
I installed gcc-8&libssh* on my Ubuntu 18.04 arm64.When I was
compiling any version of qemu like 3.1.0 4.0.0or 4.1.0 with SSH
support,the GCC went wrong.It said some vars undeclared
like'SSH_KNOWN_HOSTS_OTHER','SSH_KNOWN_HOST_UNKNOWN',etc.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1838763/+subscriptions
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug 1838763] Re: Bugs in SSH module (ssh.c)
2019-08-02 11:38 [Qemu-devel] [Bug 1838763] [NEW] Bugs in SSH module (ssh.c) 周文青
` (2 preceding siblings ...)
2019-10-09 18:41 ` Philippe Mathieu-Daudé
@ 2020-07-13 17:56 ` Thomas Huth
3 siblings, 0 replies; 5+ messages in thread
From: Thomas Huth @ 2020-07-13 17:56 UTC (permalink / raw)
To: qemu-devel
I think that libssh in Ubuntu 18.04 is just broken. I don't think that
we'll include a work-around in QEMU for this anymore, now that 20.04 is
already released and works fine. Thus closing this as WONTFIX.
** Changed in: qemu
Status: Confirmed => Won't Fix
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1838763
Title:
Bugs in SSH module (ssh.c)
Status in QEMU:
Won't Fix
Bug description:
I installed gcc-8&libssh* on my Ubuntu 18.04 arm64.When I was
compiling any version of qemu like 3.1.0 4.0.0or 4.1.0 with SSH
support,the GCC went wrong.It said some vars undeclared
like'SSH_KNOWN_HOSTS_OTHER','SSH_KNOWN_HOST_UNKNOWN',etc.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1838763/+subscriptions
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2020-07-13 18:11 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-02 11:38 [Qemu-devel] [Bug 1838763] [NEW] Bugs in SSH module (ssh.c) 周文青
2019-08-02 17:50 ` [Qemu-devel] [Bug 1838763] " Philippe Mathieu-Daudé
2019-08-07 10:47 ` Philippe Mathieu-Daudé
2019-10-09 18:41 ` Philippe Mathieu-Daudé
2020-07-13 17:56 ` Thomas Huth
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.