https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: games-simulation/openrct2-0.4.5 fails to compile (MUSL-SYSTEM). Discovered on: amd64 (internal ref: tinderbox_musl) NOTE: (MUSL-SYSTEM) in the summary means that bug was found on a machine that runs MUSL libc but this bug MAY or MAY NOT BE related to musl.
Created attachment 862264 [details] build.log build log and emerge --info
Error(s) that match a know pattern in addition to what has been reported in the summary: FAILED: CMakeFiles/libopenrct2.dir/src/openrct2/core/FileStream.cpp.o /var/tmp/portage/games-simulation/openrct2-0.4.5/work/OpenRCT2-0.4.5/src/openrct2/core/FileStream.cpp:25:20: error: 'ftello64' was not declared in this scope; did you mean 'ftello'?
@sam: Any idea for this one?
(In reply to Conrad Kostecki from comment #3) > @sam: Any idea for this one? See https://bugs.gentoo.org/903611#c0. At https://github.com/OpenRCT2/OpenRCT2/blob/e6bee21682d36af5b5580b5f14f8e065a847b350/src/openrct2/core/FileStream.cpp#L24, we *unconditionally* use ftello64 and friends on Linux, but this isn't right. On glibc, we can set FILE_OFFSET_BITS=64 to make ftello-act-LFS aware. On musl, ftello is already LFS aware. So, lines 24-27 can be removed if in the build system, we can add -D_FILE_OFFSET_BITS=64 somewhere.