Guest Additions build failure Slackware 13.37

Temporary forum to discuss issues and problems during a VirtualBox Beta or Release Candidate phase.

Guest Additions build failure Slackware 13.37

Postby stes » 10. Dec 2018, 15:27

Host : Solaris 11.4 vbox 6.0.0r3

Guest: 32bit Slackware 13.37

As reported before the Guest Additions of 6.0.0r3 build fine on Linux 4.4.14 with gcc 5.3 (Slackware 14.2)
There - with a more recent kernel - it works fine. That is Slackware64 (64bit by the way).

A similar install of Slackware 13.37 has the following problem :

Slackware guest was installed with a *full* install of the A,AP,D (developer), K (kernel) , L, N and Y series.
Code: Select all   Expand viewCollapse view
root@deimos:~# uname -r
2.6.37.6-smp

root@deimos:~# cat /etc/slackware-version
Slackware 13.37.0

root@deimos:~# gcc --version
gcc (GCC) 4.5.2

Problem :
Code: Select all   Expand viewCollapse view
root@deimos:~# /mnt/cdrom/VBoxLinuxAdditions.run   
Verifying archive integrity... All good.
Uncompressing VirtualBox 6.0.0_BETA3 Guest Additions for Linux........
VirtualBox Guest Additions installer
Copying additional installer modules ...
Installing additional modules ...
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel modules.  This may take a while.
VirtualBox Guest Additions: To build modules for other installed kernels, run
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup <version>
VirtualBox Guest Additions: Building the modules for kernel 2.6.37.6-smp.

VirtualBox Guest Additions: Look at /var/log/vboxadd-setup.log to find out what went wrong
VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: modprobe vboxsf failed

A new attempt shows the following #include problem :
Code: Select all   Expand viewCollapse view
root@deimos:~# /sbin/rcvboxadd setup
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel modules.  This may take a while.
VirtualBox Guest Additions: To build modules for other installed kernels, run
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup <version>
VirtualBox Guest Additions: Building the modules for kernel 2.6.37.6-smp.

VirtualBox Guest Additions: Look at /var/log/vboxadd-setup.log to find out what went wrong
VirtualBox Guest Additions: Running kernel modules will not be replaced until the system is restarted
VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: modprobe vboxsf failed
root@deimos:~# cat /var/log/vboxadd-setup.log
Building the main Guest Additions module for kernel 2.6.37.6-smp.
Building the shared folder support module.
Error building the module.  Build output follows.
make V=1 CONFIG_MODULE_SIG= -C /lib/modules/2.6.37.6-smp/build SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 -j1 modules
test -e include/generated/autoconf.h -a -e include/config/auto.conf || (                \
echo;                                                           \
echo "  ERROR: Kernel configuration is invalid.";               \
echo "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo "         Run 'make oldconfig && make prepare' on kernel src to fix it.";  \
echo;                                                           \
/bin/false)
mkdir -p /tmp/vbox.0/.tmp_versions ; rm -f /tmp/vbox.0/.tmp_versions/*
make -f scripts/Makefile.build obj=/tmp/vbox.0
  gcc -Wp,-MD,/tmp/vbox.0/.vfsmod.o.d  -nostdinc -isystem /usr/lib/gcc/i486-slackware-linux/4.5.2/include -I/usr/src/linux-2.6.37.6/arch/x86/include -Iinclude  -include include/generated/autoconf.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=i686 -mtune=generic -maccumulate-outgoing-args -Wa,-mtune=generic32 -ffreestanding -fstack-protector -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fno-omit-frame-pointer -fno-optimize-sibling-calls -pg -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -Wno-declaration-after-statement -fshort-wchar -include /tmp/vbox.0/include/VBox/VBoxGuestMangling.h -fno-pie -I/lib/modules/2.6.37.6-smp/build/include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -I/tmp/vbox.0/vboxsf/ -I/tmp/vbox.0/vboxsf/include -I/tmp/vbox.0/vboxsf/r0drv/linux -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DVBOX_WITH_HGCM -DIN_MODULE -DIN_GUEST_R0 -DRT_NO_EXPORT_SYMBOL -DRT_ARCH_X86  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(vfsmod)"  -D"KBUILD_MODNAME=KBUILD_STR(vboxsf)" -c -o /tmp/vbox.0/vfsmod.o /tmp/vbox.0/vfsmod.c
/tmp/vbox.0/vfsmod.c: In function 'sf_show_options':
/tmp/vbox.0/vfsmod.c:509:30: error: dereferencing pointer to incomplete type
/tmp/vbox.0/vfsmod.c:515:3: error: implicit declaration of function 'seq_printf'
/tmp/vbox.0/vfsmod.c:518:4: error: implicit declaration of function 'seq_puts'
/tmp/vbox.0/vfsmod.c:519:4: error: implicit declaration of function 'seq_escape'
make[2]: *** [/tmp/vbox.0/vfsmod.o] Error 1
make[1]: *** [_module_/tmp/vbox.0] Error 2
make: *** [vboxsf] Error 2
Could not find the X.Org or XFree86 Window System, skipping.

Also there is in the above error output an indication that one should run
Code: Select all   Expand viewCollapse view
make oldconfig && make prepare


in the kernel source, which on Slackware works, but does not help :
Code: Select all   Expand viewCollapse view
root@deimos:~# cd /usr/src/linux
root@deimos:/usr/src/linux# make oldconfig && make prepare
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/basic/docproc
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/kxgettext.o
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
scripts/kconfig/conf --oldconfig Kconfig
#
# configuration written to .config
#
scripts/kconfig/conf --silentoldconfig Kconfig
  CHK     include/linux/version.h
  CHK     include/generated/utsrelease.h
  CALL    scripts/checksyscalls.sh
root@deimos:/usr/src/linux# /sbin/rcvboxadd setup
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel modules.  This may take a while.
VirtualBox Guest Additions: To build modules for other installed kernels, run
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup <version>
VirtualBox Guest Additions: Building the modules for kernel 2.6.37.6-smp.

VirtualBox Guest Additions: Look at /var/log/vboxadd-setup.log to find out what went wrong
VirtualBox Guest Additions: Running kernel modules will not be replaced until the system is restarted
VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: modprobe vboxsf failed
root@deimos:/usr/src/linux# cat /var/log/vboxadd-setup.log
Building the main Guest Additions module for kernel 2.6.37.6-smp.
Building the shared folder support module.
Error building the module.  Build output follows.
make V=1 CONFIG_MODULE_SIG= -C /lib/modules/2.6.37.6-smp/build SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 -j1 modules
test -e include/generated/autoconf.h -a -e include/config/auto.conf || (                \
echo;                                                           \
echo "  ERROR: Kernel configuration is invalid.";               \
echo "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo "         Run 'make oldconfig && make prepare' on kernel src to fix it.";  \
echo;                                                           \
/bin/false)
mkdir -p /tmp/vbox.0/.tmp_versions ; rm -f /tmp/vbox.0/.tmp_versions/*
make -f scripts/Makefile.build obj=/tmp/vbox.0
  gcc -Wp,-MD,/tmp/vbox.0/.vfsmod.o.d  -nostdinc -isystem /usr/lib/gcc/i486-slackware-linux/4.5.2/include -I/usr/src/linux-2.6.37.6/arch/x86/include -Iinclude  -include include/generated/autoconf.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=i686 -mtune=generic -maccumulate-outgoing-args -Wa,-mtune=generic32 -ffreestanding -fstack-protector -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fno-omit-frame-pointer -fno-optimize-sibling-calls -pg -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -Wno-declaration-after-statement -fshort-wchar -include /tmp/vbox.0/include/VBox/VBoxGuestMangling.h -fno-pie -I/lib/modules/2.6.37.6-smp/build/include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -I/tmp/vbox.0/vboxsf/ -I/tmp/vbox.0/vboxsf/include -I/tmp/vbox.0/vboxsf/r0drv/linux -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DVBOX_WITH_HGCM -DIN_MODULE -DIN_GUEST_R0 -DRT_NO_EXPORT_SYMBOL -DRT_ARCH_X86  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(vfsmod)"  -D"KBUILD_MODNAME=KBUILD_STR(vboxsf)" -c -o /tmp/vbox.0/vfsmod.o /tmp/vbox.0/vfsmod.c
/tmp/vbox.0/vfsmod.c: In function 'sf_show_options':
/tmp/vbox.0/vfsmod.c:509:30: error: dereferencing pointer to incomplete type
/tmp/vbox.0/vfsmod.c:515:3: error: implicit declaration of function 'seq_printf'
/tmp/vbox.0/vfsmod.c:518:4: error: implicit declaration of function 'seq_puts'
/tmp/vbox.0/vfsmod.c:519:4: error: implicit declaration of function 'seq_escape'
make[2]: *** [/tmp/vbox.0/vfsmod.o] Error 1
make[1]: *** [_module_/tmp/vbox.0] Error 2
make: *** [vboxsf] Error 2
Could not find the X.Org or XFree86 Window System, skipping.
root@deimos:/usr/src/linux# find . -name autoconf.h
./include/generated/autoconf.h
stes
 
Posts: 124
Joined: 28. Apr 2018, 11:07

Re: Guest Additions build failure Slackware 13.37

Postby andyp73 » 10. Dec 2018, 15:51

stes wrote:
Code: Select all   Expand viewCollapse view
test -e include/generated/autoconf.h -a -e include/config/auto.conf || (                \
echo;                                                           \
echo "  ERROR: Kernel configuration is invalid.";               \
echo "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo "         Run 'make oldconfig && make prepare' on kernel src to fix it.";  \
echo;                                                           \
/bin/false)

This is all one single "test" command. If you haven't explicitly seen the messages output to the console then the test hasn't failed and you don't need to run the commands to fix it.

The three seq_ functions it gives an error on are in the kernel header include/seq_file.h which either isn't installed in your guest or isn't properly included.

-Andy.
My crystal ball is currently broken. If you want assistance you are going to have to give me all of the necessary information.
Please don't ask me to do your homework for you, I have more than enough of my own things to do.
andyp73
Volunteer
 
Posts: 1423
Joined: 25. May 2010, 23:48
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Assorted Linux, Windows Server 2012, DOS, Windows 10, BIOS/UEFI emulation

Re: Guest Additions build failure Slackware 13.37

Postby stes » 11. Dec 2018, 18:34

I realise this is an #include problem, but I'm just reporting it.

Also it is unclear to me whether the goal is to support all of the old Linux kernels, maybe that is not a very realistic goal.

For what it's worth unfortunately this "problem" (if one considers it a problem) persists on 6.0.0 RC1.

In the kernel 4.4. series all seems fine and the guest additions of 6.0.0 RC1 compile. On the 2.6 series they fail on what appears to be an #include problem. There's more than way to look at such a problem, there are always many interpretations possible on whether something is a feature or a bug ...

In any case on a freshly installed guest without modules loaded or present:
Code: Select all   Expand viewCollapse view
root@deimos:~# uname -r
2.6.37.6-smp
root@deimos:~# lsmod | grep vbox
root@deimos:~# cat /etc/slackware-version
Slackware 13.37.0
root@deimos:~# /mnt/VBoxLinuxAdditions.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 6.0.0_RC1 Guest Additions for Linux........
VirtualBox Guest Additions installer
Copying additional installer modules ...
Installing additional modules ...
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel modul
es.  This may take a while.
VirtualBox Guest Additions: To build modules for other installed kernels, run
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup <version>
VirtualBox Guest Additions: Building the modules for kernel 2.6.37.6-smp.

VirtualBox Guest Additions: Look at /var/log/vboxadd-setup.log to find out what
went wrong
VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: modprobe vboxsf failed


The problem may thus also be present on other Linux distributions that use the 2.6 kernel series.
For example Oracle Linux with the Red Hat compatible kernel (not the UEK kernel).

As said the same commands succeed on Slackware 14.2:

Code: Select all   Expand viewCollapse view
root@phobos:~# uname -r
4.4.14
root@phobos:~# cat /etc/slackware-version
Slackware 14.2
root@phobos:~# mount /dev/sr0 /mnt/cdrom
mount: /dev/sr0 is write-protected, mounting read-only
root@phobos:~# /mnt/cdrom/VBoxLinuxAdditions.run   
Verifying archive integrity... All good.
Uncompressing VirtualBox 6.0.0_RC1 Guest Additions for Linux........
VirtualBox Guest Additions installer
Copying additional installer modules ...
Installing additional modules ...
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel modul
es.  This may take a while.
VirtualBox Guest Additions: To build modules for other installed kernels, run
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup <version>
VirtualBox Guest Additions: Building the modules for kernel 4.4.14.
VirtualBox Guest Additions: Starting.
stes
 
Posts: 124
Joined: 28. Apr 2018, 11:07

Re: Guest Additions build failure Slackware 13.37

Postby stes » 19. Jan 2019, 21:12

This problem seems to be fixed in VirtualBox 6.0.2 : the guest additions build fine now on Slackware 13.37

Code: Select all   Expand viewCollapse view
root@saturn:~# cat /etc/slackware-version
Slackware 13.37.0
root@saturn:~# uname -a
Linux saturn 2.6.37.6-smp


This is with gcc 4.5.2 and kernel 2.6.37

Full Slackware install (all series)

Code: Select all   Expand viewCollapse view
root@saturn:/mnt/cdrom# ./VBoxLinuxAdditions.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 6.0.2 Guest Additions for Linux........
VirtualBox Guest Additions installer
Copying additional installer modules ...
Installing additional modules ...
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel modul
es.  This may take a while.
VirtualBox Guest Additions: To build modules for other installed kernels, run
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup <version>
VirtualBox Guest Additions: Building the modules for kernel 2.6.37.6-smp.
VirtualBox Guest Additions: Starting.


the modules loaded are:

Code: Select all   Expand viewCollapse view
root@saturn:~# ps -ef | grep VBox
root      3700     2  0 20:01 ?        00:00:00 [iprt-VBoxWQueue]
root      3929     1  0 20:01 ?        00:00:00 /usr/sbin/VBoxService --pidfile
/var/run/vboxadd-service.sh
root      3953  1788  0 20:01 pts/0    00:00:00 grep VBox
root@saturn:~# lsmod | grep vbox
vboxsf                 33353  0
vboxguest             220302  2 vboxsf


The problem of vboxsf not building on Linux 2.36 kernels seems to be resolved again ...
stes
 
Posts: 124
Joined: 28. Apr 2018, 11:07

Re: Guest Additions build failure Slackware 13.37

Postby socratis » 20. Jan 2019, 12:16

#18213 Install/Build Guestadditions on SLES12SP4 failed - Fixed with 6.0.1 r128018 or later.

Please keep an eye on the release notes/discussions (such as viewtopic.php?f=1&t=90824), not so much in the beta...
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
socratis
Site Moderator
 
Posts: 22811
Joined: 22. Oct 2010, 11:03
Location: Greece
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5


Return to VirtualBox Beta / Release Candidate Feedback

Who is online

Users browsing this forum: No registered users and 1 guest