xkbcomp from git compile error
I could able to compile all other components but xkbcomp the error is:
My gcc is
gcc -v
Using built-in specs.
COLLECT_GCC=/usr/bin/gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/8/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-redhat-linux
Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,fortran,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl --disable-libmpx --enable-offload-targets=nvptx-none --without-cuda-driver --enable-gnu-indirect-function --enable-cet --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux
Thread model: posix
gcc version 8.5.0 20210514 (Red Hat 8.5.0-3) (GCC)
--------error snip start------------------
make[2]: Entering directory '/LiMP/xorg/src/app/xkbcomp'
CC expr.o
expr.c: In function ‘ExprResolveString’:
expr.c:766:17: error: implicit declaration of function ‘asprintf’; did you mean ‘vsprintf’? [-Werror=implicit-function-declaration]
if (asprintf(&new, "%s%s", leftRtrn.str, rightRtrn.str) < 0)
^~~~~~~~
vsprintf
expr.c:766:17: warning: nested extern declaration of ‘asprintf’ [-Wnested-externs]
cc1: some warnings being treated as errors
make[2]: *** [Makefile:604: expr.o] Error 1
make[2]: Leaving directory '/LiMP/xorg/src/app/xkbcomp'
make[1]: *** [Makefile:648: all-recursive] Error 1
make[1]: Leaving directory '/LiMP/xorg/src/app/xkbcomp'
make: *** [Makefile:470: all] Error 2
build.sh: "make " failed on app/xkbcomp
build.sh: error processing: "app/xkbcomp"
Edited by Alan Coopersmith