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

Bug 894508

Summary: app-emulation/gallium-nine-standalone-0.8-r1 fails to compile (MUSL-CLANG-SYSTEM): present.c:1771:24: error: call to undeclared function XrmUniqueQuark; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: James Le Cuirot <chewi>
Status: CONFIRMED ---    
Severity: normal CC: ionen, wine
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 870412    
Attachments: build.log
My build log

Description Agostino Sarubbo gentoo-dev 2023-02-15 07:54:28 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: app-emulation/gallium-nine-standalone-0.8-r1 fails to compile (MUSL-CLANG-SYSTEM).
Discovered on: amd64 (internal ref: tinderbox_musl)

NOTE:
(MUSL-CLANG-SYSTEM) in the summary means that bug was found on a machine that runs MUSL libc + clang16 but this bug MAY or MAY NOT BE related to musl/clang16.
Comment 1 Agostino Sarubbo gentoo-dev 2023-02-15 07:54:30 UTC
Created attachment 851184 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2023-02-15 07:54:31 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


FAILED: d3d9-nine/d3d9-nine.dll.so.p/present.c.o 
../wine-nine-standalone-0.8/d3d9-nine/present.c:1771:24: error: call to undeclared function 'XrmUniqueQuark'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
Comment 3 listout 2023-08-01 18:52:58 UTC
Created attachment 866820 [details]
My build log

I can't seem to reproduce the error. Even so I can't seem to find the function or call to the function in the codebase or in present.c source file at all (grep -ir XrmUniqueQuark)
Comment 4 Ionen Wolkens gentoo-dev 2023-08-01 21:43:47 UTC
That line "calls" XUniqueContext() which is from /usr/include/X11/Xutil.h:

    #define XUniqueContext()       ((XContext) XrmUniqueQuark())

Haven't tried, but if I were to guess you need older headers to reproduce (aka, it is probably already fixed).