Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Jul 2021 12:45:54 +0000
From:      bugzilla-noreply@freebsd.org
To:        virtualization@FreeBSD.org
Subject:   [Bug 246121] [bhyve][PATCH] Append Keyboard Layout specified option for using VNC.
Message-ID:  <bug-246121-27103-4WzdT12lN3@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-246121-27103@https.bugs.freebsd.org/bugzilla/>
References:  <bug-246121-27103@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D246121

--- Comment #29 from mario felicioni <marietto2008@gmail.com> ---
root@marietto:/usr/src/usr.sbin # sh bhyve_kbdlayout.shar
sh: cannot open bhyve_kbdlayout.shar: No such file or directory

root@marietto:/usr/src/usr.sbin # cd /usr/src/usr.sbin/bhyve

root@marietto:/usr/src/usr.sbin/bhyve # make

[Creating objdir /usr/obj/usr/src/amd64.amd64/usr.sbin/bhyve...]
echo bhyve.full: /usr/lib/libc.a /usr/lib/libvmmapi.a /usr/lib/libmd.a
/usr/lib/libpthread.a /usr/lib/libz.a /usr/lib/libutil.a /usr/lib/libsbuf.a
/usr/lib/libcam.a /usr/lib/lib9p.a /usr/lib/libnetgraph.a /usr/lib/libcrypt=
o.a
>> .depend
......
cc -O2 -pipe -fno-common -I/usr/src/usr.sbin/bhyve/../../contrib/lib9p
-I/usr/src/sys -DINET -DINET6 -DNETGRAPH -I/usr/src/sys/dev/e1000
-I/usr/src/sys/dev/mii -I/usr/src/sys/dev/usb/controller -g -MD
-MF.depend.ps2kbd.o -MTps2kbd.o -std=3Dgnu99 -Wno-format-zero-length
-fstack-protector-strong -Wsystem-headers -Werror -Wall -Wno-format-y2k
-Wno-uninitialized -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int
-Wno-unused-const-variable -Wno-tautological-compare -Wno-unused-value
-Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion
-Wno-unused-local-typedef -Wno-address-of-packed-member -Wno-switch
-Wno-switch-enum -Wno-knr-promoted-parameter -Qunused-arguments -c
/usr/src/usr.sbin/bhyve/ps2kbd.c -o ps2kbd.o
/usr/src/usr.sbin/bhyve/ps2kbd.c:407:14: error: variable has incomplete type
'struct stat'
struct stat sb;
^
/usr/src/usr.sbin/bhyve/ps2kbd.c:407:9: note: forward declaration of 'struct
stat'
struct stat sb;
^
/usr/src/usr.sbin/bhyve/ps2kbd.c:413:16: error: use of undeclared identifier
'kbdlayout_name'
strncat(path, kbdlayout_name, (sizeof(path) - strlen(PS2KBD_LAYOUT_BASEDIR)=
 -
1));
^
/usr/src/usr.sbin/bhyve/ps2kbd.c:415:8: error: implicit declaration of func=
tion
'stat' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
err =3D stat(path, &sb);
^
/usr/src/usr.sbin/bhyve/ps2kbd.c:423:7: error: implicit declaration of func=
tion
'open' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
fd =3D open(path, O_RDONLY);
^
/usr/src/usr.sbin/bhyve/ps2kbd.c:423:18: error: use of undeclared identifier
'O_RDONLY'
fd =3D open(path, O_RDONLY);
^
/usr/src/usr.sbin/bhyve/ps2kbd.c:427:7: error: implicit declaration of func=
tion
'read' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
sz =3D read(fd, buf, sb.st_size );
^
/usr/src/usr.sbin/bhyve/ps2kbd.c:427:7: note: did you mean 'fread'?
/usr/include/stdio.h:263:9: note: 'fread' declared here
size_t fread(void * __restrict, size_t, size_t, FILE * __restrict);
^
/usr/src/usr.sbin/bhyve/ps2kbd.c:429:2: error: implicit declaration of func=
tion
'close' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
close(fd);
^
/usr/src/usr.sbin/bhyve/ps2kbd.c:458:6: error: use of undeclared identifier
'kbdlayout_name'
if (kbdlayout_name !=3D NULL)
^
8 errors generated.
*** Error code 1

Stop.
make: stopped in /usr/src/usr.sbin/bhyve

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-246121-27103-4WzdT12lN3>