VirtualBox

Ticket #17040 (closed defect: worksforme)

Opened 2 years ago

Last modified 2 years ago

VirtualBox v5.1.26 Fails to Build from Source on Debian Linux

Reported by: martin_vahi Owned by:
Component: other Version: VirtualBox 5.1.26
Keywords: build, compilation, FTBFS Cc:
Guest type: Linux Host type: Linux

Description (last modified by frank) (diff)

URL of the source:  http://download.virtualbox.org/virtualbox/5.1.26/VirtualBox-5.1.26.tar.bz2

The configure line:

./configure --out-path=/home/virtualbox_runner_t1/VirtualBox_kohalik_koopia/v_5_1_26 --enable-webservice --enable-vnc --disable-docs --build-libxml2 --disable-hardening

The symptoms:

---console--session--citation--start---
VBoxTpG: warning: Please avoid using the type 'unsigned int' for probe arguments!
VBoxTpG: warning: Please avoid using the type 'unsigned int' for probe arguments!
VBoxTpG: warning: Please avoid using the type 'unsigned int' for probe arguments!
VBoxTpG: warning: Please avoid using the type 'unsigned int' for probe arguments!
kBuild: Linking VBoxDD
kBuild: Installing VBoxDD => /home/virtualbox_runner_t1/VirtualBox_kohalik_koopia/v_5_1_26/linux.amd64/release/bin/VBoxDD.so
kBuild: Compiling VBoxAuth - /home/virtualbox_runner_t1/VirtualBox_kohalik_koopia/kompil/VirtualBox-5.1.26/src/VBox/HostServices/auth/pam/VBoxAuthPAM.c
/home/virtualbox_runner_t1/VirtualBox_kohalik_koopia/kompil/VirtualBox-5.1.26/src/VBox/HostServices/auth/pam/VBoxAuthPAM.c:81:31fatal error: security/pam_appl.h: No such file or directory
 #include <security/pam_appl.h>
                               ^
compilation terminated.
kmk: *** [/home/virtualbox_runner_t1/VirtualBox_kohalik_koopia/v_5_1_26/linux.amd64/release/obj/VBoxAuth/pam/VBoxAuthPAM.o] Error 1
The failing command:
@gcc -c -O2 -g -pipe -pedantic -Wshadow -Wall -Wextra -Wno-missing-field-initializers -Wno-unused -Wno-trigraphs -fdiagnostics-show-option -Wno-unused-parameter    -Wlogical-op   -Wno-variadic-macros -Wno-long-long -Wunused-variable -Wunused-function -Wunused-label -Wunused-parameter -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Werror-implicit-function-declaration   -Wno-variadic-macros -O2 -mtune=generic -fno-omit-frame-pointer -fno-strict-aliasing -fvisibility=hidden -DVBOX_HAVE_VISIBILITY_HIDDEN -DRT_USE_VISIBILITY_DEFAULT   -fPIC -m64 -I/home/virtualbox_runner_t1/VirtualBox_kohalik_koopia/v_5_1_26/linux.amd64/release/obj/VBoxAuth/dtrace -I/home/virtualbox_runner_t1/VirtualBox_kohalik_koopia/kompil/VirtualBox-5.1.26/include -I/home/virtualbox_runner_t1/VirtualBox_kohalik_koopia/v_5_1_26/linux.amd64/release -DVBOX -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DVBOX_WITH_REM -DVBOX_WITH_RAW_MODE -DRT_OS_LINUX -D_FILE_OFFSET_BITS=64 -DRT_ARCH_AMD64 -D__AMD64__ -DVBOX_WITH_DEBUGGER -DIN_RING3 -DHC_ARCH_BITS=64 -DGC_ARCH_BITS=64 -DVBOX_WITH_DTRACE -DVBOX_WITH_DTRACE_R3 -DPIC -Wp,-MD,/home/virtualbox_runner_t1/VirtualBox_kohalik_koopia/v_5_1_26/linux.amd64/release/obj/VBoxAuth/pam/VBoxAuthPAM.o.dep -Wp,-MT,/home/virtualbox_runner_t1/VirtualBox_kohalik_koopia/v_5_1_26/linux.amd64/release/obj/VBoxAuth/pam/VBoxAuthPAM.o -Wp,-MP -o /home/virtualbox_runner_t1/VirtualBox_kohalik_koopia/v_5_1_26/linux.amd64/release/obj/VBoxAuth/pam/VBoxAuthPAM.o /home/virtualbox_runner_t1/VirtualBox_kohalik_koopia/kompil/VirtualBox-5.1.26/src/VBox/HostServices/auth/pam/VBoxAuthPAM.c
virtualbox_runner_t1@mvahi2:~/VirtualBox_kohalik_koopia/kompil/VirtualBox-5.1.26$ uname -a
Linux mvahi2 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2+deb9u3 (2017-08-06) x86_64 GNU/Linux
virtualbox_runner_t1@mvahi2:~/VirtualBox_kohalik_koopia/kompil/VirtualBox-5.1.26$ date
Mon 28 Aug 04:03:44 BST 2017
virtualbox_runner_t1@mvahi2:~/VirtualBox_kohalik_koopia/kompil/VirtualBox-5.1.26$ echo $CFLAGS
-march=native -ftree-vectorize
virtualbox_runner_t1@mvahi2:~/VirtualBox_kohalik_koopia/kompil/VirtualBox-5.1.26$ echo $CXXFLAGS
-march=native -ftree-vectorize
virtualbox_runner_t1@mvahi2:~/VirtualBox_kohalik_koopia/kompil/VirtualBox-5.1.26$
---console--session--citation--end-----

Change History

comment:1 Changed 2 years ago by frank

  • Description modified (diff)

comment:2 Changed 2 years ago by frank

  • Status changed from new to closed
  • Resolution set to worksforme

Do

sudo apt-get install apt-file
sudo apt-file update
apt-file search pam_appl.h

This will tell you which package is missing. Most likely

sudo apt-get install libpam0g-dev

will fix your problem.

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use