xcompmgr 1.1.10 fails to build with glibc 2.28
xcompmgr 1.1.10 fails to build with GCC 8.5 (RHEL8, AlmaLinux 8, Rocky Linux 8, etc.) both ix86 and x86_64 architectures. Build is possible with several warnings using --disable-selective-werror
but warns You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at https://gitlab.freedesktop.org/xorg/app/xcompmgr/-/issues
, so I'm here reporting the issue.
+ /usr/bin/make -j6 V=1
/usr/bin/make all-recursive
make[1]: Entering directory '/builddir/build/BUILD/xcompmgr-1.1.10'
Making all in man
make[2]: Entering directory '/builddir/build/BUILD/xcompmgr-1.1.10/man'
/bin/sed -e 's|__vendorversion__|"xcompmgr 1.1.10" "X Version 11"|' -e 's|__xorgversion__|"xcompmgr 1.1.10" "X Version 11"|' -e 's|__xservername__|Xorg|g' -e 's|__xconfigfile__|xorg.conf|g' -e 's|__projectroot__|/usr|g' -e 's|__apploaddir__||g' -e 's|__appmansuffix__|1|g' -e 's|__drivermansuffix__|4|g' -e 's|__adminmansuffix__|8|g' -e 's|__libmansuffix__|3|g' -e 's|__miscmansuffix__|7|g' -e 's|__filemansuffix__|5|g' < xcompmgr.man > xcompmgr.1
make[2]: Leaving directory '/builddir/build/BUILD/xcompmgr-1.1.10/man'
make[2]: Entering directory '/builddir/build/BUILD/xcompmgr-1.1.10'
gcc -DHAVE_CONFIG_H -I. -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -c -o xcompmgr.o xcompmgr.c
xcompmgr.c: In function 'make_gaussian_map':
xcompmgr.c:396:22: warning: cast from function call of type 'double' to non-matching type 'int' [-Wbad-function-cast]
int size = ((int) ceil ((r * 3)) + 1) & ~1;
^
xcompmgr.c: In function 'main':
xcompmgr.c:2315:23: error: implicit declaration of function 'reallocarray'; did you mean 'realloc'? [-Werror=implicit-function-declaration]
expose_rects = reallocarray (old,
^~~~~~~~~~~~
realloc
xcompmgr.c:2315:23: warning: nested extern declaration of 'reallocarray' [-Wnested-externs]
xcompmgr.c:2315:21: warning: assignment to 'XRectangle *' {aka 'struct <anonymous> *'} from 'int' makes pointer from integer without a cast [-Wint-conversion]
expose_rects = reallocarray (old,
^
xcompmgr.c:2328:21: warning: assignment to 'XRectangle *' {aka 'struct <anonymous> *'} from 'int' makes pointer from integer without a cast [-Wint-conversion]
expose_rects = reallocarray (NULL, more,
^
cc1: some warnings being treated as errors
make[2]: Leaving directory '/builddir/build/BUILD/xcompmgr-1.1.10'
make[2]: *** [Makefile:474: xcompmgr.o] Error 1
make[1]: *** [Makefile:490: all-recursive] Error 1
make[1]: Leaving directory '/builddir/build/BUILD/xcompmgr-1.1.10'
make: *** [Makefile:356: all] Error 2