Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 926766 - app-emulation/virtualbox-guest-additions-7.0.14-r1 fails to build with kernel 6.8.0
Summary: app-emulation/virtualbox-guest-additions-7.0.14-r1 fails to build with kernel...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Viorel Munteanu
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-11 13:29 UTC by Helmut Jarausch
Modified: 2024-03-28 18:36 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (virtualbox-guest-additions-7.0.14-r1.build.xz,111.18 KB, application/x-xz)
2024-03-11 13:29 UTC, Helmut Jarausch
Details
emerge --info (virtualbox-guest-additions.info,20.77 KB, text/plain)
2024-03-11 13:30 UTC, Helmut Jarausch
Details
Squash-of-initial-support-for-kernel-6.8-bugref-10584.patch (Squash-of-initial-support-for-kernel-6.8-bugref-10584.patch,4.92 KB, patch)
2024-03-28 09:15 UTC, Yuri Sevatz
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Helmut Jarausch 2024-03-11 13:29:39 UTC
Created attachment 887361 [details]
build log

/var/tmp/portage/app-emulation/virtualbox-guest-additions-7.0.14-r1/work/VirtualBox-7.0.14/out/linux.amd64/release/bin/additions/src/vboxguest/VBoxGuest-linux.c:1364:9:
 
error: implicit declaration of function 'strlcpy'; did you mean 'strscpy'? 

[]8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wimplicit-function-declaration-Werror=implicit-function-declaration]8;;]
 1364 |         strlcpy(&g_szLogGrp[0], pszValue, sizeof(g_szLogGrp));
Comment 1 Helmut Jarausch 2024-03-11 13:30:41 UTC
Created attachment 887362 [details]
emerge --info
Comment 2 Yuri Sevatz 2024-03-28 08:36:02 UTC
This revision from upstream SVN appears to cover it:

https://www.virtualbox.org/changeset/103024/vbox

strlcpy() was removed from Linux Kernel, following discussions by maintainers to begin phasing it out in 2022.  Looks like in 6.8 they finally got around to doing that.

Usually Oracle does another quarterly release around April, so maybe 7.0.16 by then?  But if you're in a rush for running Linux Kernel 6.8, you could try building with the above patch in the meantime.
Comment 3 Yuri Sevatz 2024-03-28 09:07:13 UTC
Whoops -- missed a few links earlier.

There's 7 SVN revisions associated with VirtualBox 6.8 in upstream bugref:10584.

I'll condense them into a patch.
Comment 4 Yuri Sevatz 2024-03-28 09:15:16 UTC
Created attachment 888904 [details, diff]
Squash-of-initial-support-for-kernel-6.8-bugref-10584.patch

This compiles/loads with my guest 6.8 kernel.

Tested with VIDEO_CARDS="vmware" + mouse/keyboard.  Seems to be stable.
Comment 5 Larry the Git Cow gentoo-dev 2024-03-28 18:36:22 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=96629f629191da9552b00fc9d514bdde47c924a3

commit 96629f629191da9552b00fc9d514bdde47c924a3
Author:     Viorel Munteanu <ceamac@gentoo.org>
AuthorDate: 2024-03-14 09:00:15 +0000
Commit:     Viorel Munteanu <ceamac@gentoo.org>
CommitDate: 2024-03-28 18:32:42 +0000

    app-emulation/virtualbox-guest-additions: patches for kernel 6.8
    
    Apply a few upstream patches.
    
    Closes: https://bugs.gentoo.org/926766
    Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>

 ...tualbox-guest-additions-7.0.14-kernel-6.8.patch | 242 +++++++++++++++++
 .../virtualbox-guest-additions-7.0.14-r2.ebuild    | 295 +++++++++++++++++++++
 2 files changed, 537 insertions(+)