Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 780015 - games-emulation/dosbox-0.75_pre4302 [glide -alsa] - /.../ld: hardware/libhardware.a(glide.o): undefined reference to symbol dlclose@@GLIBC_2.2.5
Summary: games-emulation/dosbox-0.75_pre4302 [glide -alsa] - /.../ld: hardware/libhard...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-04 18:29 UTC by Toralf Förster
Modified: 2021-10-26 12:12 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,16.57 KB, text/plain)
2021-04-04 18:29 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,234.85 KB, text/plain)
2021-04-04 18:29 UTC, Toralf Förster
Details
environment (environment,95.08 KB, text/plain)
2021-04-04 18:29 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,21.98 KB, application/x-bzip)
2021-04-04 18:29 UTC, Toralf Förster
Details
games-emulation:dosbox-0.75_pre4302:20210404-174612.log (games-emulation:dosbox-0.75_pre4302:20210404-174612.log,104.85 KB, text/plain)
2021-04-04 18:29 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,8.38 KB, application/x-bzip)
2021-04-04 18:29 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,34.07 KB, application/x-bzip)
2021-04-04 18:29 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2021-04-04 18:29:14 UTC
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"
Comment 1 Toralf Förster gentoo-dev 2021-04-04 18:29:15 UTC
Created attachment 697179 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-04-04 18:29:17 UTC
Created attachment 697182 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-04-04 18:29:19 UTC
Created attachment 697185 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-04-04 18:29:20 UTC
Created attachment 697188 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-04-04 18:29:21 UTC
Created attachment 697191 [details]
games-emulation:dosbox-0.75_pre4302:20210404-174612.log
Comment 6 Toralf Förster gentoo-dev 2021-04-04 18:29:22 UTC
Created attachment 697194 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2021-04-04 18:29:24 UTC
Created attachment 697197 [details]
temp.tar.bz2
Comment 8 orbea 2021-04-07 17:32:20 UTC
I can only reproduce this with USE='glide -alsa'.
Comment 9 orbea 2021-04-07 18:09:41 UTC
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.
Comment 10 orbea 2021-04-07 18:10:10 UTC
Forgot to paste the patch link...

https://github.com/voyageur/openglide/blob/master/platform/dosbox/dosbox_glide.diff
Comment 11 Larry the Git Cow gentoo-dev 2021-10-26 12:12:02 UTC
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(-)