autoconf.h or auto.conf reported missing while "building" Oracle Corp.'s VirtualBox Guest Additions

Hello. During June 8-9, 2022 I offline upgraded Leap 15.3 to Leap 15.4 and afterward while online updated the resulting, Leap computer software within Oracle VirtualBox 6.1.34r150636 (amd64), with all of those things within my 64-bit Windows 10 Home Edition operating system. The initial Linux kernel version in my Leap-15.4 installation was version 5.14.21-150400.22-default. My usual recent practice has been to return to following a number of the instructions on https://en.opensuse.org/VirtualBox on the Internet to install VirtualBox Guest Additions from Oracle Corporation rather than to use VirtualBox Guest Additions supplied through openSUSE online repositories (after Oracle Corporation kindly made its VirtualBox Guest Additions installation procedure compatible with some Linux kernels used in openSUSE Leap sometime in the year 2021). Then afterward my practice has been to check that the VirtualBox Guest Additions have been working by copying and “pasting” text between my Windows-10 “host” and Leap “guest” installations and by checking to see that the contents of a folder shared by my Windows-10 “host” and Leap “guest” installations have been visible in my Leap “guest” installation.

On July 21, 2022 I upgraded the Linux kernel in my Leap-15.4 installation to version 5.14.21-150400.24.11.1.x86_64 of it and on that same day updated VirtualBox to version 6.1.36r152435 (amd64). Afterward I again followed a procedure similar to on https://en.opensuse.org/VirtualBox to have VirtualBox Guest Additions installed from Oracle Corporation computer software. Afterward those VirtualBox Guest Additions gratefully worked well regarding the copying and “pasting” of text and in the contents of the folder shared by my Windows-10 “host” and Leap-15.4 “guest” operating systems being visible in my Leap-15.4 installation. But there has been at least one error reported, which thus far has not been consequential regarding my use of the so-produced VirtualBox Guest Additions:

echo >&2 "  ERROR: Kernel configuration is invalid.";		\
echo >&2 "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 "         Run 'make oldconfig && make prepare' on kernel src to fix it.";	\

I cannot write that such an error occurred or did not occur after my upgrade of Leap 15.3 to Leap 15.4, updating that Leap-15.4 computer software, and following the instructions on https://en.opensuse.org/VirtualBox. In preparing to follow the above instructions to eliminate the reported error, after updating the Linux kernel to version 5.14.21-150400.24.11.1.x86_64 of it I decided that /usr/src would have been the main directory in which the software package kernel-source would have been installed. I verified that I had the software packages kernel-source and kernel-default-devel installed in my Leap-15.4 installation; and after examining https://www.linuxjournal.com/content/what-does-it-take-make-kernel-0 decided that I should be entering the command

make oldconfig && make prepare

in the directory /usr/src/linux-5.14.21-150400.24.11 instead of in the directory /usr/src/linux-5.14.21-150400.24.11-obj. Concerning the files reported missing I found one of them in my Leap-15.4 installation as /usr/src/linux-5.14.21-150400.24.11-obj/x86_64/default/include/config/auto.config. And after the operations I performed below I found /usr/src/linux-5.14.21-150400.24.11-obj/x86_64/default/include/generated/autoconf.h, (But my note, which I now strongly suspect I may have mistakenly written, has autoconfig.h as the name of the second sought file.) I did not notice any report of any error message after I entered the command

make oldconfig && make prepare

. But, as you can see below, I unfortunately received a similar error message after trying to have VirtualBox Guest Additions “built” using my usual, https://en.opensuse.org/VirtualBox procedure.
Please advise me how I may make that procedure work again for me without the message

ERROR: Kernel configuration is invalid

You can see “newbie” below. That is my user name in my Leap-15.4 installation. And linux-hdi0 is also something special for my Leap-15.4 installation. Not shown below is that after I entered “su” I entered my “root”-user password.

newbie@linux-hdi0:~> su
Password: 
linux-hdi0:/home/newbie # cd /usr/src/linux-5.14.21-150400.24.11
linux-hdi0:/usr/src/linux-5.14.21-150400.24.11 # make oldconfig && make prepare
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/confdata.o
  HOSTCC  scripts/kconfig/expr.o
  LEX     scripts/kconfig/lexer.lex.c
  YACC    scripts/kconfig/parser.tab.[ch]
  HOSTCC  scripts/kconfig/lexer.lex.o
  HOSTCC  scripts/kconfig/menu.o
  HOSTCC  scripts/kconfig/parser.tab.o
  HOSTCC  scripts/kconfig/preprocess.o
  HOSTCC  scripts/kconfig/symbol.o
  HOSTCC  scripts/kconfig/util.o
  HOSTLD  scripts/kconfig/conf
#
# using defaults found in /boot/config-5.14.21-150400.24.11-default
#
#
# configuration written to .config
#
  SYSHDR  arch/x86/include/generated/uapi/asm/unistd_32.h
  SYSHDR  arch/x86/include/generated/uapi/asm/unistd_64.h
  SYSHDR  arch/x86/include/generated/uapi/asm/unistd_x32.h
  SYSTBL  arch/x86/include/generated/asm/syscalls_32.h
  SYSHDR  arch/x86/include/generated/asm/unistd_32_ia32.h
  SYSHDR  arch/x86/include/generated/asm/unistd_64_x32.h
  SYSTBL  arch/x86/include/generated/asm/syscalls_64.h
  HYPERCALLS arch/x86/include/generated/asm/xen-hypercalls.h
  HOSTCC  arch/x86/tools/relocs_32.o
  HOSTCC  arch/x86/tools/relocs_64.o
  HOSTCC  arch/x86/tools/relocs_common.o
  HOSTLD  arch/x86/tools/relocs
  HOSTCC  scripts/genksyms/genksyms.o
  YACC    scripts/genksyms/parse.tab.[ch]
  HOSTCC  scripts/genksyms/parse.tab.o
  LEX     scripts/genksyms/lex.lex.c
  HOSTCC  scripts/genksyms/lex.lex.o
  HOSTLD  scripts/genksyms/genksyms
  HOSTCC  scripts/selinux/genheaders/genheaders
  HOSTCC  scripts/selinux/mdp/mdp
  HOSTCC  scripts/bin2c
  HOSTCC  scripts/kallsyms
  HOSTCC  scripts/sorttable
  HOSTCC  scripts/asn1_compiler
  HOSTCC  scripts/sign-file
  HOSTCC  scripts/extract-cert
  WRAP    arch/x86/include/generated/uapi/asm/bpf_perf_event.h
  WRAP    arch/x86/include/generated/uapi/asm/errno.h
  WRAP    arch/x86/include/generated/uapi/asm/fcntl.h
  WRAP    arch/x86/include/generated/uapi/asm/ioctl.h
  WRAP    arch/x86/include/generated/uapi/asm/ioctls.h
  WRAP    arch/x86/include/generated/uapi/asm/ipcbuf.h
  WRAP    arch/x86/include/generated/uapi/asm/param.h
  WRAP    arch/x86/include/generated/uapi/asm/poll.h
  WRAP    arch/x86/include/generated/uapi/asm/resource.h
  WRAP    arch/x86/include/generated/uapi/asm/socket.h
  WRAP    arch/x86/include/generated/uapi/asm/sockios.h
  WRAP    arch/x86/include/generated/uapi/asm/termbits.h
  WRAP    arch/x86/include/generated/uapi/asm/termios.h
  WRAP    arch/x86/include/generated/uapi/asm/types.h
  WRAP    arch/x86/include/generated/asm/early_ioremap.h
  WRAP    arch/x86/include/generated/asm/export.h
  WRAP    arch/x86/include/generated/asm/mcs_spinlock.h
  WRAP    arch/x86/include/generated/asm/irq_regs.h
  WRAP    arch/x86/include/generated/asm/kmap_size.h
  WRAP    arch/x86/include/generated/asm/local64.h
  WRAP    arch/x86/include/generated/asm/mmiowb.h
  WRAP    arch/x86/include/generated/asm/module.lds.h
  WRAP    arch/x86/include/generated/asm/rwonce.h
  WRAP    arch/x86/include/generated/asm/unaligned.h
  UPD     include/config/kernel.release
  UPD     include/generated/uapi/linux/version.h
  UPD     include/generated/utsrelease.h
  UPD     include/generated/uapi/linux/suse_version.h
  CC      scripts/mod/empty.o
  HOSTCC  scripts/mod/mk_elfconfig
  MKELF   scripts/mod/elfconfig.h
  HOSTCC  scripts/mod/modpost.o
  CC      scripts/mod/devicetable-offsets.s
  UPD     scripts/mod/devicetable-offsets.h
  HOSTCC  scripts/mod/file2alias.o
  HOSTCC  scripts/mod/sumversion.o
  HOSTLD  scripts/mod/modpost
  HOSTCC  scripts/mod/ksym-provides.o
  HOSTLD  scripts/mod/ksym-provides
  CC      kernel/bounds.s
  UPD     include/generated/bounds.h
  UPD     include/generated/timeconst.h
  CC      arch/x86/kernel/asm-offsets.s
  UPD     include/generated/asm-offsets.h
  CALL    scripts/checksyscalls.sh
  CALL    scripts/atomic/check-atomics.sh
  DESCEND objtool
  HOSTCC  /usr/src/linux-5.14.21-150400.24.11/tools/objtool/fixdep.o
  HOSTLD  /usr/src/linux-5.14.21-150400.24.11/tools/objtool/fixdep-in.o
  LINK    /usr/src/linux-5.14.21-150400.24.11/tools/objtool/fixdep
  CC      /usr/src/linux-5.14.21-150400.24.11/tools/objtool/exec-cmd.o
  CC      /usr/src/linux-5.14.21-150400.24.11/tools/objtool/help.o
  CC      /usr/src/linux-5.14.21-150400.24.11/tools/objtool/pager.o
  CC      /usr/src/linux-5.14.21-150400.24.11/tools/objtool/parse-options.o
  CC      /usr/src/linux-5.14.21-150400.24.11/tools/objtool/run-command.o
  CC      /usr/src/linux-5.14.21-150400.24.11/tools/objtool/sigchain.o
  CC      /usr/src/linux-5.14.21-150400.24.11/tools/objtool/subcmd-config.o
  LD      /usr/src/linux-5.14.21-150400.24.11/tools/objtool/libsubcmd-in.o
  AR      /usr/src/linux-5.14.21-150400.24.11/tools/objtool/libsubcmd.a
  CC      /usr/src/linux-5.14.21-150400.24.11/tools/objtool/arch/x86/special.o
  MKDIR   /usr/src/linux-5.14.21-150400.24.11/tools/objtool/arch/x86/lib/
  GEN     /usr/src/linux-5.14.21-150400.24.11/tools/objtool/arch/x86/lib/inat-tables.c
  CC      /usr/src/linux-5.14.21-150400.24.11/tools/objtool/arch/x86/decode.o
  LD      /usr/src/linux-5.14.21-150400.24.11/tools/objtool/arch/x86/objtool-in.o
  CC      /usr/src/linux-5.14.21-150400.24.11/tools/objtool/weak.o
  CC      /usr/src/linux-5.14.21-150400.24.11/tools/objtool/check.o
  CC      /usr/src/linux-5.14.21-150400.24.11/tools/objtool/special.o
  CC      /usr/src/linux-5.14.21-150400.24.11/tools/objtool/orc_gen.o
  CC      /usr/src/linux-5.14.21-150400.24.11/tools/objtool/orc_dump.o
  CC      /usr/src/linux-5.14.21-150400.24.11/tools/objtool/builtin-check.o
  CC      /usr/src/linux-5.14.21-150400.24.11/tools/objtool/builtin-orc.o
  CC      /usr/src/linux-5.14.21-150400.24.11/tools/objtool/elf.o
  CC      /usr/src/linux-5.14.21-150400.24.11/tools/objtool/objtool.o
  CC      /usr/src/linux-5.14.21-150400.24.11/tools/objtool/libstring.o
  CC      /usr/src/linux-5.14.21-150400.24.11/tools/objtool/libctype.o
  CC      /usr/src/linux-5.14.21-150400.24.11/tools/objtool/str_error_r.o
  CC      /usr/src/linux-5.14.21-150400.24.11/tools/objtool/librbtree.o
  LD      /usr/src/linux-5.14.21-150400.24.11/tools/objtool/objtool-in.o
  LINK    /usr/src/linux-5.14.21-150400.24.11/tools/objtool/objtool
  DESCEND bpf/resolve_btfids
  MKDIR     /usr/src/linux-5.14.21-150400.24.11/tools/bpf/resolve_btfids//libbpf
  GEN     /usr/src/linux-5.14.21-150400.24.11/tools/bpf/resolve_btfids/libbpf/bpf_helper_defs.h
  MKDIR   /usr/src/linux-5.14.21-150400.24.11/tools/bpf/resolve_btfids/libbpf/staticobjs/
  CC      /usr/src/linux-5.14.21-150400.24.11/tools/bpf/resolve_btfids/libbpf/staticobjs/libbpf.o
  CC      /usr/src/linux-5.14.21-150400.24.11/tools/bpf/resolve_btfids/libbpf/staticobjs/bpf.o
  CC      /usr/src/linux-5.14.21-150400.24.11/tools/bpf/resolve_btfids/libbpf/staticobjs/nlattr.o
  CC      /usr/src/linux-5.14.21-150400.24.11/tools/bpf/resolve_btfids/libbpf/staticobjs/btf.o
  CC      /usr/src/linux-5.14.21-150400.24.11/tools/bpf/resolve_btfids/libbpf/staticobjs/libbpf_errno.o
  CC      /usr/src/linux-5.14.21-150400.24.11/tools/bpf/resolve_btfids/libbpf/staticobjs/str_error.o
  CC      /usr/src/linux-5.14.21-150400.24.11/tools/bpf/resolve_btfids/libbpf/staticobjs/netlink.o
  CC      /usr/src/linux-5.14.21-150400.24.11/tools/bpf/resolve_btfids/libbpf/staticobjs/bpf_prog_linfo.o
  CC      /usr/src/linux-5.14.21-150400.24.11/tools/bpf/resolve_btfids/libbpf/staticobjs/libbpf_probes.o
  CC      /usr/src/linux-5.14.21-150400.24.11/tools/bpf/resolve_btfids/libbpf/staticobjs/xsk.o
  CC      /usr/src/linux-5.14.21-150400.24.11/tools/bpf/resolve_btfids/libbpf/staticobjs/hashmap.o
  CC      /usr/src/linux-5.14.21-150400.24.11/tools/bpf/resolve_btfids/libbpf/staticobjs/btf_dump.o
  CC      /usr/src/linux-5.14.21-150400.24.11/tools/bpf/resolve_btfids/libbpf/staticobjs/ringbuf.o
  CC      /usr/src/linux-5.14.21-150400.24.11/tools/bpf/resolve_btfids/libbpf/staticobjs/strset.o
  CC      /usr/src/linux-5.14.21-150400.24.11/tools/bpf/resolve_btfids/libbpf/staticobjs/linker.o
  CC      /usr/src/linux-5.14.21-150400.24.11/tools/bpf/resolve_btfids/libbpf/staticobjs/gen_loader.o
  LD      /usr/src/linux-5.14.21-150400.24.11/tools/bpf/resolve_btfids/libbpf/staticobjs/libbpf-in.o
  LINK    /usr/src/linux-5.14.21-150400.24.11/tools/bpf/resolve_btfids/libbpf/libbpf.a
  HOSTCC  /usr/src/linux-5.14.21-150400.24.11/tools/bpf/resolve_btfids/fixdep.o
  HOSTLD  /usr/src/linux-5.14.21-150400.24.11/tools/bpf/resolve_btfids/fixdep-in.o
  LINK    /usr/src/linux-5.14.21-150400.24.11/tools/bpf/resolve_btfids/fixdep
  MKDIR     /usr/src/linux-5.14.21-150400.24.11/tools/bpf/resolve_btfids//libsubcmd
  CC      /usr/src/linux-5.14.21-150400.24.11/tools/bpf/resolve_btfids/libsubcmd/exec-cmd.o
  CC      /usr/src/linux-5.14.21-150400.24.11/tools/bpf/resolve_btfids/libsubcmd/help.o
  CC      /usr/src/linux-5.14.21-150400.24.11/tools/bpf/resolve_btfids/libsubcmd/pager.o
  CC      /usr/src/linux-5.14.21-150400.24.11/tools/bpf/resolve_btfids/libsubcmd/parse-options.o
  CC      /usr/src/linux-5.14.21-150400.24.11/tools/bpf/resolve_btfids/libsubcmd/run-command.o
  CC      /usr/src/linux-5.14.21-150400.24.11/tools/bpf/resolve_btfids/libsubcmd/sigchain.o
  CC      /usr/src/linux-5.14.21-150400.24.11/tools/bpf/resolve_btfids/libsubcmd/subcmd-config.o
  LD      /usr/src/linux-5.14.21-150400.24.11/tools/bpf/resolve_btfids/libsubcmd/libsubcmd-in.o
  AR      /usr/src/linux-5.14.21-150400.24.11/tools/bpf/resolve_btfids/libsubcmd/libsubcmd.a
  CC      /usr/src/linux-5.14.21-150400.24.11/tools/bpf/resolve_btfids/main.o
  CC      /usr/src/linux-5.14.21-150400.24.11/tools/bpf/resolve_btfids/rbtree.o
  CC      /usr/src/linux-5.14.21-150400.24.11/tools/bpf/resolve_btfids/zalloc.o
  CC      /usr/src/linux-5.14.21-150400.24.11/tools/bpf/resolve_btfids/string.o
  CC      /usr/src/linux-5.14.21-150400.24.11/tools/bpf/resolve_btfids/ctype.o
  CC      /usr/src/linux-5.14.21-150400.24.11/tools/bpf/resolve_btfids/str_error_r.o
  LD      /usr/src/linux-5.14.21-150400.24.11/tools/bpf/resolve_btfids/resolve_btfids-in.o
  LINK     resolve_btfids
linux-hdi0:/usr/src/linux-5.14.21-150400.24.11 # 

Afterward I had the following contents in the file /var/log/vboxadd-setup.log :


Building the main Guest Additions 6.1.36 module for kernel 5.14.21-150400.24.11-default.
Building the shared folder support module.
Building the graphics driver module.
Error building the module.  Build output follows.
make V=1 CONFIG_MODULE_SIG= CONFIG_MODULE_SIG_ALL= -C /lib/modules/5.14.21-150400.24.11-default/build M=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 -j2 modules
make[1]: warning: -jN forced in submake: disabling jobserver mode.
make -C /usr/src/linux-5.14.21-150400.24.11-obj/x86_64/default -f /usr/src/linux-5.14.21-150400.24.11/Makefile modules
test -e include/generated/autoconf.h -a -e include/config/auto.conf || (		\
echo >&2;							\
echo >&2 "  ERROR: Kernel configuration is invalid.";		\
echo >&2 "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 "         Run 'make oldconfig && make prepare' on kernel src to fix it.";	\
echo >&2 ;							\
/bin/false)
make -f /usr/src/linux-5.14.21-150400.24.11/scripts/Makefile.build obj=/tmp/vbox.0 \
single-build= \
need-builtin=1 need-modorder=1
  gcc -Wp,-MMD,/tmp/vbox.0/.hgsmi_base.o.d  -nostdinc -isystem /usr/lib64/gcc/x86_64-suse-linux/7/include -I/usr/src/linux-5.14.21-150400.24.11/arch/x86/include -I./arch/x86/include/generated -I/usr/src/linux-5.14.21-150400.24.11/include -I./include -I/usr/src/linux-5.14.21-150400.24.11/arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I/usr/src/linux-5.14.21-150400.24.11/include/uapi -I./include/generated/uapi -include /usr/src/linux-5.14.21-150400.24.11/include/linux/compiler-version.h -include /usr/src/linux-5.14.21-150400.24.11/include/linux/kconfig.h -include /usr/src/linux-5.14.21-150400.24.11/include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -mfunction-return=thunk-extern -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -O2 --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector-strong -Wimplicit-fallthrough=5 -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-stack-clash-protection -g -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -I/usr/src/linux-5.14.21-150400.24.11/include -I/tmp/vbox.0/ -I/usr/src/linux-5.14.21-150400.24.11/include/drm -D__KERNEL__ -DMODULE -DRT_WITHOUT_PRAGMA_ONCE -DRT_ARCH_AMD64  -DMODULE  -DKBUILD_BASENAME='"hgsmi_base"' -DKBUILD_MODNAME='"vboxvideo"' -D__KBUILD_MODNAME=kmod_vboxvideo -c -o /tmp/vbox.0/hgsmi_base.o /tmp/vbox.0/hgsmi_base.c
  gcc -Wp,-MMD,/tmp/vbox.0/.modesetting.o.d  -nostdinc -isystem /usr/lib64/gcc/x86_64-suse-linux/7/include -I/usr/src/linux-5.14.21-150400.24.11/arch/x86/include -I./arch/x86/include/generated -I/usr/src/linux-5.14.21-150400.24.11/include -I./include -I/usr/src/linux-5.14.21-150400.24.11/arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I/usr/src/linux-5.14.21-150400.24.11/include/uapi -I./include/generated/uapi -include /usr/src/linux-5.14.21-150400.24.11/include/linux/compiler-version.h -include /usr/src/linux-5.14.21-150400.24.11/include/linux/kconfig.h -include /usr/src/linux-5.14.21-150400.24.11/include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -mfunction-return=thunk-extern -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -O2 --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector-strong -Wimplicit-fallthrough=5 -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-stack-clash-protection -g -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -I/usr/src/linux-5.14.21-150400.24.11/include -I/tmp/vbox.0/ -I/usr/src/linux-5.14.21-150400.24.11/include/drm -D__KERNEL__ -DMODULE -DRT_WITHOUT_PRAGMA_ONCE -DRT_ARCH_AMD64  -DMODULE  -DKBUILD_BASENAME='"modesetting"' -DKBUILD_MODNAME='"vboxvideo"' -D__KBUILD_MODNAME=kmod_vboxvideo -c -o /tmp/vbox.0/modesetting.o /tmp/vbox.0/modesetting.c
   ./tools/objtool/objtool orc generate  --module  --no-fp   --retpoline  --uaccess   /tmp/vbox.0/hgsmi_base.o
  if objdump -h /tmp/vbox.0/hgsmi_base.o | grep -q __ksymtab; then gcc -E -D__GENKSYMS__ -Wp,-MMD,/tmp/vbox.0/.hgsmi_base.o.d  -nostdinc -isystem /usr/lib64/gcc/x86_64-suse-linux/7/include -I/usr/src/linux-5.14.21-150400.24.11/arch/x86/include -I./arch/x86/include/generated -I/usr/src/linux-5.14.21-150400.24.11/include -I./include -I/usr/src/linux-5.14.21-150400.24.11/arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I/usr/src/linux-5.14.21-150400.24.11/include/uapi -I./include/generated/uapi -include /usr/src/linux-5.14.21-150400.24.11/include/linux/compiler-version.h -include /usr/src/linux-5.14.21-150400.24.11/include/linux/kconfig.h -include /usr/src/linux-5.14.21-150400.24.11/include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -mfunction-return=thunk-extern -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -O2 --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector-strong -Wimplicit-fallthrough=5 -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-stack-clash-protection -g -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -I/usr/src/linux-5.14.21-150400.24.11/include -I/tmp/vbox.0/ -I/usr/src/linux-5.14.21-150400.24.11/include/drm -D__KERNEL__ -DMODULE -DRT_WITHOUT_PRAGMA_ONCE -DRT_ARCH_AMD64  -DMODULE  -DKBUILD_BASENAME='"hgsmi_base"' -DKBUILD_MODNAME='"vboxvideo"' -D__KBUILD_MODNAME=kmod_vboxvideo /tmp/vbox.0/hgsmi_base.c | scripts/genksyms/genksyms     -r /dev/null > /tmp/vbox.0/.tmp_hgsmi_base.ver; ld  -m elf_x86_64 -r -o /tmp/vbox.0/.tmp_hgsmi_base.o /tmp/vbox.0/hgsmi_base.o -T /tmp/vbox.0/.tmp_hgsmi_base.ver; mv -f /tmp/vbox.0/.tmp_hgsmi_base.o /tmp/vbox.0/hgsmi_base.o; rm -f /tmp/vbox.0/.tmp_hgsmi_base.ver; fi
   ./tools/objtool/objtool orc generate  --module  --no-fp   --retpoline  --uaccess   /tmp/vbox.0/modesetting.o
  gcc -Wp,-MMD,/tmp/vbox.0/.vbox_drv.o.d  -nostdinc -isystem /usr/lib64/gcc/x86_64-suse-linux/7/include -I/usr/src/linux-5.14.21-150400.24.11/arch/x86/include -I./arch/x86/include/generated -I/usr/src/linux-5.14.21-150400.24.11/include -I./include -I/usr/src/linux-5.14.21-150400.24.11/arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I/usr/src/linux-5.14.21-150400.24.11/include/uapi -I./include/generated/uapi -include /usr/src/linux-5.14.21-150400.24.11/include/linux/compiler-version.h -include /usr/src/linux-5.14.21-150400.24.11/include/linux/kconfig.h -include /usr/src/linux-5.14.21-150400.24.11/include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -mfunction-return=thunk-extern -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -O2 --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector-strong -Wimplicit-fallthrough=5 -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-stack-clash-protection -g -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -I/usr/src/linux-5.14.21-150400.24.11/include -I/tmp/vbox.0/ -I/usr/src/linux-5.14.21-150400.24.11/include/drm -D__KERNEL__ -DMODULE -DRT_WITHOUT_PRAGMA_ONCE -DRT_ARCH_AMD64  -DMODULE  -DKBUILD_BASENAME='"vbox_drv"' -DKBUILD_MODNAME='"vboxvideo"' -D__KBUILD_MODNAME=kmod_vboxvideo -c -o /tmp/vbox.0/vbox_drv.o /tmp/vbox.0/vbox_drv.c
  if objdump -h /tmp/vbox.0/modesetting.o | grep -q __ksymtab; then gcc -E -D__GENKSYMS__ -Wp,-MMD,/tmp/vbox.0/.modesetting.o.d  -nostdinc -isystem /usr/lib64/gcc/x86_64-suse-linux/7/include -I/usr/src/linux-5.14.21-150400.24.11/arch/x86/include -I./arch/x86/include/generated -I/usr/src/linux-5.14.21-150400.24.11/include -I./include -I/usr/src/linux-5.14.21-150400.24.11/arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I/usr/src/linux-5.14.21-150400.24.11/include/uapi -I./include/generated/uapi -include /usr/src/linux-5.14.21-150400.24.11/include/linux/compiler-version.h -include /usr/src/linux-5.14.21-150400.24.11/include/linux/kconfig.h -include /usr/src/linux-5.14.21-150400.24.11/include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -mfunction-return=thunk-extern -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -O2 --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector-strong -Wimplicit-fallthrough=5 -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-stack-clash-protection -g -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -I/usr/src/linux-5.14.21-150400.24.11/include -I/tmp/vbox.0/ -I/usr/src/linux-5.14.21-150400.24.11/include/drm -D__KERNEL__ -DMODULE -DRT_WITHOUT_PRAGMA_ONCE -DRT_ARCH_AMD64  -DMODULE  -DKBUILD_BASENAME='"modesetting"' -DKBUILD_MODNAME='"vboxvideo"' -D__KBUILD_MODNAME=kmod_vboxvideo /tmp/vbox.0/modesetting.c | scripts/genksyms/genksyms     -r /dev/null > /tmp/vbox.0

Continuing with the contents of /var/log/vboxadd-setup.log,

/.tmp_modesetting.ver; ld  -m elf_x86_64 -r -o /tmp/vbox.0/.tmp_modesetting.o /tmp/vbox.0/modesetting.o -T /tmp/vbox.0/.tmp_modesetting.ver; mv -f /tmp/vbox.0/.tmp_modesetting.o /tmp/vbox.0/modesetting.o; rm -f /tmp/vbox.0/.tmp_modesetting.ver; fi
  gcc -Wp,-MMD,/tmp/vbox.0/.vbox_fb.o.d  -nostdinc -isystem /usr/lib64/gcc/x86_64-suse-linux/7/include -I/usr/src/linux-5.14.21-150400.24.11/arch/x86/include -I./arch/x86/include/generated -I/usr/src/linux-5.14.21-150400.24.11/include -I./include -I/usr/src/linux-5.14.21-150400.24.11/arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I/usr/src/linux-5.14.21-150400.24.11/include/uapi -I./include/generated/uapi -include /usr/src/linux-5.14.21-150400.24.11/include/linux/compiler-version.h -include /usr/src/linux-5.14.21-150400.24.11/include/linux/kconfig.h -include /usr/src/linux-5.14.21-150400.24.11/include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -mfunction-return=thunk-extern -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -O2 --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector-strong -Wimplicit-fallthrough=5 -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-stack-clash-protection -g -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -I/usr/src/linux-5.14.21-150400.24.11/include -I/tmp/vbox.0/ -I/usr/src/linux-5.14.21-150400.24.11/include/drm -D__KERNEL__ -DMODULE -DRT_WITHOUT_PRAGMA_ONCE -DRT_ARCH_AMD64  -DMODULE  -DKBUILD_BASENAME='"vbox_fb"' -DKBUILD_MODNAME='"vboxvideo"' -D__KBUILD_MODNAME=kmod_vboxvideo -c -o /tmp/vbox.0/vbox_fb.o /tmp/vbox.0/vbox_fb.c
/tmp/vbox.0/vbox_drv.c: In function ‘vbox_pci_probe’:
/tmp/vbox.0/vbox_drv.c:85:63: error: passing argument 2 of ‘drm_aperture_remove_conflicting_pci_framebuffers’ from incompatible pointer type -Werror=incompatible-pointer-types]
 #  endif
                                                               ^            
In file included from /tmp/vbox.0/vbox_drv.c:43:0:
/usr/src/linux-5.14.21-150400.24.11/include/drm/drm_aperture.h:18:5: note: expected ‘const struct drm_driver *’ but argument is of type ‘char *’
 int drm_aperture_remove_conflicting_pci_framebuffers(struct pci_dev *pdev,
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[3]: *** [/usr/src/linux-5.14.21-150400.24.11/scripts/Makefile.build:272: /tmp/vbox.0/vbox_drv.o] Error 1
make[3]: *** Waiting for unfinished jobs....
   ./tools/objtool/objtool orc generate  --module  --no-fp   --retpoline  --uaccess   /tmp/vbox.0/vbox_fb.o
  if objdump -h /tmp/vbox.0/vbox_fb.o | grep -q __ksymtab; then gcc -E -D__GENKSYMS__ -Wp,-MMD,/tmp/vbox.0/.vbox_fb.o.d  -nostdinc -isystem /usr/lib64/gcc/x86_64-suse-linux/7/include -I/usr/src/linux-5.14.21-150400.24.11/arch/x86/include -I./arch/x86/include/generated -I/usr/src/linux-5.14.21-150400.24.11/include -I./include -I/usr/src/linux-5.14.21-150400.24.11/arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I/usr/src/linux-5.14.21-150400.24.11/include/uapi -I./include/generated/uapi -include /usr/src/linux-5.14.21-150400.24.11/include/linux/compiler-version.h -include /usr/src/linux-5.14.21-150400.24.11/include/linux/kconfig.h -include /usr/src/linux-5.14.21-150400.24.11/include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -mfunction-return=thunk-extern -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -O2 --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector-strong -Wimplicit-fallthrough=5 -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-stack-clash-protection -g -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -I/usr/src/linux-5.14.21-150400.24.11/include -I/tmp/vbox.0/ -I/usr/src/linux-5.14.21-150400.24.11/include/drm -D__KERNEL__ -DMODULE -DRT_WITHOUT_PRAGMA_ONCE -DRT_ARCH_AMD64  -DMODULE  -DKBUILD_BASENAME='"vbox_fb"' -DKBUILD_MODNAME='"vboxvideo"' -D__KBUILD_MODNAME=kmod_vboxvideo /tmp/vbox.0/vbox_fb.c | scripts/genksyms/genksyms     -r /dev/null > /tmp/vbox.0/.tmp_vbox_fb.ver; ld  -m elf_x86_64 -r -o /tmp/vbox.0/.tmp_vbox_fb.o /tmp/vbox.0/vbox_fb.o -T /tmp/vbox.0/.tmp_vbox_fb.ver; mv -f /tmp/vbox.0/.tmp_vbox_fb.o /tmp/vbox.0/vbox_fb.o; rm -f /tmp/vbox.0/.tmp_vbox_fb.ver; fi
make[2]: *** [/usr/src/linux-5.14.21-150400.24.11/Makefile:1885: /tmp/vbox.0] Error 2
make[1]: *** ../../../linux-5.14.21-150400.24.11/Makefile:220: __sub-make] Error 2
make: *** [/tmp/vbox.0/Makefile-footer.gmk:117: vboxvideo] Error 2

Why not using Virtualbox from the OSS Repo?

Thank you, Moderator Sauerland, for kindly taking some time to post your question here. In answer to your question:

  1. From https://en.opensuse.org/VirtualBox on the Internet,

“By default openSUSE installs the Virtualbox guest additions automatically when it’s installed as a Virtualbox guest.”

“However, as of openSUSE 11.4 the packaged Guest Additions version is slightly old, and may not allow use of Shared Folders with a Windows XP host for example.”

Despite the fact that the above writing appears to be rather old, given that openSUSE 11.4 and Windows XP were mentioned in that writing, the implication with probably some approval by one or openSUSE people (based on en.opensuse.org appearing the above Uniform Resource Locator ) appears to have been that one may have had more up-to-date and correct function when “building” VirtualBox Guest Additions using Oracle Corporation computer software than when using VirtualBox Guest Additions obtained from an openSUSE, online, computer-software repository. But the use of the word “may” in the above writing could imply that at least sometimes the VirtualBox Guest Additions obtained from an openSUSE online software repository could in some cases have worked well as well. So to avoid possible, but perhaps not always actual problems, the better choice appears to have been to have the VirtualBox Guest Additions “built” using Oracle Corporation computer software.

  1. The procedure given in https://en.opensuse.org/VirtualBox has often worked very well for me. (I am writing the following writing from memory.) A major exception was from the beginning of my use of Leap 15.3 until probably sometime later during the year 2021. The problem then was that some backporting used to be necessary on the part of openSUSE in order to make Oracle Corporation’s procedure for “building” VirtualBox Guest Additions work with old versions of the Linux kernel in use in I think both some versions of SUSE (Software und System Entwicklung, I hope, I think meaning Software and System or Systems Development) Linux Enterprise and openSUSE compared to the Linux kernel versions for which Oracle Corporation’s VirtualBox Guest Additions were “built” and/or required. But this problem was kindly solved by Oracle Corporation in making its later versions of VirtualBox Guest Additions compatible with the Linux kernel versions in use in some recent versions of SUSE Linux Enterprise and openSUSE; so backporting by openSUSE appeared to no longer be necessary to match Oracle Corporation’s Linux kernel requirements. A second exception is the so-far-for-me inconsequential error I have been discussing in this “thread” of postings.

Despite my preference for the procedure on https://en.opensuse.org/VirtualBox, I will admit that fortunately I could “reboot” into openSUSE Leap after updating the Linux kernel on multiple occasions late in my use of Leap 15.3 and at all times so far in Leap 15.4. And a proper working working of at least some minimal functions of VirtualBox Guest Additions appears to be necessary for such “rebooting” to be successful, particularly concerning having a wide width of the window allotted for Leap within VirtualBox. So that means that there has been some success when using the VirtualBox Guest Additions supplied through openSUSE online repositories. Nevertheless when possible I have preferred to follow the procedure on https://en.opensuse.org/VirtualBox to have the VirtualBox Guest Additions “built” from Oracle Corporation software, which has been a motivation for posting this “thread” in a hope that I may be able to continue using the procedure on https://en.opensuse.org/VirtualBox to have VirtualBox Guest Additions “built” using Oracle Corporation computer software in Leap 15.4.

In my previous last paragraph I am now correcting ‘And a proper working working of at least some minimal functions of VirtualBox Guest Additions appears to be necessary for such “rebooting” to be successful, particularly concerning having a wide width of the window allotted for Leap within VirtualBox.’ to ‘And a proper working of at least some minimal functions of VirtualBox Guest Additions appears to be necessary for such “rebooting” to be successful, particularly concerning having a wide width for the window allotted for Leap within VirtualBox.’ Sorry, I mistakenly had the word “working” twice in succession in my uncorrected sentence. And I changed an “of” in the uncorrected sentence to a “for.”

[quote=“2009Newbie”]

echo >&2 "  ERROR: Kernel configuration is invalid.";        \
echo >&2 "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 "         Run 'make oldconfig && make prepare' on kernel src to fix it.";    \

This is absolutely irrelevant,

make oldconfig && make prepare

Congratulations, you destroyed the content of openSUSE RPMs.

So this is the root cause. VirtualBox code is dependent on kernel version, but openSUSE kernel often contains backported code, so it does not match what would be in upstream kernel with the same version. You need to patch VirtualBox source. Which is exactly what openSUSE maintainer of VirtualBox does.

Use Virtualbox from the Virtualization Repo:
https://download.opensuse.org/repositories/Virtualization/15.4/

Or use it from the OSS Repo.

Thank you, poster arvidjaar and Global Moderator Sauerland, for kindly taking some time to post some thoughts and information for me here. Poster arvidjaar, before reading your first posting in this “thread” of postings, I had already begun to suspect that the message beginning with “ERROR: Kernel configuration is invalid” might have been an inapprorpriate description of my trouble here; but I could not be sure that it was inappropriate because, for some reason not explained to me, that text has often, but not always appeared in a red instead of a black color in a file /var/log/vboxadd.setup.log or a file with a similar name after, for example, entering the command

./VBoxLinuxAdditions.run

while a VirtualBox CD (Compact Disc) image file was mounted.–That is suppose someone working for Oracle Corporation was trying to use the red text color to indirectly communicate to both me and other users of the Linux command

./VBoxLinuxAdditions.run

that “Kernel configuration is invalid” was an error in our installed Linux computer software. Actually I recorded seeing such a message on June 4, 2021 in my Leap-15.3 installation. Since that text appeared within the single, lengthy command

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

, it appears that it could be a long statement in a series of statements in a computer code. But when I saw that same kind of statement on July 22, 2022 I did not immediately recall seeing that sort of text earlier on June 4, 2021; but fortunately I eventually found such text in my notes from June 4, 2021. (I actually entered

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

in my directory /usr/src/linux-5.14.21-150400.24.11; and the only response I received was a “>”, or a prompt without any notification of an error. So that response might have been an indication that “ERROR: Kernel configuration is invalid” may not have been my problem. And from the Internet I eventually learned that I could “escape” from that situation by simultaneously pressing my computer keyboard’s “Ctrl” and “D” keys.) Following poster OHDog’s posting on https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/how-to-check-version-of-virtualbox-guest-additions-currently-installed-in-guest-syste-946053/ on the Internet I issued the command

ls /opt

, whether as a “root” user of not I don’t know for certain, and received the response of

VBoxGuestAdditions-6.1.36

. And following the instructions I read on https://linuxconfig.org/install-virtualbox-guest-additions-on-linux-guest on the Internet I issued the command

lsmod | grep vboxguest

, whether as a “root” user of not I don’t know for certain, and received the response of

vboxguest 38098 6 vboxsf

. So despite the errors indicated in /var/log/vboxadd.setup.log, or a similarly named file, the above two responses I believe indicate that VirtualBox Guest Additions were actually produced from Oracle Corporation computer software and installed in my Leap-15.4 installation.

I am for now assuming you are correct in that statement of “ERROR: Kernel configuration is invalid…” in /var/log/vboxadd.setup.log, or a similarly named file is irrelevant to my present software problem or problems. Furthermore I assume that you are also correct in that my problem is rather due to the lack of the necessary backported computer code to produce, without errors from Oracle Corporation computer software, VirtualBox Guest Additions for use with the Linux kernels in openSUSE Leap 15.4. But it took me considerable time to realize how that could be possible, given the success I gratefully had in the latter part of the year 2021 while “building” VirtualBox Guest Additions using Oracle Corporation computer software after Oracle Corporation kindly enabled support in some of its versions of VirtualBox for the Linux kernels 5.3.18… used in SUSE Linux Enterprise Server and Desktop (SLES/SLED) 15, Service Pack 3 (SP3) (https://9to5linux.com/virtualbox-6-1-24-released-with-support-for-linux-5-13-and-ubuntu-specific-kernels)! First of all I think that the SLE (SUSE Linux Enterprise) SP3 Linux kernels may have also been used in openSUSE Leap 15.3. Secondly I could see on July 26, 2022 that according to the changelog within https://www.virtualbox.org/wiki/Changelog on the Internet for VirtualBox 6.1.24, that support for the Linux kernels used in SLE 15 SP3, was introduced in VirtualBox 6.1.24, which was released on July 20, 2021. News which might at first appear to be good news was that VirtualBox 6.1.34 provided support for the Linux kernels 5.14 which are on July 26, 2022 in use in Leap 15.4. But in agreement with your writing, that matching of the major kernel version numbers 5 and 14 is probably not sufficient to avoid all errors when attempting to “build” VirtualBox Guest Additions from Oracle Corporation computer software using VirtualBox 6.1.34 in Leap 15.4.–Of course there could eventually be multiple, different Linux kernels beginning with the designation 5.14. Right now on July 26, 2022 before probably the necessary backporting has been performed in the software package kernel-source for Linux kernel 5.14.21-150400.24.11.1.x86_64 I suppose the only hope that Oracle Corporation, VirtualBox Guest Additions-”building” computer software could work in Leap 15.4 could be that Oracle Corporation would have made VirtualBox 6.1.34 or 6.1.36 supportive of the Linux kernels used in SLE Service Pack 4 (Note the ending digit 4 here.), which I assume that Leap 15.4 can also use (On https://www.suse.com/support/kb/doc/?id=000019587 on the Internet the kernel version numbers so far usable in SLE, SP4 are also the Linux kernel version numbers in use in Leap 15.4.).–But on July 26, 2022 I found that there was no such note of support introduced for SLE SP4 in the changelogs within https://www.virtualbox.org/wiki/Changelog for VirtualBox 6.1.34 or 6.1.36! So from the perspective of an “outsider,” a non-backporting, computer-code writer like myself, I suspect that is why I had errors in Leap 15.4 in trying to use Oracle Corporation VirtualBox 6.1.36 computer software to produce VirtualBox Guest Additions while using either one of the Leap-15.4 Linux kernels 5.14.21-150400.22-default or 5.14.21-150400.24.11-default.

I haven’t tried to use any Leap-15.3 Linux kernels in Leap 15.4. But I recall gratefully being able to avoid at least one type of error by using for a short period of time a Leap-15.2 Linux kernel in Leap 15.3. Short of using Leap-15.3 Linux kernel in Leap 15.4, I presently see only one other immediately available option to have VirtualBox Guest Additions both installed and working in Leap 15.4 without errors right now, whether consequential or not, namely to follow Global Moderator Sauerland’s advice and try using the VirtualBox Guest Additions supplied by openSUSE, online repositories. Or, since I have not yet encountered any problems in either the copying and “pasting” of text between my Windows “host” and Leap-15.4 “guest” operating systems or in the folder shared by those two operating systems, I could keep on producing new VirtualBox Guest Additions from Oracle Corporation after a Linux-kernel and/or VirtualBox update and hope that I never have any problems with those desired functions of VirtualBox Guest Additions until hopefully better future days of existing, backported kernel-source code or Oracle Corporation might release some future version of VirtualBox which supports SLE, SP4.

I had troubles after upgrades of Leap in at least the years 2020 (version 15.1 to 15.2 of Leap), 2021 (version 15.2 to 15.3 of Leap), and 2022 (version 15.3 to 15.4 of Leap). But the troubles have gratefully been less and less severe right after the first attempts in each of those last three upgrades of Leap! Now I “focus” on the errors in attempting to “build” VirtualBox Guest Additions without any errors, consequential or not, from Oracle Corporation computer software right after the last two upgrades of Leap. There have been two ways to explain those shortcomings, either of which by the release dates of the new versions of Leap could have avoided those troubles.–1) The backporting of Oracle Corporation, VirtualBox-appropriate computer code within the openSUSE software package kernel-source had apparently not been completed yet by the dates of the releases of versions 15.3 and 15.4 of Leap. 2) Oracle Corporation had not yet issued a version of VirtualBox supporting the Linux kernels used in the software packages kernel-source in the new versions of Leap by the dates of the releases of versions 15.3 and 15.4 of Leap. In the latest upgrade from version 15.3 to 15.4 of Leap the trouble in attempting to “build” VirtualBox Guest Additions using Oracle Corporation computer software was so minor that I did not even notice the trouble by looking at the last lines of output from that process! And the functions of the so-produced VirtualBox Guest Additions was so good in Leap 15.4 that I did not notice the trouble in those functions of those VirtualBox Guest Additions either! It was only after the first kernel update that by looking at some intermediate lines of output reading in part “to see what went wrong” during the production of VirtualBox Guest Additions using VirtualBox computer software that I noticed that there was any problem at all in such production. And I noticed that minor, and so-far-for-me inconsequential problem! in such production on July 21, 2022, 42 days after I finished upgrading Leap 15.3 to Leap 15.4 while offline and afterward while online updated that Leap-15.4 installation.
Poster arvidjaar, you wrote that probably by inputting the command

make oldconfig && make prepare

that I “destroyed the content of openSUSE RPMs” (RedHat Package Manager files). You may correct me if I am mistaken in my following writing. But I think that a normal procedure in installing a .rpm software package is to download it from the Internet and then to have it installed, perhaps involving a so-called delta file in order to make an addition to an already-installed, originally .rpm software package. After that installation is complete I suppose that the downloaded .rpm file no longer exists on the user’s virtual or real hard-disk drive. Otherwise there could be an enormous quantity of seldom or unused occupied bytes of data stored on a user’s data-storing device. But I would expect that somewhere in my Leap-15.4 computer there might be a list of the names of all of the installed software packages in my Leap-15.4 installation which have been installed from originally .rpm files. So if my understanding here would be correct, there would not have been any remaining .rpm files, originally for the purpose of upgrading Leap 15.3 to Leap 15.4, the contents of which I could have deleted or damaged in my Leap-15.4 installation by my entering the command

make  oldconfig && make prepare

. From the Internet I learned that the purpose of

make oldconfig

is to effect the configuration file in use with the previously used Linux kernel into the present Linux installation with its Linux kernel.

The poster gnashley on https://www.linuxquestions.org/questions/slackware-14/what-exactly-do-make-oldconfig-and-and-make-prepare-when-issued-in-the-kernel-sources-643447/ wrote,

“The commands” (

make oldconfig

and

make prepare

) “simply prepare the sources for compilation. If the sources have never been configured before, a default configuration is used”. “-I’m not sure where it is in the current sources. If you run ‘make menuconfig’ in a ‘virgin’ source tree, these default valuse are used to start with. If you copy an existing ‘.config’ file into the source tree, then the values contained there will be used as a starting point. Running ‘make oldconfig’ uses these values and only asks you questions if the sources contain new options which were not available in the sources where the .config” (I corrected condig to config.) “file was generated.”

“When you try to compile sources other than the kernel, they sometimes need for the kernel sources to have been configured”. -This “is because when you configure the kernel sources certain files are generated which indicate which version the kernel sources are. You do not need to have compiled the kernel sources for this to work”, “only to have configured them”. And “it does not matter whether the configuration is the same as what you would use if you were to compile the kernel.”
I admit to having previously been rather ignorant on such things. But from gnashley’s above writing it seems to me that there could potentially only be problems after having issued the commands

make oldconfig

and

make prepare

when one wants to compile a Linux kernel from Linux-kernel source code or to compile some other code from its source code.
Also in https://www.linuxquestions.org/questions/slackware-14/what-exactly-do-make-oldconfig-and-and-make-prepare-when-issued-in-the-kernel-sources-643447/ the poster tramni1980 who himself issued the commands

make oldconfig

and

make prepare

in probably his Slackware Linux distribution wrote (I replaced one of his words with a less-coarse word having the same effective meaning, corrected the spelling of two of his words, modified his capitalization and punctuation, and corrected some of his English-language writing. If you wish to do so, you may read poster tramni1980’s unmodified writing on https://www.linuxquestions.org/questions/slackware-14/what-exactly-do-make-oldconfig-and-and-make-prepare-when-issued-in-the-kernel-sources-643447/ on the Internet.),

“No”, “nothing in my system seems” to be messed up “now”. Everything “seems to be” okay. “I just” wanted “to learn what” changes “to the 12.1 system” (I guess Slackware version 12.1) “I actually” made by “issuing those two commands in the kernel sources and whether those changes (if any)” would “affect the software I” would “compile.”

In the instructions on https://en.opensuse.org/VirtualBox, which I have preferred to follow, when possible, there is a recommended command of

sudo zypper in kernel-devel gcc make

. And following that command one is supposed to input the command

./VBoxLinuxAdditions.run

. Being ignorant of many of the code and the details of what actually occurs right after the previous command is issued, I think there is a clue from the needs to have the software packages gcc [GNU’s (GNU’s Not Unix) Not Unix compiler collection] and kernel-devel installed that there might be some required compilation of maybe some of the Linux kernel being performed as the result of entering the command

./VBoxLinuxAdditions.run

! So I guess that that is where it might be important for a .config file to work well with maybe the running Linux kernel. But I did not get the impression from poster gnashley’s writing on https://www.linuxquestions.org/questions/slackware-14/what-exactly-do-make-oldconfig-and-and-make-prepare-when-issued-in-the-kernel-sources-643447/ that in a Linux operating system using a configuration file from one Linux kernel to compile another version of the Linux kernel would always be catastrophic. But perhaps, poster arvidjaar, this could be an opportunity for me to learn some things from you.

Questions or requests for poster arvidjaar:

1a. So please explain more specifically than earlier what you really had in mind when you wrote that I had “destroyed the content of openSUSE RPMs,” precisely what kind of damage you think could have occurred or not by my issuing the command

make oldconfig && make prepare

, why you appeared to consider that issuance to be a serious matter regarding my Leap-15.4 computer software, what kinds of restorations I would need to make in my Leap-15.4 software, and how I should make those restorations.

1b. For example, should I somehow replace the current configuration file for the software package kernel-source with a more appropriate configuration file for the kernel I am using at the time?

1c. And if the answer would be “yes” for item 1b, how would I make that appropriate configuration file?

  1. Fortunately during June 14-15, 2022 I wrote a backup of the logical-”C” drive of my computer’s hard-disk drive sometime between updating my newly upgraded Leap installation to Leap 15.4 and updating both its Linux kernel and VirtualBox on July 21, 2022. From inside to outside my Leap-15.4 installation I have backed up 15 personal files which are important to me in my Leap-15.4 installation which I produced or modified during the time interval June 14-July 22, 2022. But in addition to updating a number of Leap-15.4 software packages during the time interval of June 14-July 22, 2022 I noticed from my notes that I also resolved some software conflicts during that interval of time. The way my hard-drive backup is now set up I would have to redo or reinstate all of those things after restoring my Leap-15.4 installation back to June, 14, 2022, if I would have to restore my Leap-15.4 installation back to June 14, 2022. So it would be good if I would not have to redo or reinstate those various things, even though I could probably do all of those things, if necessary, within I would guess a few hours of time. (Making a so-called “clean” installation of the Leap-15.4 operating system and multiple computer programs on just the “root” /], made-blank virtual partition of my virtual hard-disk drive might be time consuming, since I have probably a few thousand software packages installed on it, many of them being texlive software packages, some of which I probably have not been using.) Is the problem you mentioned when you wrote that I “destroyed the content of openSUSE RPMS” so serious that I would need to restore my Leap-15.4 installation back to its backed-up state on June 14, 2022, a state before I issued the command
make oldconfig && make prepare

on July 22, 2022? So far I haven’t noticed anything worse than the minor, for-me-so-far-inconsequential problem that I already had before my installation of that command in my Leap-15.4 installation of not being able to “build” completely without errors VirtualBox Guest Additions using Oracle Corporation computer software.

  1. Would my forcing a reinstallation of the update to the Linux kernel happen to eliminate your concerns in your statement to me of “you destroyed the content of openSUSE RPMs?”

  2. Poster arvidjaar, I want to mention that since I issued the command

make oldconfig && make prepare

that I recently reissued the command

./VBoxLinuxAdditions.run

to have VirtualBox Guest Additions again produced from Oracle Corporation computer software, in case that would alleviate your concerns regarding my issuance of the command

make oldconfig && make prepare

.

I think it could be a time-consuming project for me to learn how to backport computer code to make some version of the software package kernel-source in Leap 15.4 compatible with some version of Oracle Corporation’s VirtualBox.–Such a project would probably involve not only my understanding computer code written by someone else, which could be very challenging!, but I guess probably also my reviewing and learning some new things for me in the computer-programming language C. My major C-language, computer-programming project was I think in the year 1998; and even before then I hadn’t written many computer programs in the C language. My major computer-programming experience has been in the Fortran language (Fortran at least used to stand for Formula translation.). Thus far I have avoided completing that type of backporting work in Leap 15.3 and 15.4. A really good thing was that as a result of Oracle Corporation kindly making VirtualBox 6.1.24 and probably some later versions of VirtualBox supportive of the Linux kernels in use in openSUSE Leap 15.3 was that during the time interval of October 23, 2021 through some time on June 8, 2022 I could in Leap 15.3, principally by issuing the command

./VBoxLinuxAdditions.run

, produce VirtualBox Guest Additions from Oracle Corporation computer software after updating either VirtualBox or the Linux kernel in Leap 15.3 (Actually since VirtualBox 6.1.24 was released on September 23, 2021, the use of Oracle Corporation computer software to produce VirtualBox Guest Additions in Leap 15.3 appears to have been possible somewhat before I knew it was possible in that way!). I have even had all of the following software packages listed as “Taboo” in Yet another Software Tool 2’s (YaST2’s) Software Management so that they would not be installed or updated during both my last few months of the use of Leap 15.3 and so far in Leap 15.4:

kernel-preempt
kernel-preempt-devel
kernel-preempt-extra
kernel-preempt-livepatch-devel
kernel-preempt-optional
virtualbox-guest-tools
virtualbox-guest-x11

. But if I would choose to follow Global Moderator Sauerland’s advice here, I might have to issue a command as a “root” user like

zypper removelock virtualbox-guest-tools virtualbox-guest-x11

, to remove the “locks” on those the software packages virtualbox-guest-tools and virtualbox-guest-x11 which I had installed in Leap 15.3, in order to have those two software packages updated, or else the command

remove virtualbox-guest-tools virtualbox-guest-x11

to remove those two software packages and accept for download and installation the possible modern-day replacements for those two software packages in Leap 15.4. Given that Oracle Corporation was kind to SLES/SLED 15 SP3 and openSUSE Leap-15.3 users in introducing support in VirtualBox 6.1.24 for the Linux kernels in use in SLES/SLED 15 SP3, there is a hope that Oracle Corporation might also eventually provide support for SLES/SLED SP4 in a future version of VirtualBox (I note that Oracle Corporation provided support for the SLES/SLED SP3 Linux kernels in VirtualBox 6.1.24 about 113 days after Leap 15.3 was released, or about three months https://distrowatch.com/?newsid=11283] after SUSE Linux Enterprise 15, SP3 was released. As of July 27, 2022 so far it has been 49 days since Leap 15.4’s release on June 8, 2022.). And if that would occur I guess it would also enable support for openSUSE Leap 15.4 without the need for openSUSE developers to backport VirtualBox-kernel-appropriate computer code into the Leap-15.4 software package named kernel-source.–And if so that would enable a Linux kernel to be produced from that so-modified kernel-source.–And that Linux kernel should allow VirtualBox Guest Additions to be produced from that future version of Oracle Corporation VirtualBox.

I note also that in addition to the advice on https://en.opensuse.org/VirtualBox, for a similar reason VirtualBox writer on https://www.virtualbox.org/manual/ch04.html#guestadd-intro has also advised, “Note that some Linux distributions already come with all or part of the Oracle VM” (Virtual Machine) “VirtualBox Guest Additions. You may choose to keep the distribution’s version of the Guest Additions”; “but these are often not up to date and limited in functionality”. So “we recommend replacing them with the Guest Additions that come with Oracle VM VirtualBox.”

A correction: SUSE is probably an abbreviation for the German-language words Gesellschaft für Software-und Systeme Entwicklung.

These commands replace content of RPM with locally generate files. So you are no more building (for) SUSE kernel, but your own kernel - even if it happens to have the same version string. If your goal is to build single module for SUSE kernel, this is now no more possible because you no more have SUSE sources.

Linux kernel supports building external modules outside of kernel source tree and building multiple different binary kernels from the single source tree in separate directories. SUSE RPMs fully support it. To build external module you need kernel-default-devel package which is already prepared and does not need any tinkering. If you want to rebuild the whole kernel, possibly with modified config, just install kernel-source and build in separate directory. Never touch /usr/src. As soon as you run “make oldconfig” in /usr/src/linux, you invalidate all that was carefully prepared by kernel-default-devel.

Another bonus - you can build kernel in separate directory as normal user and do not need to be root.

All those instructions that tell you to run anything in /usr/src/linux have been outdated for 20 years.

Thank you, poster arvidjaar, for your expert advice. Based on your expert advice it now appears that I should from my June 14-15, 2022 backup of my hard-disk-drive data restore my Leap-15.4 installation back to its state on June 14, 2022 before I issued the command

make oldconfig && make prepare

in it. After restoring my Leap-15.4 installation back to its state on June 14, 2022 I should restore 15 personal files in my Leap-15.4 installation. Because I discovered that my Packman software repository was likely removed as a result of my upgrade from Leap 15.3 to Leap 15.4 and/or my subsequent updating of my Leap-15.4 installation, I expect to “go” to https://opensuse-community.org/ on the Internet and there to click on the software “button” under “KDE Codecs” labeled “1 Click Install” and follow some ensuing instructions, if there will be any such instructions. I may also need to as a so-called “root” user enter the pair of commands

zypper refresh
zupper dup

perhaps a couple of times. However, along the way of these last few processes in order to resolve some software conflicts I might need to accept some openSUSE versions of some software packages over some older Packman versions of those same-named software packages, unless Packman has in the meantime issued its Leap-15.4 versions of some of its Leap-15.3 software packages. (A factor in this decision is that on June 15, 2022 I discovered that Packman did not have Leap-15.4 versions of some of its Leap-15.3-version software packages of the same or similar names. I checked that situation again on July 28, 2022 and found that on http://packman.links2linux.de/package/ on the Internet Packman still was not supplying Leap-15.4 versions of the software packages gstreamer-plugins-bad-lang or gstreamer-plugins-bad and gstreamer-plugins-ugly-lang or gstreamer-plugins-ugly. Would someone please comment here on this situation, including on whether any recommendation and/or policy shift has occurred regarding from where, Packman or openSUSE, to accept some software packages which Packman used to provide?)

zypper se -si gstreamer ffmpeg-4
Loading repository data...
Reading installed packages...

S  | Name                              | Type    | Version                          | Arch   | Repository
---+-----------------------------------+---------+----------------------------------+--------+-------------------
i+ | ffmpeg-4                          | package | 4.4-pm154.2.6                    | x86_64 | Packman Repository
i+ | gstreamer                         | package | 1.20.1-150400.1.5                | x86_64 | OSS
i+ | gstreamer-1_0-plugins-buzztrax    | package | 0.10.2+git20191209-bp154.1.156   | x86_64 | OSS
i+ | gstreamer-lang                    | package | 1.20.1-150400.1.5                | noarch | OSS
i  | gstreamer-libnice                 | package | 0.1.18-150400.1.14               | x86_64 | OSS
i+ | gstreamer-plugins-bad             | package | 1.20.1-lp154.1.1                 | x86_64 | OSS
i+ | gstreamer-plugins-bad-chromaprint | package | 1.20.1-lp154.1.1                 | x86_64 | OSS
i+ | gstreamer-plugins-bad-codecs      | package | 1.20.1-pm154.2.1                 | x86_64 | Packman Repository
i+ | gstreamer-plugins-bad-fluidsynth  | package | 1.20.1-lp154.1.1                 | x86_64 | OSS
i+ | gstreamer-plugins-bad-lang        | package | 1.20.1-lp154.1.1                 | noarch | OSS
i+ | gstreamer-plugins-base            | package | 1.20.1-150400.1.9                | x86_64 | OSS
i+ | gstreamer-plugins-base-lang       | package | 1.20.1-150400.1.9                | noarch | OSS
i+ | gstreamer-plugins-farstream       | package | 0.2.9+4-150400.1.12              | x86_64 | OSS
i+ | gstreamer-plugins-good            | package | 1.20.1-150400.1.6                | x86_64 | OSS
i+ | gstreamer-plugins-good-extra      | package | 1.20.1-150400.1.6                | x86_64 | OSS
i+ | gstreamer-plugins-good-gtk        | package | 1.20.1-150400.1.6                | x86_64 | OSS
i+ | gstreamer-plugins-good-jack       | package | 1.20.1-150400.1.6                | x86_64 | OSS
i+ | gstreamer-plugins-good-lang       | package | 1.20.1-150400.1.6                | noarch | OSS
i+ | gstreamer-plugins-libav           | package | 1.20.1-bp154.1.48                | x86_64 | OSS
i+ | gstreamer-plugins-libcamera       | package | 0.0.0+g3076.d79b4120-bp154.1.152 | x86_64 | OSS
i+ | gstreamer-plugins-ugly            | package | 1.20.1-150400.1.7                | x86_64 | OSS
i+ | gstreamer-plugins-ugly-codecs     | package | 1.20.1-pm154.1.1                 | x86_64 | Packman Repository
i+ | gstreamer-plugins-ugly-lang       | package | 1.20.1-150400.1.7                | noarch | OSS
i+ | gstreamer-plugins-vaapi           | package | 1.20.1-bp154.1.51                | x86_64 | OSS
i+ | libgstreamer-1_0-0                | package | 1.20.1-150400.1.5                | x86_64 | OSS
i  | PackageKit-gstreamer-plugin       | package | 1.2.4-150400.1.11                | x86_64 | OSS
i  | phonon4qt5-backend-gstreamer      | package | 4.10.0-bp154.1.48                | x86_64 | OSS
i  | phonon4qt5-backend-gstreamer-lang | package | 4.10.0-bp154.1.48                | noarch | OSS
i+ | vlc-codec-gstreamer               | package | 3.0.17.3-pm154.2.4               | x86_64 | Packman Repository

PS:
ffmpeg-4 is build from the same sources in openSUSE and Packman, but Packman has enabled more Codecs…

So a

zypper dup --allow-vendor-change --from PACKMAN

should be done to switch packages to Packman.

F.e.:

zypper se -s libavcodec58_134
Loading repository data...
Reading installed packages...

S  | Name                       | Type    | Version         | Arch   | Repository
---+----------------------------+---------+-----------------+--------+-------------------
i+ | libavcodec58_134           | package | 4.4-pm154.2.6   | x86_64 | Packman Repository
v  | libavcodec58_134           | package | 4.4-150400.1.13 | x86_64 | OSS
   | libavcodec58_134-32bit     | package | 4.4-150400.1.13 | x86_64 | OSS
   | libavcodec58_134-debuginfo | package | 4.4-pm154.2.6   | x86_64 | Packman Repository

Thank you again, poster arvidjaar and Global Moderator Sauerland, for kindly posting some information here for me. I gratefully was able to restore my Leap-15.4 operating system to its state of June 14, 2022, which importantly was before I unfortunately issued the command

make oldconfig && make prepare

. Then afterward I had some more things to do, which included clicking on the software “button” labeled “1 Click Install” below “KDE Codecs” on https://www.opensuse-community.org/ on the Internet. A correction: Sorry, I earlier miscounted the number of personal files I earlier saved for restoration. --That is I had 16 instead of 15 personal files to restore in my Leap-15.4 installation after restoring my Leap-15.4 installation back to its state of June 14, 2022. Regarding the Packman repository the form of a command similar to the command of Global Moderator Sauerland which gratefully worked for me was

zypper dup –allow-vendor-change –from http-ftp.gwdg.de-8734bcd9

, which made use of the alias http-ftp.gwdg.de-8734bcd9 for the Packman repository with the Uniform Resource Locator (URL) http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Leap_15.4/. In resolving the software conflicts that I encountered regarding Leap-15.3, Packman, software-package names, in each case I chose to accept for installation the Leap-15.4 substitute with a higher-numbered version from an openSUSE repository instead of keeping a Leap-15.3 version of a software package of the same name with a lower-numbered version from probably a Packman software repository. (I earlier had upgraded from Leap 15.3 to Leap 15.4. And I found that for some Packman software packages which I probably had installed in Leap 15.3, software packages with names beginning with libgst… and maybe also gstreamer-plugins-…, Leap-15.4 versions of them were not available from the Packman repository; but Leap-15.4 versions of those same package names were available from an openSUSE repository. It is still a mystery to me why Packman had not supplied Leap-15.4 versions of those software packages. But, of course, it is still possible that Packman might in the future supply Leap-15.4 versions of those software packages.) In Yet another Software Tool or Yet another Software Tool 2’s (YaST’s or YaST2’s) “Software Management” I selected “View”, “Repositories”, “Packman Repository”, clicked on “Switch system packages to versions in this repository (Packman Repository)”, and clicked on “Accept”. But afterward while online no software package was “reported” as being installed. So these latter steps within “Software Management” were not immediately utilized and might have been made unnecessary by my earlier inputting

zypper dup –allow-vendor-change –from http-ftp.gwdg.de-8734bcd9

, updating computer software, and resolving some software conflicts. I wonder if zypper and the “–allow-vendor-change” option might work in the same way I did, namely to allow a Packman software package to be preferred over an openSUSE software package of the same name, only if the Packman software package would have the same as or higher version number than the openSUSE software package; that is if the openSUSE software package would have a higher version number than the Packman software package of the same name, that maybe the openSUSE software package would be accepted for downloading from the Internet and installation in the Leap-15.4 installation. The poster bmwiedemann on https://www.reddit.com/r/openSUSE/comments/gg0ky2/understanding_vendor_change/ on the Internet reported, “… zypper tries to install the latest version with the highest number”. So a guess of mine is that zypper might override an entered option “–allow-vendor-change” when openSUSE can provide a higher-numbered version of a software package than the Packman repository after the Packman repository has been specified as an alternative repository with an allowed vendor change.

Along the way there was at first a probably code-output “report” that perhaps the

Installation was only partly successful….gstreamer-ugly-orig-addon could not be installed

(But perhaps my note in this regard is in error.–That is I’m wondering if the correct name of that software package could have been gstreamer-plugins-ugly-orig-addon, based on a later report that day that gstreamer-plugins-ugly-orig-addon would be removed from my Leap-15.4 installation.). I clicked on a software “button” labeled “Finish” after seeing that “report.” And later after inputting the command

zypper dup –allow-vendor-change –from http-ftp.gwdg.de-8734bcd9

, it was “reported” that the software package gstreamer-plugins-ugly-orig-addon would be removed from my Leap-15.4 installation.

While my notebook computer was not connected to the Internet in YaST’s or YaST2’s “Software Management” I found something which at first looked somewhat strange.—Installed I had gstreamer-plugins-ugly 1.20.1-150400.1.7 with that version number in black-colored digits from the vendor SUSE LLC (Limited Liability Company), gstreamer-plugins-ugly-codecs 1.20.1-pm154.1.1 with that version number in red-colored text from the Packman vendor, and gstreamer-plugins-ugly-lang 1.20.1-150400.1.7 with that version number in black-colored digits from the vendor SUSE LLC. These data look similar to Global Moderator Sauerland’s output for his command

zypper se -si gstreamer ffmpeg-4

earlier in this “thread” of postings, assuming that the OSS (based on https://en.opensuse.org/Package_repositories on the Internet probably standing for Open-Source Software, in which included a hyphen) and SUSE LLC software repositories would supply exactly the same software packages for software packages of exactly the same names and versions. The puzzling matter was why the version 1.20.1-pm154.1.1 for the software package gstreamer-plugins-ugly-codecs from the Packman repository was in red-colored text. But later, when my computer was connected to the Internet, that red color in “Software Management” had been changed to a black color! According to jdmcdaniel3’s posting on https://forums.opensuse.org/showthread.php/473688-Why-Are-Some-Packaged-Red-and-Blue on the Internet the purpose of such a red color is to indicate that “The package that you have installed is newer than the available version.” Since the red color appeared in openSUSE’s “Software Management” I supposed that meant that the installed version of gstreamer-plugins-ugly-codecs was newer than a version of that software package available through an online, openSUSE repository. After clicking on the “Versions” tab while the software package gstreamer-plugins-ugly-codecs was selected in “Software Management”, I saw a check mark on the left side of “1.20.1-pm154.1.1-x86_64 from vendor http://packman.links2linux.de (installed)” and a “radio button” with a black disc in the middle of it on the left side of “1.20.1-pm154.1.1-x86_64 from Packman repository with priority 99 and vendor http://packman.links2linux.de”. So indeed, a version of the software package gstreamer-plugins-ugly-codecs from the Packman repository was in this case newer than a version of that software package that was available from an online, openSUSE repository because no such software package with the name gstreamer-plugins-ugly-codecs was then available from an online, openSUSE repository. My Leap-15.4 installation gratefully has been working fairly well for my purposes on July 29, 2022 and August 1-2, 2022 since I restored and updated my Leap-15.4 installation on July 29, 2022!

Please do not say:
I have done this

......

and this is the output:

xxxxx

Post the complete! inputline and the complete output in one Code-Tag, f. e.:

laptop:/home/stephan # LANG=C zypper lr -d
#  | Alias                                 | Name                                                                                        | Enabled | GPG Check | Refresh | Priority | Type     | URI                                                                       | Service
---+---------------------------------------+---------------------------------------------------------------------------------------------+---------+-----------+---------+----------+----------+---------------------------------------------------------------------------+--------
 1 | Libdvdcss                             | Libdvdcss                                                                                   | Yes     | (r ) Yes  | Yes     |   99     | rpm-md   | http://opensuse-guide.org/repo/openSUSE_Leap_15.4/                        | 
 2 | Programme                             | Programme                                                                                   | Yes     | ( p) Yes  | No      |   99     | plaindir | dir:/home/stephan/Programme                                               | 
 3 | Sauerland                             | Sauerland                                                                                   | Yes     | (r ) Yes  | Yes     |   30     | rpm-md   | http://download.opensuse.org/repositories/home:/Sauerland/15.4/           | 
 4 | Sauerland-Hardware                    | Sauerland-Hardware                                                                          | Yes     | (r ) Yes  | Yes     |   20     | rpm-md   | http://download.opensuse.org/repositories/home:/Sauerland:/hardware/15.4/ | 
 5 | ftp.gwdg.de-openSUSE_Leap_$releasever | Packman Repository                                                                          | Yes     | (r ) Yes  | Yes     |   20     | rpm-md   | http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Leap_15.4/        | 
 6 | non-oss                               | Non-OSS                                                                                     | Yes     | (r ) Yes  | Yes     |   99     | rpm-md   | http://download.opensuse.org/distribution/leap/15.4/repo/non-oss/         | 
 7 | oss                                   | OSS                                                                                         | Yes     | (r ) Yes  | Yes     |   99     | rpm-md   | http://download.opensuse.org/distribution/leap/15.4/repo/oss/             | 
 8 | repo-backports-debug-update           | Update repository with updates for openSUSE Leap debuginfo packages from openSUSE Backports | No      | ----      | ----    |   99     | NONE     | http://download.opensuse.org/update/leap/15.4/backports_debug/            | 
 9 | repo-backports-update                 | Update repository of openSUSE Backports                                                     | Yes     | (r ) Yes  | Yes     |   99     | rpm-md   | http://download.opensuse.org/update/leap/15.4/backports/                  | 
10 | repo-sle-debug-update                 | Update repository with debuginfo for updates from SUSE Linux Enterprise 15                  | No      | ----      | ----    |   99     | NONE     | http://download.opensuse.org/debug/update/leap/15.4/sle/                  | 
11 | repo-sle-update                       | Update repository with updates from SUSE Linux Enterprise 15                                | Yes     | (r ) Yes  | Yes     |   99     | rpm-md   | http://download.opensuse.org/update/leap/15.4/sle/                        | 
12 | update                                | update                                                                                      | Yes     | (r ) Yes  | Yes     |   99     | rpm-md   | http://download.opensuse.org/update/leap/15.4/oss/                        | 
13 | update-non-oss                        | update-non-oss                                                                              | Yes     | (r ) Yes  | Yes     |   99     | rpm-md   | http://download.opensuse.org/update/leap/15.4/non-oss/                    | 
laptop:/home/stephan # 


Also:
For me your Post are not as good readable, please use more often the REURN-Key

How is gstreamer installation from packman related to virtualbox and “missing” autoconf.h? If you have question about gstreamer, start separate thread in suitable subforum.