Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 835854 - games-arcade/supertux-0.6.3-r2 fails to compile: ld: compositor.cpp:(.text+0x5d5): undefined reference to _obstack_begin
Summary: games-arcade/supertux-0.6.3-r2 fails to compile: ld: compositor.cpp:(.text+0x...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Games
Depends on:
Reported: 2022-03-23 14:59 UTC by Agostino Sarubbo
Modified: 2023-09-02 02:46 UTC (History)
1 user (show)

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

build.log.xz (build.log.xz,29.81 KB, application/x-xz)
2022-03-23 14:59 UTC, Agostino Sarubbo
A patch which is working on a musl system (supertux-obstack.patch,1.75 KB, patch)
2023-09-02 02:46 UTC, fordhenry2299
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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 <>