VirtualBox

7 年 前 建立

7 年 前 結束

#17040 closed defect (worksforme)

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

回報者: Martin Vahi 負責人:
元件: other 版本: VirtualBox 5.1.26
關鍵字: build, compilation, FTBFS 副本:
Guest type: Linux Host type: Linux

描述 (由 Frank Mehnert 作最後更新)

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-----

更動歷史 (2)

comment:1 7 年 前Frank Mehnert 編輯

描述: 修改 (差異)

comment:2 7 年 前Frank Mehnert 編輯

狀態: newclosed
處理結果: 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.

注意: 瀏覽 TracTickets 來幫助您使用待辦事項功能

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette