x86_64-pc-linux-gnu-g++ -O2 -pipe -march=native -fno-diagnostics-color -mno-ms-bitfields -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -o dosbox dosbox.o cpu/libcpu.a debug/libdebug.a dos/libdos.a fpu/libfpu.a hardware/libhardware.a gui/libgui.a ints/libints.a misc/libmisc.a shell/libshell.a hardware/mame/libmame.a hardware/serialport/libserial.a libs/gui_tk/libgui_tk.a -lSDL_sound -lSDL -lpthread -lpng -lz -lSDL_net /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: hardware/libhardware.a(glide.o): undefined reference to symbol 'dlclose@@GLIBC_2.2.5' /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /lib64/libdl.so.2: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status make[3]: *** [Makefile:415: dosbox] Error 1 ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1-20210330-091524 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-7.3.1 [2] x86_64-pc-linux-gnu-10.2.0 * clang version 11.1.0 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/11/bin /usr/lib/llvm/11 11.1.0 Python 3.8.9 Available Ruby profiles: [1] ruby26 (with Rubygems) [2] ruby30 (with Rubygems) * Available Rust versions: [1] rust-bin-1.51.0 [2] rust-1.51.0 * The following VMs are available for generation-2: *) AdoptOpenJDK 8.282_p08 [openjdk-bin-8] Available Java Virtual Machines: [1] openjdk-bin-8 system-vm The Glorious Glasgow Haskell Compilation System, version 8.10.4 timestamp(s) of HEAD at this tinderbox image: /var/db/repos/gentoo Sun Apr 4 17:20:49 UTC 2021 emerge -qpvO games-emulation/dosbox [ebuild N ] games-emulation/dosbox-0.75_pre4302 USE="glide -X -alsa -core-inline -debug -hardened -opengl"
Created attachment 697179 [details] emerge-info.txt
Created attachment 697182 [details] emerge-history.txt
Created attachment 697185 [details] environment
Created attachment 697188 [details] etc.portage.tar.bz2
Created attachment 697191 [details] games-emulation:dosbox-0.75_pre4302:20210404-174612.log
Created attachment 697194 [details] logs.tar.bz2
Created attachment 697197 [details] temp.tar.bz2
I can only reproduce this with USE='glide -alsa'.
The build doesn't use libtool at all. Additionally its a problem in this patch, its missing -ldl which is only added in the dosbox build when alsa is enabled.
Forgot to paste the patch link... https://github.com/voyageur/openglide/blob/master/platform/dosbox/dosbox_glide.diff
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1fb68a666be96f0ceaedd843d4c5437fab14e1a5 commit 1fb68a666be96f0ceaedd843d4c5437fab14e1a5 Author: James Le Cuirot <chewi@gentoo.org> AuthorDate: 2021-10-26 12:11:29 +0000 Commit: James Le Cuirot <chewi@gentoo.org> CommitDate: 2021-10-26 12:11:29 +0000 games-emulation/dosbox: Fix 0.75_pre4302 with USE="-alsa glide" Closes: https://bugs.gentoo.org/780015 Signed-off-by: James Le Cuirot <chewi@gentoo.org> games-emulation/dosbox/dosbox-0.75_pre4302.ebuild | 2 +- .../dosbox/files/dosbox-0.75-glide-libdl.patch | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-)