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...
Status: CONFIRMED
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: 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: ---


Attachments
build.log.xz (build.log.xz,29.81 KB, application/x-xz)
2022-03-23 14:59 UTC, Agostino Sarubbo
Details
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
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

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

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

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) 
-- Could NOT find RAQM (missing: RAQM_INCLUDE_DIR RAQM_LIBRARY) 
/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 (https://kernel.googlesource.com/pub/scm/devel/pahole/pahole/+/refs/heads/master/cmake/modules/Findobstack.cmake).
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 <fordhenry2299@gmail.com>