Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 835854

Summary: games-arcade/supertux-0.6.3-r2 fails to compile: ld: compositor.cpp:(.text+0x5d5): undefined reference to _obstack_begin
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Gentoo Games <games>
Status: CONFIRMED ---    
Severity: normal CC: fordhenry2299
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Attachments: build.log.xz
A patch which is working on a musl system

Description Agostino Sarubbo gentoo-dev 2022-03-23 14:59:27 UTC

Issue: games-arcade/supertux-0.6.3 fails to compile.
Discovered on: amd64 (internal ref: tinderbox_musl)

This machine uses MUSL libc
Comment 1 Agostino Sarubbo gentoo-dev 2022-03-23 14:59:29 UTC
Created attachment 767653 [details]

build log and emerge --info (compressed because it exceeds attachment limit, use 'xzless' to read it)
Comment 2 Agostino Sarubbo gentoo-dev 2022-03-23 14:59:30 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:

--   Package 'raqm', required by 'virtual:world', not found
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 
/usr/lib/gcc/x86_64-gentoo-linux-musl/11.2.1/../../../../x86_64-gentoo-linux-musl/bin/ld: compositor.cpp:(.text+0x5d5): undefined reference to `_obstack_begin'
FAILED: supertux2 
canvas.cpp:(.text+0x11fe): undefined reference to `_obstack_newchunk'
canvas.cpp:(.text+0x143e): undefined reference to `_obstack_newchunk'
canvas.cpp:(.text+0x1689): undefined reference to `_obstack_newchunk'
canvas.cpp:(.text+0x192e): undefined reference to `_obstack_newchunk'
canvas.cpp:(.text+0xe9e): undefined reference to `_obstack_newchunk'
canvas.cpp:(.text._ZdlPvR7obstack[_ZdlPvR7obstack]+0x24): undefined reference to `obstack_free'
compositor.cpp:(.text+0x593): undefined reference to `obstack_free'
compositor.cpp:(.text+0x7c): undefined reference to `_obstack_begin'
compositor.cpp:(.text+0xf2): undefined reference to `obstack_free'
collect2: error: ld returned 1 exit status
Comment 3 Agostino Sarubbo gentoo-dev 2023-05-22 08:33:18 UTC
tinderbox_musl has reproduced this issue with version 0.6.3-r2 - Updating summary.
Comment 4 fordhenry2299 2023-09-02 02:46:28 UTC
Created attachment 869175 [details, diff]
A patch which is working on a musl system

Created a patch which allows this package to build on musl.
I took a cmake module from some google project (
I have only tested this on a musl system but from the description it should work fine on glibc too.
Signed-off-by: Henry Ford <>