[PATCH xserver 2/2] Replace all checks for 'linux' macro with '__linux__'
Pekka Paalanen
ppaalanen at gmail.com
Thu May 11 09:30:34 UTC 2017
On Thu, 11 May 2017 08:42:16 +0200
Julien Cristau <jcristau at debian.org> wrote:
> gcc -std=c99 does not define the former, and it's a horrible namespace
> confusion anyway.
>
> Signed-off-by: Julien Cristau <jcristau at debian.org>
> ---
> hw/xfree86/common/compiler.h | 14 +++++++-------
> hw/xfree86/common/xf86Config.c | 2 +-
> hw/xfree86/common/xf86Configure.c | 2 +-
> hw/xfree86/common/xf86Init.c | 2 +-
> hw/xfree86/common/xf86str.h | 2 +-
> hw/xfree86/os-support/bus/Pci.h | 4 ++--
> hw/xfree86/os-support/bus/Sbus.c | 2 +-
> hw/xfree86/os-support/bus/xf86Sbus.h | 2 +-
> hw/xfree86/os-support/linux/lnx_agp.c | 6 +++---
> hw/xfree86/os-support/misc/SlowBcopy.c | 2 +-
> 10 files changed, 19 insertions(+), 19 deletions(-)
Hi,
these two (I suppose the latter specifically) let the Meson build
continue much further than before for me. Therefore:
Tested-by: Pekka Paalanen <pekka.paalanen at collabora.co.uk>
The next issue I hit is:
-- [12:24:30] ~/build/xserver --
(wayland) pq at eldfell $ meson ~/git/xserver --prefix "$WLD" -Dc_std=c99
The Meson build system
Version: 0.40.1
Source dir: /home/pq/git/xserver
Build dir: /home/pq/build/xserver
Build type: native build
Project name: xserver
Native c compiler: cc (gcc 4.9.3)
Build machine cpu family: x86_64
Build machine cpu: x86_64
Found pkg-config: /usr/bin/pkg-config (0.28)
Native dependency xproto found: YES 7.0.31
Native dependency randrproto found: YES 1.5.0
Native dependency renderproto found: YES 0.11.1
Native dependency xextproto found: YES 7.3.0
Native dependency inputproto found: YES 2.3.2
Native dependency kbproto found: YES 1.0.7
Native dependency fontsproto found: YES 2.1.3
Native dependency fixesproto found: YES 5.0
Native dependency damageproto found: YES 1.2.1
Native dependency xcmiscproto found: YES 1.2.2
Native dependency bigreqsproto found: YES 1.1.2
Native dependency xtrans found: YES 1.3.5
Native dependency videoproto found: YES 2.3.3
Native dependency compositeproto found: YES 0.4.2
Native dependency recordproto found: YES 1.14.2
Native dependency scrnsaverproto found: YES 1.2.2
Native dependency resourceproto found: YES 1.2.0
Native dependency xf86driproto found: YES 2.1.1
Native dependency dri2proto found: YES 2.8
Native dependency dri3proto found: YES 1.0
Native dependency xineramaproto found: YES 1.2.1
Native dependency xf86bigfontproto found: YES 1.2.0
Native dependency xf86dgaproto found: YES 2.1
Native dependency xf86vidmodeproto found: YES 2.3.1
Dependency windowswmproto found: NO
Dependency applewmproto found: NO
Native dependency xshmfence found: YES 1.2
Native dependency pixman-1 found: YES 0.34.0
Native dependency libbsd found: YES 0.8.3
Native dependency xkbfile found: YES 1.0.9
Native dependency xfont2 found: YES 2.0.1
Native dependency nettle found: YES 3.3
Native dependency dbus-1 found: YES 1.10.18
Native dependency wayland-client found: YES 1.13.90
Native dependency wayland-protocols found: YES 1.7
Native dependency libdrm found: YES 2.4.78
Native dependency epoxy found: YES 1.4.1
Native dependency xext found: YES 1.3.3
Native dependency x11 found: YES 1.6.5
Native dependency xau found: YES 1.0.8
Checking for function "getaddrinfo": YES
Dependency found: NO
Native dependency libudev found: YES 233
Native dependency gbm found: YES 17.1.0-devel
Native dependency xdmcp found: YES 1.1.2
Native dependency libdrm found: YES 2.4.78
Library m found: YES
Library dl found: YES
Native dependency dri found: YES 17.1.0-devel
Checking if "CLOCK_MONOTONIC" compiles: NO
Checking for size of "unsigned long": 8
Has header "dbm.h": NO
Has header "dlfcn.h": YES
Has header "execinfo.h": YES
Has header "fcntl.h": YES
Has header "fnmatch.h": YES
Has header "linux/agpgart.h": YES
Has header "ndbm.h": NO
Has header "rpcsvc/dbm.h": NO
Has header "stdlib.h": YES
Has header "string.h": YES
Has header "strings.h": YES
Has header "stropts.h": YES
Has header "sys/agpgart.h": NO
Has header "sys/agpio.h": NO
Has header "sys/utsname.h": YES
Has header "sys/sysmacros.h": YES
Has header "unistd.h": YES
Checking for function "arc4random_buf": YES
Checking for function "backtrace": YES
Checking for function "cbrt": YES
Checking for function "epoll_create": YES
Checking for function "ffs": YES
Checking for function "getuid": YES
Checking for function "geteuid": YES
Checking for function "issetugid": NO
Checking for function "getifaddrs": YES
Checking for function "getpeereid": NO
Checking for function "getpeerucred": NO
Checking for function "getprogname": NO
Checking for function "getzoneid": NO
Checking for function "mmap": YES
Checking for function "poll": YES
Checking for function "posix_fallocate": YES
Checking for function "reallocarray": YES
Checking for function "seteuid": YES
Checking for function "setitimer": YES
Checking for function "shmctl64": NO
Checking for function "sigaction": YES
Checking for function "strcasecmp": YES
Checking for function "strcasestr": YES
Checking for function "strlcat": YES
Checking for function "strlcpy": YES
Checking for function "strncasecmp": YES
Checking for function "strndup": YES
Checking for function "timingsafe_memcmp": NO
Checking for function "vasprintf": YES
Checking for function "vsnprintf": YES
Checking for function "walkcontext": NO
Configuring dix-config.h using configuration
Configuring version-config.h using configuration
Configuring xkb-config.h using configuration
Configuring xorg-config.h using configuration
Native dependency glproto found: YES 1.4.17
Native dependency gl found: YES 17.1.0-devel
Native dependency xau found: YES 1.0.8
Native dependency presentproto found: YES 1.1
Native dependency epoxy found: YES 1.4.1
Native dependency pciaccess found: YES 0.13.4
Program awk found: YES (/usr/bin/awk)
Native dependency wayland-scanner found: YES 1.13.90
Program /home/pq/local/bin/wayland-scanner found: YES (/home/pq/local/bin/wayland-scanner)
Native dependency wayland-protocols found: YES 1.7
Build targets in project: 61
-- [12:24:35] ~/build/xserver --
(wayland) pq at eldfell $ ninja
[423/627] Compiling c object 'exa/libxserver_exa at sta/exa.c.o'
In file included from ../../git/xserver/exa/exa.c:37:0:
../../git/xserver/exa/exa.c: In function ‘exaValidateGC’:
../../git/xserver/exa/exa.c:525:10: warning: initialization discards ‘const’ qualifier from pointer target type
swap(pExaGC, pGC, funcs);
^
../../git/xserver/exa/exa_priv.h:247:17: note: in definition of macro ‘swap’
void *tmp = priv->Saved##mem; \
^
../../git/xserver/exa/exa.c:527:10: warning: initialization discards ‘const’ qualifier from pointer target type
swap(pExaGC, pGC, funcs);
^
../../git/xserver/exa/exa_priv.h:247:17: note: in definition of macro ‘swap’
void *tmp = priv->Saved##mem; \
^
../../git/xserver/exa/exa.c: In function ‘exaDestroyGC’:
../../git/xserver/exa/exa.c:541:10: warning: initialization discards ‘const’ qualifier from pointer target type
swap(pExaGC, pGC, funcs);
^
../../git/xserver/exa/exa_priv.h:247:17: note: in definition of macro ‘swap’
void *tmp = priv->Saved##mem; \
^
../../git/xserver/exa/exa.c:543:10: warning: initialization discards ‘const’ qualifier from pointer target type
swap(pExaGC, pGC, funcs);
^
../../git/xserver/exa/exa_priv.h:247:17: note: in definition of macro ‘swap’
void *tmp = priv->Saved##mem; \
^
../../git/xserver/exa/exa.c: In function ‘exaChangeGC’:
../../git/xserver/exa/exa.c:550:10: warning: initialization discards ‘const’ qualifier from pointer target type
swap(pExaGC, pGC, funcs);
^
../../git/xserver/exa/exa_priv.h:247:17: note: in definition of macro ‘swap’
void *tmp = priv->Saved##mem; \
^
../../git/xserver/exa/exa.c:552:10: warning: initialization discards ‘const’ qualifier from pointer target type
swap(pExaGC, pGC, funcs);
^
../../git/xserver/exa/exa_priv.h:247:17: note: in definition of macro ‘swap’
void *tmp = priv->Saved##mem; \
^
../../git/xserver/exa/exa.c: In function ‘exaCopyGC’:
../../git/xserver/exa/exa.c:559:10: warning: initialization discards ‘const’ qualifier from pointer target type
swap(pExaGC, pGCDst, funcs);
^
../../git/xserver/exa/exa_priv.h:247:17: note: in definition of macro ‘swap’
void *tmp = priv->Saved##mem; \
^
../../git/xserver/exa/exa.c:561:10: warning: initialization discards ‘const’ qualifier from pointer target type
swap(pExaGC, pGCDst, funcs);
^
../../git/xserver/exa/exa_priv.h:247:17: note: in definition of macro ‘swap’
void *tmp = priv->Saved##mem; \
^
../../git/xserver/exa/exa.c: In function ‘exaChangeClip’:
../../git/xserver/exa/exa.c:568:10: warning: initialization discards ‘const’ qualifier from pointer target type
swap(pExaGC, pGC, funcs);
^
../../git/xserver/exa/exa_priv.h:247:17: note: in definition of macro ‘swap’
void *tmp = priv->Saved##mem; \
^
../../git/xserver/exa/exa.c:570:10: warning: initialization discards ‘const’ qualifier from pointer target type
swap(pExaGC, pGC, funcs);
^
../../git/xserver/exa/exa_priv.h:247:17: note: in definition of macro ‘swap’
void *tmp = priv->Saved##mem; \
^
../../git/xserver/exa/exa.c: In function ‘exaCopyClip’:
../../git/xserver/exa/exa.c:577:10: warning: initialization discards ‘const’ qualifier from pointer target type
swap(pExaGC, pGCDst, funcs);
^
../../git/xserver/exa/exa_priv.h:247:17: note: in definition of macro ‘swap’
void *tmp = priv->Saved##mem; \
^
../../git/xserver/exa/exa.c:579:10: warning: initialization discards ‘const’ qualifier from pointer target type
swap(pExaGC, pGCDst, funcs);
^
../../git/xserver/exa/exa_priv.h:247:17: note: in definition of macro ‘swap’
void *tmp = priv->Saved##mem; \
^
../../git/xserver/exa/exa.c: In function ‘exaDestroyClip’:
../../git/xserver/exa/exa.c:586:10: warning: initialization discards ‘const’ qualifier from pointer target type
swap(pExaGC, pGC, funcs);
^
../../git/xserver/exa/exa_priv.h:247:17: note: in definition of macro ‘swap’
void *tmp = priv->Saved##mem; \
^
../../git/xserver/exa/exa.c:588:10: warning: initialization discards ‘const’ qualifier from pointer target type
swap(pExaGC, pGC, funcs);
^
../../git/xserver/exa/exa_priv.h:247:17: note: in definition of macro ‘swap’
void *tmp = priv->Saved##mem; \
^
../../git/xserver/exa/exa.c: At top level:
cc1: warning: unrecognized command line option "-Wno-discarded-qualifiers"
[429/627] Compiling c object 'exa/libxserver_exa at sta/exa_unaccel.c.o'
In file included from ../../git/xserver/exa/exa_unaccel.c:24:0:
../../git/xserver/exa/exa_unaccel.c: In function ‘ExaCheckFillSpans’:
../../git/xserver/exa/exa_priv.h:264:10: warning: initialization discards ‘const’ qualifier from pointer target type
swap(pExaGC, _gc_, ops);
^
../../git/xserver/exa/exa_priv.h:247:17: note: in definition of macro ‘swap’
void *tmp = priv->Saved##mem; \
^
../../git/xserver/exa/exa_unaccel.c:75:5: note: in expansion of macro ‘EXA_PRE_FALLBACK_GC’
EXA_PRE_FALLBACK_GC(pGC);
^
../../git/xserver/exa/exa_priv.h:268:10: warning: initialization discards ‘const’ qualifier from pointer target type
swap(pExaGC, _gc_, ops);
^
../../git/xserver/exa/exa_priv.h:247:17: note: in definition of macro ‘swap’
void *tmp = priv->Saved##mem; \
^
../../git/xserver/exa/exa_unaccel.c:82:5: note: in expansion of macro ‘EXA_POST_FALLBACK_GC’
EXA_POST_FALLBACK_GC(pGC);
^
../../git/xserver/exa/exa_unaccel.c: In function ‘ExaCheckSetSpans’:
../../git/xserver/exa/exa_priv.h:264:10: warning: initialization discards ‘const’ qualifier from pointer target type
swap(pExaGC, _gc_, ops);
^
../../git/xserver/exa/exa_priv.h:247:17: note: in definition of macro ‘swap’
void *tmp = priv->Saved##mem; \
^
../../git/xserver/exa/exa_unaccel.c:89:5: note: in expansion of macro ‘EXA_PRE_FALLBACK_GC’
EXA_PRE_FALLBACK_GC(pGC);
^
../../git/xserver/exa/exa_priv.h:268:10: warning: initialization discards ‘const’ qualifier from pointer target type
swap(pExaGC, _gc_, ops);
^
../../git/xserver/exa/exa_priv.h:247:17: note: in definition of macro ‘swap’
void *tmp = priv->Saved##mem; \
^
../../git/xserver/exa/exa_unaccel.c:94:5: note: in expansion of macro ‘EXA_POST_FALLBACK_GC’
EXA_POST_FALLBACK_GC(pGC);
^
../../git/xserver/exa/exa_unaccel.c: In function ‘ExaCheckPutImage’:
../../git/xserver/exa/exa_priv.h:264:10: warning: initialization discards ‘const’ qualifier from pointer target type
swap(pExaGC, _gc_, ops);
^
../../git/xserver/exa/exa_priv.h:247:17: note: in definition of macro ‘swap’
void *tmp = priv->Saved##mem; \
^
../../git/xserver/exa/exa_unaccel.c:106:5: note: in expansion of macro ‘EXA_PRE_FALLBACK_GC’
EXA_PRE_FALLBACK_GC(pGC);
^
../../git/xserver/exa/exa_priv.h:268:10: warning: initialization discards ‘const’ qualifier from pointer target type
swap(pExaGC, _gc_, ops);
^
../../git/xserver/exa/exa_priv.h:247:17: note: in definition of macro ‘swap’
void *tmp = priv->Saved##mem; \
^
../../git/xserver/exa/exa_unaccel.c:118:5: note: in expansion of macro ‘EXA_POST_FALLBACK_GC’
EXA_POST_FALLBACK_GC(pGC);
^
../../git/xserver/exa/exa_unaccel.c: In function ‘ExaCheckCopyNtoN’:
../../git/xserver/exa/exa_priv.h:264:10: warning: initialization discards ‘const’ qualifier from pointer target type
swap(pExaGC, _gc_, ops);
^
../../git/xserver/exa/exa_priv.h:247:17: note: in definition of macro ‘swap’
void *tmp = priv->Saved##mem; \
^
../../git/xserver/exa/exa_unaccel.c:129:5: note: in expansion of macro ‘EXA_PRE_FALLBACK_GC’
EXA_PRE_FALLBACK_GC(pGC);
^
../../git/xserver/exa/exa_priv.h:268:10: warning: initialization discards ‘const’ qualifier from pointer target type
swap(pExaGC, _gc_, ops);
^
../../git/xserver/exa/exa_priv.h:247:17: note: in definition of macro ‘swap’
void *tmp = priv->Saved##mem; \
^
../../git/xserver/exa/exa_unaccel.c:168:5: note: in expansion of macro ‘EXA_POST_FALLBACK_GC’
EXA_POST_FALLBACK_GC(pGC);
^
../../git/xserver/exa/exa_unaccel.c: In function ‘ExaCheckCopyArea’:
../../git/xserver/exa/exa_priv.h:264:10: warning: initialization discards ‘const’ qualifier from pointer target type
swap(pExaGC, _gc_, ops);
^
../../git/xserver/exa/exa_priv.h:247:17: note: in definition of macro ‘swap’
void *tmp = priv->Saved##mem; \
^
../../git/xserver/exa/exa_unaccel.c:210:5: note: in expansion of macro ‘EXA_PRE_FALLBACK_GC’
EXA_PRE_FALLBACK_GC(pGC);
^
../../git/xserver/exa/exa_priv.h:268:10: warning: initialization discards ‘const’ qualifier from pointer target type
swap(pExaGC, _gc_, ops);
^
../../git/xserver/exa/exa_priv.h:247:17: note: in definition of macro ‘swap’
void *tmp = priv->Saved##mem; \
^
../../git/xserver/exa/exa_unaccel.c:218:5: note: in expansion of macro ‘EXA_POST_FALLBACK_GC’
EXA_POST_FALLBACK_GC(pGC);
^
../../git/xserver/exa/exa_unaccel.c: In function ‘ExaCheckCopyPlane’:
../../git/xserver/exa/exa_priv.h:264:10: warning: initialization discards ‘const’ qualifier from pointer target type
swap(pExaGC, _gc_, ops);
^
../../git/xserver/exa/exa_priv.h:247:17: note: in definition of macro ‘swap’
void *tmp = priv->Saved##mem; \
^
../../git/xserver/exa/exa_unaccel.c:230:5: note: in expansion of macro ‘EXA_PRE_FALLBACK_GC’
EXA_PRE_FALLBACK_GC(pGC);
^
../../git/xserver/exa/exa_priv.h:268:10: warning: initialization discards ‘const’ qualifier from pointer target type
swap(pExaGC, _gc_, ops);
^
../../git/xserver/exa/exa_priv.h:247:17: note: in definition of macro ‘swap’
void *tmp = priv->Saved##mem; \
^
../../git/xserver/exa/exa_unaccel.c:239:5: note: in expansion of macro ‘EXA_POST_FALLBACK_GC’
EXA_POST_FALLBACK_GC(pGC);
^
../../git/xserver/exa/exa_unaccel.c: In function ‘ExaCheckPolyPoint’:
../../git/xserver/exa/exa_priv.h:264:10: warning: initialization discards ‘const’ qualifier from pointer target type
swap(pExaGC, _gc_, ops);
^
../../git/xserver/exa/exa_priv.h:247:17: note: in definition of macro ‘swap’
void *tmp = priv->Saved##mem; \
^
../../git/xserver/exa/exa_unaccel.c:248:5: note: in expansion of macro ‘EXA_PRE_FALLBACK_GC’
EXA_PRE_FALLBACK_GC(pGC);
^
../../git/xserver/exa/exa_priv.h:268:10: warning: initialization discards ‘const’ qualifier from pointer target type
swap(pExaGC, _gc_, ops);
^
../../git/xserver/exa/exa_priv.h:247:17: note: in definition of macro ‘swap’
void *tmp = priv->Saved##mem; \
^
../../git/xserver/exa/exa_unaccel.c:253:5: note: in expansion of macro ‘EXA_POST_FALLBACK_GC’
EXA_POST_FALLBACK_GC(pGC);
^
../../git/xserver/exa/exa_unaccel.c: In function ‘ExaCheckPolylines’:
../../git/xserver/exa/exa_priv.h:264:10: warning: initialization discards ‘const’ qualifier from pointer target type
swap(pExaGC, _gc_, ops);
^
../../git/xserver/exa/exa_priv.h:247:17: note: in definition of macro ‘swap’
void *tmp = priv->Saved##mem; \
^
../../git/xserver/exa/exa_unaccel.c:260:5: note: in expansion of macro ‘EXA_PRE_FALLBACK_GC’
EXA_PRE_FALLBACK_GC(pGC);
^
../../git/xserver/exa/exa_priv.h:268:10: warning: initialization discards ‘const’ qualifier from pointer target type
swap(pExaGC, _gc_, ops);
^
../../git/xserver/exa/exa_priv.h:247:17: note: in definition of macro ‘swap’
void *tmp = priv->Saved##mem; \
^
../../git/xserver/exa/exa_unaccel.c:270:5: note: in expansion of macro ‘EXA_POST_FALLBACK_GC’
EXA_POST_FALLBACK_GC(pGC);
^
../../git/xserver/exa/exa_unaccel.c: In function ‘ExaCheckPolySegment’:
../../git/xserver/exa/exa_priv.h:264:10: warning: initialization discards ‘const’ qualifier from pointer target type
swap(pExaGC, _gc_, ops);
^
../../git/xserver/exa/exa_priv.h:247:17: note: in definition of macro ‘swap’
void *tmp = priv->Saved##mem; \
^
../../git/xserver/exa/exa_unaccel.c:277:5: note: in expansion of macro ‘EXA_PRE_FALLBACK_GC’
EXA_PRE_FALLBACK_GC(pGC);
^
../../git/xserver/exa/exa_priv.h:268:10: warning: initialization discards ‘const’ qualifier from pointer target type
swap(pExaGC, _gc_, ops);
^
../../git/xserver/exa/exa_priv.h:247:17: note: in definition of macro ‘swap’
void *tmp = priv->Saved##mem; \
^
../../git/xserver/exa/exa_unaccel.c:286:5: note: in expansion of macro ‘EXA_POST_FALLBACK_GC’
EXA_POST_FALLBACK_GC(pGC);
^
../../git/xserver/exa/exa_unaccel.c: In function ‘ExaCheckPolyArc’:
../../git/xserver/exa/exa_priv.h:264:10: warning: initialization discards ‘const’ qualifier from pointer target type
swap(pExaGC, _gc_, ops);
^
../../git/xserver/exa/exa_priv.h:247:17: note: in definition of macro ‘swap’
void *tmp = priv->Saved##mem; \
^
../../git/xserver/exa/exa_unaccel.c:292:5: note: in expansion of macro ‘EXA_PRE_FALLBACK_GC’
EXA_PRE_FALLBACK_GC(pGC);
^
../../git/xserver/exa/exa_priv.h:268:10: warning: initialization discards ‘const’ qualifier from pointer target type
swap(pExaGC, _gc_, ops);
^
../../git/xserver/exa/exa_priv.h:247:17: note: in definition of macro ‘swap’
void *tmp = priv->Saved##mem; \
^
../../git/xserver/exa/exa_unaccel.c:300:5: note: in expansion of macro ‘EXA_POST_FALLBACK_GC’
EXA_POST_FALLBACK_GC(pGC);
^
../../git/xserver/exa/exa_unaccel.c: In function ‘ExaCheckPolyFillRect’:
../../git/xserver/exa/exa_priv.h:264:10: warning: initialization discards ‘const’ qualifier from pointer target type
swap(pExaGC, _gc_, ops);
^
../../git/xserver/exa/exa_priv.h:247:17: note: in definition of macro ‘swap’
void *tmp = priv->Saved##mem; \
^
../../git/xserver/exa/exa_unaccel.c:307:5: note: in expansion of macro ‘EXA_PRE_FALLBACK_GC’
EXA_PRE_FALLBACK_GC(pGC);
^
../../git/xserver/exa/exa_priv.h:268:10: warning: initialization discards ‘const’ qualifier from pointer target type
swap(pExaGC, _gc_, ops);
^
../../git/xserver/exa/exa_priv.h:247:17: note: in definition of macro ‘swap’
void *tmp = priv->Saved##mem; \
^
../../git/xserver/exa/exa_unaccel.c:315:5: note: in expansion of macro ‘EXA_POST_FALLBACK_GC’
EXA_POST_FALLBACK_GC(pGC);
^
../../git/xserver/exa/exa_unaccel.c: In function ‘ExaCheckImageGlyphBlt’:
../../git/xserver/exa/exa_priv.h:264:10: warning: initialization discards ‘const’ qualifier from pointer target type
swap(pExaGC, _gc_, ops);
^
../../git/xserver/exa/exa_priv.h:247:17: note: in definition of macro ‘swap’
void *tmp = priv->Saved##mem; \
^
../../git/xserver/exa/exa_unaccel.c:323:5: note: in expansion of macro ‘EXA_PRE_FALLBACK_GC’
EXA_PRE_FALLBACK_GC(pGC);
^
../../git/xserver/exa/exa_priv.h:268:10: warning: initialization discards ‘const’ qualifier from pointer target type
swap(pExaGC, _gc_, ops);
^
../../git/xserver/exa/exa_priv.h:247:17: note: in definition of macro ‘swap’
void *tmp = priv->Saved##mem; \
^
../../git/xserver/exa/exa_unaccel.c:330:5: note: in expansion of macro ‘EXA_POST_FALLBACK_GC’
EXA_POST_FALLBACK_GC(pGC);
^
../../git/xserver/exa/exa_unaccel.c: In function ‘ExaCheckPolyGlyphBlt’:
../../git/xserver/exa/exa_priv.h:264:10: warning: initialization discards ‘const’ qualifier from pointer target type
swap(pExaGC, _gc_, ops);
^
../../git/xserver/exa/exa_priv.h:247:17: note: in definition of macro ‘swap’
void *tmp = priv->Saved##mem; \
^
../../git/xserver/exa/exa_unaccel.c:338:5: note: in expansion of macro ‘EXA_PRE_FALLBACK_GC’
EXA_PRE_FALLBACK_GC(pGC);
^
../../git/xserver/exa/exa_priv.h:268:10: warning: initialization discards ‘const’ qualifier from pointer target type
swap(pExaGC, _gc_, ops);
^
../../git/xserver/exa/exa_priv.h:247:17: note: in definition of macro ‘swap’
void *tmp = priv->Saved##mem; \
^
../../git/xserver/exa/exa_unaccel.c:346:5: note: in expansion of macro ‘EXA_POST_FALLBACK_GC’
EXA_POST_FALLBACK_GC(pGC);
^
../../git/xserver/exa/exa_unaccel.c: In function ‘ExaCheckPushPixels’:
../../git/xserver/exa/exa_priv.h:264:10: warning: initialization discards ‘const’ qualifier from pointer target type
swap(pExaGC, _gc_, ops);
^
../../git/xserver/exa/exa_priv.h:247:17: note: in definition of macro ‘swap’
void *tmp = priv->Saved##mem; \
^
../../git/xserver/exa/exa_unaccel.c:353:5: note: in expansion of macro ‘EXA_PRE_FALLBACK_GC’
EXA_PRE_FALLBACK_GC(pGC);
^
../../git/xserver/exa/exa_priv.h:268:10: warning: initialization discards ‘const’ qualifier from pointer target type
swap(pExaGC, _gc_, ops);
^
../../git/xserver/exa/exa_priv.h:247:17: note: in definition of macro ‘swap’
void *tmp = priv->Saved##mem; \
^
../../git/xserver/exa/exa_unaccel.c:365:5: note: in expansion of macro ‘EXA_POST_FALLBACK_GC’
EXA_POST_FALLBACK_GC(pGC);
^
../../git/xserver/exa/exa_unaccel.c: At top level:
cc1: warning: unrecognized command line option "-Wno-discarded-qualifiers"
[597/627] Generating
../../git/xserver/hw/xwayland/drm.xml:159: warning: since version not increasing
[602/627] Generating
../../git/xserver/hw/xwayland/drm.xml:159: warning: since version not increasing
[615/627] Compiling c object 'hw/xwayland/Xwayland at exe/xwayland.c.o'
../../git/xserver/hw/xwayland/xwayland.c: In function ‘OsVendorInit’:
../../git/xserver/hw/xwayland/xwayland.c:60:9: warning: implicit declaration of function ‘ForceClockId’ [-Wimplicit-function-declaration]
ForceClockId(CLOCK_MONOTONIC);
^
../../git/xserver/hw/xwayland/xwayland.c: At top level:
cc1: warning: unrecognized command line option "-Wno-discarded-qualifiers"
[627/627] Linking target hw/xwayland/Xwayland
FAILED: hw/xwayland/Xwayland
cc -o hw/xwayland/Xwayland 'hw/xwayland/Xwayland at exe/hw_xwayland_Xwayland at exe_relative-pointer-unstable-v1-protocol.c.o' 'hw/xwayland/Xwayland at exe/hw_xwayland_Xwayland at exe_pointer-constraints-unstable-v1-protocol.c.o' 'hw/xwayland/Xwayland at exe/hw_xwayland_Xwayland at exe_tablet-unstable-v2-protocol.c.o' 'hw/xwayland/Xwayland at exe/hw_xwayland_Xwayland at exe_drm-protocol.c.o' 'hw/xwayland/Xwayland at exe/xwayland.c.o' 'hw/xwayland/Xwayland at exe/xwayland-input.c.o' 'hw/xwayland/Xwayland at exe/xwayland-cursor.c.o' 'hw/xwayland/Xwayland at exe/xwayland-shm.c.o' 'hw/xwayland/Xwayland at exe/xwayland-output.c.o' 'hw/xwayland/Xwayland at exe/xwayland-cvt.c.o' 'hw/xwayland/Xwayland at exe/xwayland-vidmode.c.o' 'hw/xwayland/Xwayland at exe/.._.._mi_miinitext.c.o' 'hw/xwayland/Xwayland at exe/xwayland-glamor.c.o' 'hw/xwayland/Xwayland at exe/xwayland-glamor-xv.c.o' '-L/home/pq/local/lib' '-Wl,--no-undefined' '-Wl,--as-needed' '-fvisibility=hidden' 'dix/liblibxserver_main.a' 'glamor/libglamor.a' 'fb/liblibxserver_fb.a' 'mi/liblibxserver_mi.a' 'dix/liblibxserver_dix.a' 'composite/liblibxserver_composite.a' 'damageext/liblibxserver_damageext.a' 'dbe/liblibxserver_dbe.a' 'randr/liblibxserver_randr.a' 'miext/damage/liblibxserver_miext_damage.a' 'render/liblibxserver_render.a' 'present/liblibxserver_present.a' 'Xext/liblibxserver_xext.a' 'miext/sync/liblibxserver_miext_sync.a' 'xfixes/liblibxserver_xfixes.a' 'Xi/liblibxserver_xi.a' 'xkb/liblibxserver_xkb.a' 'record/liblibxserver_record.a' 'os/liblibxserver_os.a' 'os/liblibxlibc.a' 'os/liblibxlibc.a' 'dri3/liblibxserver_dri3.a' 'Xext/liblibxserver_xext_vidmode.a' 'xkb/liblibxserver_xkb_stubs.a' 'Xi/liblibxserver_xi_stubs.a' 'glx/liblibxserver_glx.a' '-lpixman-1' '-lbsd' '-lxkbfile' '-lXfont2' '-lXdmcp' '-lwayland-client' '-ldrm' '-lepoxy' '-lgbm' '-lpixman-1' '-lbsd' '-lxkbfile' '-lXfont2' '-lXdmcp' '-lpixman-1' '-lbsd' '-lxkbfile' '-lXfont2' '-lXdmcp' '-lepoxy' '-lpixman-1' '-lbsd' '-lxkbfile' '-lXfont2' '-lXdmcp' '-lpixman-1' '-lbsd' '-lxkbfile' '-lXfont2' '-lXdmcp' '-lm' '-lpixman-1' '-lbsd' '-lxkbfile' '-lXfont2' '-lXdmcp' '-lpixman-1' '-lbsd' '-lxkbfile' '-lXfont2' '-lXdmcp' '-lpixman-1' '-lbsd' '-lxkbfile' '-lXfont2' '-lXdmcp' '-lpixman-1' '-lbsd' '-lxkbfile' '-lXfont2' '-lXdmcp' '-lpixman-1' '-lbsd' '-lxkbfile' '-lXfont2' '-lXdmcp' '-lpixman-1' '-lbsd' '-lxkbfile' '-lXfont2' '-lXdmcp' '-lpixman-1' '-lbsd' '-lxkbfile' '-lXfont2' '-lXdmcp' '-lpixman-1' '-lbsd' '-lxkbfile' '-lXfont2' '-lXdmcp' '-lpixman-1' '-lbsd' '-lxkbfile' '-lXfont2' '-lXdmcp' '-lpixman-1' '-lbsd' '-lxkbfile' '-lXfont2' '-lXdmcp' '-lxshmfence' '-lpixman-1' '-lbsd' '-lxkbfile' '-lXfont2' '-lXdmcp' '-lpixman-1' '-lbsd' '-lxkbfile' '-lXfont2' '-lXdmcp' '-lpixman-1' '-lbsd' '-lxkbfile' '-lXfont2' '-lXdmcp' '-lpixman-1' '-lbsd' '-lxkbfile' '-lXfont2' '-lXdmcp' '-lpixman-1' '-lbsd' '-lxkbfile' '-lXfont2' '-lXdmcp' '-ldl' '-lnettle' '-lXau' '-lpixman-1' '-lbsd' '-lxkbfile' '-lXfont2' '-lXdmcp' '-lpixman-1' '-lbsd' '-lxkbfile' '-lXfont2' '-lXdmcp' '-lpixman-1' '-lbsd' '-lxkbfile' '-lXfont2' '-lXdmcp' '-lpixman-1' '-lbsd' '-lxkbfile' '-lXfont2' '-lXdmcp' '-lpixman-1' '-lbsd' '-lxkbfile' '-lXfont2' '-lXdmcp' '-ldl' '-lGL'
hw/xwayland/Xwayland at exe/xwayland.c.o: In function `OsVendorInit':
/home/pq/build/xserver/../../git/xserver/hw/xwayland/xwayland.c:60: undefined reference to `ForceClockId'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
Thanks,
pq
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.x.org/archives/xorg-devel/attachments/20170511/bd7effdd/attachment-0001.sig>
More information about the xorg-devel
mailing list