[MacPorts] #71649: xorg-server-legacy fails to build with mesa @24.3.2: error: redefinition of typedef 'GLsync'
MacPorts
noreply at macports.org
Thu Dec 26 22:25:27 UTC 2024
#71649: xorg-server-legacy fails to build with mesa @24.3.2: error: redefinition of
typedef 'GLsync'
---------------------------------------+--------------------
Reporter: barracuda156 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.10.5
Resolution: | Keywords:
Port: xorg-server-legacy, mesa |
---------------------------------------+--------------------
Comment (by barracuda156):
In turn, with gcc14 it fails on:
{{{
libtool: compile: /opt/local/bin/gcc-mp-14 -DHAVE_CONFIG_H -I.
-I../include -isystem/opt/local/include/LegacySupport -I/opt/local/include
-DHAVE_DIX_CONFIG_H -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 -fno-strict-aliasing
-D_DEFAULT_SOURCE -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT
-I/opt/local/include/pixman-1 -I/opt/local/include/freetype2
-I/opt/local/include/libpng16 -I../include -I../include -I../Xext
-I../damageext -I../xfixes -I../Xi -I../mi -I../miext/sync
-I../miext/shadow -I../miext/damage -I../render -I../randr -I../fb
-I../dbe -I../present -pipe -Os -arch ppc -D_THREAD_SAFE -pthread
-DROOTLESS_WORKAROUND -DROOTLESS_SAFEALPHA -DNO_ALLOCA -MT render.lo -MD
-MP -MF .deps/render.Tpo -c render.c -fno-common -DPIC -o .libs/render.o
picture.c: In function 'CreateSolidPicture':
picture.c:876:26: error: array subscript 'union _SourcePict[0]' is partly
outside array bounds of 'unsigned char[16]' [-Werror=array-bounds=]
876 | pPicture->pSourcePict->type = SourcePictTypeSolidFill;
| ^~
picture.c:870:45: note: object of size 16 allocated by 'malloc'
870 | pPicture->pSourcePict = (SourcePictPtr)
malloc(sizeof(PictSolidFill));
|
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
picture.c: In function 'CreateLinearGradientPicture':
picture.c:908:26: error: array subscript 'union _SourcePict[0]' is partly
outside array bounds of 'unsigned char[28]' [-Werror=array-bounds=]
908 | pPicture->pSourcePict->linear.type = SourcePictTypeLinear;
| ^~
picture.c:901:45: note: object of size 28 allocated by 'malloc'
901 | pPicture->pSourcePict = (SourcePictPtr)
malloc(sizeof(PictLinearGradient));
|
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
picture.c: In function 'CreateConicalGradientPicture':
picture.c:991:26: error: array subscript 'union _SourcePict[0]' is partly
outside array bounds of 'unsigned char[24]' [-Werror=array-bounds=]
991 | pPicture->pSourcePict->conical.type = SourcePictTypeConical;
| ^~
picture.c:984:45: note: object of size 24 allocated by 'malloc'
984 | pPicture->pSourcePict = (SourcePictPtr)
malloc(sizeof(PictConicalGradient));
|
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[1]: *** [picture.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/opt/local/var/macports/build
/_opt_PPCSnowLeopardPorts_x11_xorg-server-legacy/xorg-server-legacy/work
/xorg-server-16f52e51a203bdb90de5d94478aa9bca4e9c2e67/render'
make: *** [all-recursive] Error 1
make: Leaving directory `/opt/local/var/macports/build
/_opt_PPCSnowLeopardPorts_x11_xorg-server-legacy/xorg-server-legacy/work
/xorg-server-16f52e51a203bdb90de5d94478aa9bca4e9c2e67'
Command failed: cd "/opt/local/var/macports/build
/_opt_PPCSnowLeopardPorts_x11_xorg-server-legacy/xorg-server-legacy/work
/xorg-server-16f52e51a203bdb90de5d94478aa9bca4e9c2e67" && /usr/bin/make
-j6 -w all V=1
Exit code: 2
}}}
--
Ticket URL: <https://trac.macports.org/ticket/71649#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list