Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 736234 - games-emulation/dosbox-staging-0.75.0 : /.../ld: gui/libgui.a(sdl_mapper.o): undefined reference to symbol pthread_create@@GLIBC_2
Summary: games-emulation/dosbox-staging-0.75.0 : /.../ld: gui/libgui.a(sdl_mapper.o): ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Bernard Cafarelli
URL:
Whiteboard:
Keywords:
: 738120 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-08-07 08:10 UTC by Toralf Förster
Modified: 2020-08-20 12:35 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,16.43 KB, text/plain)
2020-08-07 08:10 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,262.02 KB, text/plain)
2020-08-07 08:10 UTC, Toralf Förster
Details
environment (environment,73.93 KB, text/plain)
2020-08-07 08:10 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,27.32 KB, application/x-bzip)
2020-08-07 08:10 UTC, Toralf Förster
Details
games-emulation:dosbox-staging-0.75.0:20200807-025416.log (games-emulation:dosbox-staging-0.75.0:20200807-025416.log,61.17 KB, text/plain)
2020-08-07 08:10 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,9.16 KB, application/x-bzip)
2020-08-07 08:10 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,25.41 KB, application/x-bzip)
2020-08-07 08:10 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 2020-08-07 08:10:28 UTC
x86_64-pc-linux-gnu-g++ -std=gnu++11  -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/decoders/libdecoders.a libs/gui_tk/libgui_tk.a libs/nuked/libnuked.a libs/ppscale/libppscale.a -L/usr/lib64 -lSDL2 -lpng -lz
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: gui/libgui.a(sdl_mapper.o): undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /lib64/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:428: dosbox] Error 1

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_systemd-20200801-132524

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10.2.0 *
clang version 10.0.1 
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/10/bin
/usr/lib/llvm/10
10.0.1
Available Python interpreters, in order of preference:
  [1]   python3.7
  [2]   python3.9 (fallback)
  [3]   python3.8 (fallback)
  [4]   python3.6 (fallback)
  [5]   python2.7 (fallback)
  [6]   pypy3 (fallback)
Available Ruby profiles:
  [1]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.45.2 *
The Glorious Glasgow Haskell Compilation System, version 8.8.4

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Fri Aug  7 01:35:29 AM UTC 2020

emerge -qpvO games-emulation/dosbox-staging
[ebuild  N    ] games-emulation/dosbox-staging-0.75.0  USE="-alsa -debug -dynrec -opengl -opus"
Comment 1 Toralf Förster gentoo-dev 2020-08-07 08:10:32 UTC
Created attachment 653510 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-08-07 08:10:36 UTC
Created attachment 653512 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-08-07 08:10:39 UTC
Created attachment 653514 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-08-07 08:10:42 UTC
Created attachment 653516 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-08-07 08:10:45 UTC
Created attachment 653518 [details]
games-emulation:dosbox-staging-0.75.0:20200807-025416.log
Comment 6 Toralf Förster gentoo-dev 2020-08-07 08:10:49 UTC
Created attachment 653520 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2020-08-07 08:10:52 UTC
Created attachment 653522 [details]
temp.tbz2
Comment 8 rx80 2020-08-07 22:13:24 UTC
This is due to a missing -lpthread at the linking stage.
Comment 9 Bernard Cafarelli gentoo-dev 2020-08-18 17:56:39 UTC
This is triggered with USE="-alsa", -lpthread linking should probably be moved out of a conditional there
Comment 10 Bernard Cafarelli gentoo-dev 2020-08-20 06:59:07 UTC
*** Bug 738120 has been marked as a duplicate of this bug. ***
Comment 11 Larry the Git Cow gentoo-dev 2020-08-20 12:35:45 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b94739c84fec1e575996b979cdbda9bd7cb462b

commit 5b94739c84fec1e575996b979cdbda9bd7cb462b
Author:     Bernard Cafarelli <voyageur@gentoo.org>
AuthorDate: 2020-08-20 12:35:29 +0000
Commit:     Bernard Cafarelli <voyageur@gentoo.org>
CommitDate: 2020-08-20 12:35:42 +0000

    games-emulation/dosbox-staging: 0.75.1 bump
    
    Also fix compilation with USE=-alsa
    
    Closes: https://bugs.gentoo.org/736234
    Package-Manager: Portage-3.0.4, Repoman-3.0.1
    Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>

 games-emulation/dosbox-staging/Manifest            |  1 +
 .../dosbox-staging/dosbox-staging-0.75.1.ebuild    | 49 ++++++++++++++++++++++
 .../files/dosbox-staging-0.75.1-pthread.patch      | 11 +++++
 3 files changed, 61 insertions(+)