I have recently updated to a newer head and now virtualbox fails in my poudriere machine. I get this error: kBuild: Linking VBoxManage kBuild: Linking VBoxBalloonCtrl ld: error: /wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.26/out/freebsd.amd64/release/bin/VBoxXPCOM.so: undefined reference to pthread_getschedparam ld: error: /wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.26/out/freebsd.amd64/release/bin/VBoxXPCOM.so: undefined reference to pthread_setschedparam ld: error: /wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.26/out/freebsd.amd64/release/bin/VBoxXPCOM.so: undefined reference to pthread_getschedparam ld: error: /wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.26/out/freebsd.amd64/release/bin/VBoxXPCOM.so: undefined reference to pthread_setschedparam c++: error: linker command failed with exit code 1 (use -v to see invocation) kmk: *** [/wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.26/out/freebsd.amd64/release/obj/VBoxManage/VBoxManage] Error 1 The failing command: @c++ '-Wl,-rpath,/usr/local/lib/virtualbox' -m64 -o /wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.26/out/freebsd.amd64/release/obj/VBoxManage/VBoxManage /wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.26/out/freebsd.amd64/release/obj/VBoxManage/VBoxManage.o /wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.26/out/freebsd.amd64/release/obj/VBoxManage/VBoxInternalManage.o /wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.26/out/freebsd.amd64/release/obj/VBoxManage/VBoxManageAppliance.o /wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.26/out/freebsd.amd64/release/obj/VBoxManage/VBoxManageBandwidthControl.o /wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.26/out/freebsd.amd64/release/obj/VBoxManage/VBoxManageControlVM.o /wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.26/out/freebsd.amd64/release/obj/VBoxManage/VBoxManageDebugVM.o /wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.26/out/freebsd.amd64/release/obj/VBoxManage/VBoxManageDHCPServer.o /wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.26/out/freebsd.amd64/release/obj/VBoxManage/VBoxManageDisk.o /wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.26/out/freebsd.amd64/release/obj/VBoxManage/VBoxManageGuestCtrl.o /wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.26/out/freebsd.amd64/release/obj/VBoxManage/VBoxManageGuestCtrlListener.o /wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.26/out/freebsd.amd64/release/obj/VBoxManage/VBoxManageGuestProp.o /wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.26/out/freebsd.amd64/release/obj/VBoxManage/VBoxManageHelp.o /wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.26/out/freebsd.amd64/release/obj/VBoxManage/gen/VBoxManageBuiltInHelp.o /wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.26/out/freebsd.amd64/release/obj/VBoxManage/VBoxManageHostonly.o /wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.26/out/freebsd.amd64/release/obj/VBoxManage/VBoxManageInfo.o /wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.26/out/freebsd.amd64/release/obj/VBoxManage/VBoxManageList.o /wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.26/out/freebsd.amd64/release/obj/VBoxManage/VBoxManageMetrics.o /wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.26/out/freebsd.amd64/release/obj/VBoxManage/VBoxManageMisc.o /wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.26/out/freebsd.amd64/release/obj/VBoxManage/VBoxManageModifyVM.o /wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.26/out/freebsd.amd64/release/obj/VBoxManage/VBoxManageSnapshot.o /wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.26/out/freebsd.amd64/release/obj/VBoxManage/VBoxManageStorageController.o /wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.26/out/freebsd.amd64/release/obj/VBoxManage/VBoxManageUSB.o /wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.26/out/freebsd.amd64/release/obj/VBoxManage/VBoxManageNATNetwork.o /wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.26/out/freebsd.amd64/release/obj/VBoxManage/dt/dt/NetworkServices/NetLib/VBoxNetPortForwardString.o -L/usr/local/lib /wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.26/out/freebsd.amd64/release/bin/VBoxDDU.so /wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.26/out/freebsd.amd64/release/bin/VBoxRT.so /wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.26/out/freebsd.amd64/release/lib/VBoxCOM.a /wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.26/out/freebsd.amd64/release/bin/VBoxXPCOM.so kmk: *** Waiting for unfinished jobs.... c++: error: linker command failed with exit code 1 (use -v to see invocation) kmk: *** [/wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.26/out/freebsd.amd64/release/obj/VBoxBalloonCtrl/VBoxBalloonCtrl] Error 1 The failing command: @c++ '-Wl,-rpath,/usr/local/lib/virtualbox' -m64 -o /wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.26/out/freebsd.amd64/release/obj/VBoxBalloonCtrl/VBoxBalloonCtrl /wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.26/out/freebsd.amd64/release/obj/VBoxBalloonCtrl/VBoxWatchdog.o /wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.26/out/freebsd.amd64/release/obj/VBoxBalloonCtrl/VBoxWatchdogUtils.o /wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.26/out/freebsd.amd64/release/obj/VBoxBalloonCtrl/VBoxModAPIMonitor.o /wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.26/out/freebsd.amd64/release/obj/VBoxBalloonCtrl/VBoxModBallooning.o -L/usr/local/lib /wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.26/out/freebsd.amd64/release/bin/VBoxRT.so /wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.26/out/freebsd.amd64/release/lib/VBoxCOM.a /wrkdirs/usr/ports/emulators/virtualbox-ose/work/VirtualBox-5.2.26/out/freebsd.amd64/release/bin/VBoxXPCOM.so USBIdDatabaseGenerator: info: Total 378934 bytes - saving 29% (161311 bytes); old version 717755 bytes + relocs (47% save) kmk: *** Exiting with status 2 *** Error code 2 Stop. make: stopped in /usr/ports/emulators/virtualbox-ose From the error it looks like it's missing a "-lpthread" argument, but I don't know the virtualbox build system and was not able to easily figure out how to add it.
I'll take it.
Created attachment 203170 [details] Link VBoxXPCOM with pthread
A commit references this bug: Author: jkim Date: Tue Mar 26 22:23:53 UTC 2019 New revision: 496927 URL: https://svnweb.freebsd.org/changeset/ports/496927 Log: Fix build with lld on head after r345349. PR: 236775 Changes: head/emulators/virtualbox-ose/files/patch-src_libs_xpcom18a4_Makefile.kmk
It should be fixed now. Thanks!
Thanks!