Bugs in SSH module (ssh.c)
Bug #1838763 reported by
周文青
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
Won't Fix
|
Undecided
|
Unassigned |
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_
To post a comment you must log in.
$ 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 94fa1e38- 1ubuntu0. 2 arm64 tiny C SSH library (OpenSSL flavor) 94fa1e38- 1ubuntu0. 2 arm64 tiny C SSH library. Development files (OpenSSL flavor)
ii libssh-4:arm64 0.8.0~20170825.
ii libssh-dev 0.8.0~20170825.
$ ./configure
...
libssh support yes
...
$ make host_key_ knownhosts' :
^~~~~ is_known_ server' [-Werror= implicit- function- declaration] is_known_ server( s->session) ;
^ ~~~~~~~ ~~~~~~~ ~~~~~~~ ~~~~~ is_known_ server' [-Werror= nested- externs] HOSTS_OK' undeclared (first use in this function); did you mean 'SSH_OPTIONS_ HOSTKEYS' ?
^~~~ ~~~~~~~ ~~~~~~~
SSH_ OPTIONS_ HOSTKEYS HOSTS_CHANGED' undeclared (first use in this function); did you mean 'SSH_KNOWN_ HOSTS_OK' ? HOSTS_CHANGED:
^~~~ ~~~~~~~ ~~~~~~~ ~~~~~
SSH_ KNOWN_HOSTS_ OK HASH_SHA256' undeclared (first use in this function); did you mean 'SSH_PUBLICKEY_ HASH_SHA1' ? publickey_ hash(pubkey, SSH_PUBLICKEY_ HASH_SHA256,
^ ~~~~~~~ ~~~~~~~ ~~~~~~~ ~~~
SSH_ PUBLICKEY_ HASH_SHA1 fingerprint_ hash'; did you mean 'ssh_get_ pubkey_ hash'? [-Werror= implicit- function- declaration]
fingerpri nt = ssh_get_ fingerprint_ hash(SSH_ PUBLICKEY_ HASH_SHA256,
^ ~~~~~~~ ~~~~~~~ ~~~~~~~ ~~
ssh_ get_pubkey_ hash fingerprint_ hash' [-Werror= nested- externs] HOSTS_OTHER' undeclared (first use in this function); did you mean 'SSH_KNOWN_ HOSTS_OK' ? HOSTS_OTHER:
^~~~ ~~~~~~~ ~~~~~~~ ~~~
SSH_ KNOWN_HOSTS_ OK HOSTS_UNKNOWN' undeclared (first use in this function); did you mean 'SSH_KNOWN_ HOSTS_CHANGED' ? HOSTS_UNKNOWN:
^~~~ ~~~~~~~ ~~~~~~~ ~~~~~
SSH_ KNOWN_HOSTS_ CHANGED HOSTS_NOT_ FOUND' undeclared (first use in this function); did you mean 'SSH_KNOWN_ HOSTS_UNKNOWN' ? HOSTS_NOT_ FOUND:
^~~~ ~~~~~~~ ~~~~~~~ ~~~~~~~
SSH_ KNOWN_HOSTS_ UNKNOWN
...
CC block/ssh.o
block/ssh.c: In function 'check_
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_
state = ssh_session_
block/ssh.c:289:13: error: nested extern declaration of 'ssh_session_
block/ssh.c:293:10: error: 'SSH_KNOWN_
case SSH_KNOWN_HOSTS_OK:
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_
case SSH_KNOWN_
block/ssh.c:301:48: error: 'SSH_PUBLICKEY_
r = ssh_get_
block/ssh.c:307:27: error: implicit declaration of function 'ssh_get_
block/ssh.c:307:27: error: nested extern declaration of 'ssh_get_
block/ssh.c:324:10: error: 'SSH_KNOWN_
case SSH_KNOWN_
block/ssh.c:329:10: error: 'SSH_KNOWN_
case SSH_KNOWN_
block/ssh.c:333:10: error: 'SSH_KNOWN_
case SSH_KNOWN_
block/ssh.c:337:10: error:...