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

Bug 831792

Summary: games-fps/xonotic-0.8.2 fails to compile: sys_shared.c:(.text+0x18d): undefined reference to moncontrol
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Gentoo Games <games>
Status: RESOLVED FIXED    
Severity: normal CC: ionen
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2022-01-22 09:40:02 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: games-fps/xonotic-0.8.2 fails to compile.
Discovered on: amd64 (internal ref: tinderbox_musl)

NOTE:
This machine uses MUSL libc
Comment 1 Agostino Sarubbo gentoo-dev 2022-01-22 09:40:05 UTC
Created attachment 763129 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-01-22 09:40:06 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


sys_shared.c:(.text+0x18d): undefined reference to `moncontrol'
sys_shared.c:(.text+0x1a1): undefined reference to `moncontrol'
collect2: error: ld returned 1 exit status
Comment 3 Ionen Wolkens gentoo-dev 2022-07-04 16:04:24 UTC
Untested but believe this was also fixed by 0.8.5 bump (0879cdd7c0900fd821a40296e7f362ff43079b92) as it adds __GLIBC__

#elif (defined(__linux__) && (defined(__GLIBC__) || defined(__GNU_LIBRARY__))) || defined(__FreeBSD__)
        extern int moncontrol(int);
        moncontrol(enable);
#endif