If DROPBEAR_X11FWD is being set to 1, compilation will fail. x86_64-pc-linux-gnu-gcc -c -march=native -O2 -pipe -march=native -O2 -pipe -Wno-pointer-sign -fno-strict-overflow -I./libtomcrypt/src/headers/ -DLOCALOPTIONS_H_EXISTS -I. -I. -DDROPBEAR_SERVER -DDROPBEAR_CLIENT -DDBMULTI_dropbear -DDBMULTI_dbclient -DDBMULTI_dropbearkey -DDBMULTI_dropbearconvert -DDBMULTI_scp -DDROPBEAR_MULTI svr-x11fwd.c -o svr-x11fwd.o svr-x11fwd.c: In function ‘x11_inithandler’: svr-x11fwd.c:209:25: error: ‘DROPBEAR_CHANNEL_PRIO_INTERACTIVE’ undeclared (first use in this function) 209 | channel->prio = DROPBEAR_CHANNEL_PRIO_INTERACTIVE; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ svr-x11fwd.c:209:25: note: each undeclared identifier is reported only once for each function it appears in make: *** [Makefile:154: svr-x11fwd.o] Error 1 * ERROR: net-misc/dropbear-2022.82::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=net-misc/dropbear-2022.82::gentoo'`, * the complete build log and the output of `emerge -pqv '=net-misc/dropbear-2022.82::gentoo'`. * The complete build log is located at '/var/tmp/portage/net-misc/dropbear-2022.82/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/net-misc/dropbear-2022.82/temp/environment'. * Working directory: '/var/tmp/portage/net-misc/dropbear-2022.82/work/dropbear-2022.82' * S: '/var/tmp/portage/net-misc/dropbear-2022.82/work/dropbear-2022.82'
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=78c789a9d72d495eb4eddcbb8e28883fd976f9d8 commit 78c789a9d72d495eb4eddcbb8e28883fd976f9d8 Author: Conrad Kostecki <conikost@gentoo.org> AuthorDate: 2022-04-23 21:32:06 +0000 Commit: Conrad Kostecki <conikost@gentoo.org> CommitDate: 2022-04-23 21:34:54 +0000 net-misc/dropbear: fix compilation with enabled x11 Closes: https://bugs.gentoo.org/837164 Signed-off-by: Conrad Kostecki <conikost@gentoo.org> net-misc/dropbear/dropbear-2022.82.ebuild | 1 + net-misc/dropbear/files/dropbear-2022.82-x11.patch | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+)
cheers conikost!