On 10/30/24 10:52, Fungal-net wrote:

I get the following error trying to build version 21.1.4
same build dependencies used for 21.1.3 (4/13/24) but different versions
gcc 14.2.1+r134
glibc 2.40+r16
binutils 2.43+r4
libtool 2.5.3

arch linux like system without systemd

../xorg-server/os/access.c: In function ‘siHostnameAddrMatch’:
../xorg-server/os/access.c:1873:27: error: assignment to ‘const char **’ from 
incompatible pointer type ‘char **’ [-Wincompatible-pointer-types]
1873 | for (addrlist = hp->h_addr_list; *addrlist; addrlist++)
| ^


The easy fix is to stop disabling IPv6 support when building Xorg.

But yes, it appears we also should have backported the fix for this issue that
gcc 14 has made an error:
https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1572

Thank you, yes I do recall there was a problem some months ago build Xwayland 
and although a fix was found the next release didn't include it but a later rc 
did.
So I will be patient,  if an option is provided it should be functional, I am 
sure you agree.  If it wasn't there would have been dirty hacking intervention 
which we don't want.

It was functional for many years (almost two decades), but was broken by
gcc 14 raising several issues from warnings to errors.  Until the next 21.1.x
release you should also be able to add "-Wno-error=incompatible-pointer-types"
to your CFLAGS to bypass this if you must build with IPv6 disabled using gcc 14.

--
        -Alan Coopersmith-                 alan.coopersm...@oracle.com
         Oracle Solaris Engineering - https://blogs.oracle.com/solaris

Reply via email to