Re: [MacPorts] #57333: xorg-server-devel @1.20.1 does not build on Mac OS X 10.5.8, Leopard, because of redefinition of typedef ‘CARD32’
MacPorts
noreply at macports.org
Tue Oct 9 22:43:40 UTC 2018
#57333: xorg-server-devel @1.20.1 does not build on Mac OS X 10.5.8, Leopard,
because of redefinition of typedef ‘CARD32’
--------------------------------+----------------------
Reporter: ballapete | Owner: jeremyhu
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.5.4
Resolution: | Keywords: leopard
Port: xorg-server-devel |
--------------------------------+----------------------
Comment (by ballapete):
With GCC6 this problem stops compilation:
{{{
source='X11Application.m' object='X11Application.lo' libtool=yes \
DEPDIR=.deps depmode=none /bin/sh ../../depcomp \
/bin/sh ../../libtool --mode=compile /opt/local/bin/gcc-mp-6
-DHAVE_CONFIG_H -I. -I../../include -DBUILD_DATE=\"20181010\"
-DXSERVER_VERSION=\"1.20.1\" -DINXQUARTZ -DUSE_NEW_CLUT -DXFree86Server
-I../../miext/rootless -I../../pseudoramiX -DX11LIBDIR=\"/opt/local/lib\"
-I/opt/local/include -I/usr/include
-I/opt/local/var/macports/sources/nue.de.rsync.macports.org/macports/release/tarballs/ports/x11
/xorg-server-devel/files/dri
-F/System/Library/Frameworks/ApplicationServices.framework/Frameworks
-I/opt/local/var/macports/sources/nue.de.rsync.macports.org/macports/release/tarballs/ports/x11
/xorg-server-devel/files/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 -m32 -D_THREAD_SAFE
-pthread -DROOTLESS_WORKAROUND -DROOTLESS_SAFEALPHA -DNO_ALLOCA -c -o
X11Application.lo X11Application.m
libtool: compile: /opt/local/bin/gcc-mp-6 -DHAVE_CONFIG_H -I.
-I../../include -DBUILD_DATE=\"20181010\" -DXSERVER_VERSION=\"1.20.1\"
-DINXQUARTZ -DUSE_NEW_CLUT -DXFree86Server -I../../miext/rootless
-I../../pseudoramiX -DX11LIBDIR=\"/opt/local/lib\" -I/opt/local/include
-I/usr/include
-I/opt/local/var/macports/sources/nue.de.rsync.macports.org/macports/release/tarballs/ports/x11
/xorg-server-devel/files/dri
-F/System/Library/Frameworks/ApplicationServices.framework/Frameworks
-I/opt/local/var/macports/sources/nue.de.rsync.macports.org/macports/release/tarballs/ports/x11
/xorg-server-devel/files/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 -m32 -D_THREAD_SAFE
-pthread -DROOTLESS_WORKAROUND -DROOTLESS_SAFEALPHA -DNO_ALLOCA -c
X11Application.m -fno-common -DPIC -o .libs/X11Application.o
In file included from X11Controller.h:41:0,
from X11Application.h:36,
from X11Application.m:39:
xpr/x-list.h:51:10: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'void'
X_EXTERN void X_PFX(list_free_1) (x_list * node);
^~~~
xpr/x-list.h:48:18: error: unknown type name '__private_extern__'
#define X_EXTERN __private_extern__
^
xpr/x-list.h:48:18: note: in definition of macro 'X_EXTERN'
#define X_EXTERN __private_extern__
^~~~~~~~~~~~~~~~~~
xpr/x-list.h:52:17: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
X_EXTERN x_list *X_PFX(list_prepend) (x_list * lst, void *data);
^
}}}
These are not all lines with error reports. They are all from the same
sort, except for the end:
{{{
xpr/x-list.h:75:17: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
X_EXTERN x_list *X_PFX(list_sort) (x_list * lst,
^
X11Application.m:99:12: warning: redundant redeclaration of
'darwinFakeButtons' [-Wredundant-decls]
extern int darwinFakeButtons;
^~~~~~~~~~~~~~~~~
In file included from X11Application.m:41:0:
darwin.h:68:12: note: previous declaration of 'darwinFakeButtons' was here
extern int darwinFakeButtons;
^~~~~~~~~~~~~~~~~
X11Application.m: In function '-[X11Application sendEvent:]':
X11Application.m:285:25: warning: 'X11Application' may not respond to
'-_setKeyWindow:'
[self _setKeyWindow:nil];
^
X11Application.m:285:25: warning: (Messages without a matching method
signature
X11Application.m:285:25: warning: will be assumed to return 'id' and
accept
X11Application.m:285:25: warning: '...' as arguments.)
X11Application.m:289:21: warning: ISO C90 forbids mixed declarations and
code [-Wdeclaration-after-statement]
NSWindow *mainWindow = [self mainWindow];
^~~~~~~~
X11Application.m:291:25: warning: 'X11Application' may not respond to
'-_setMainWindow:'
[self _setMainWindow:nil];
^
X11Application.m:433:17: warning: 'X11Application' may not respond to
'-set_front_process:'
[self set_front_process:nil];
^
X11Application.m: In function 'X11ApplicationCanEnterRandR':
X11Application.m:1092:5: warning: non-ASCII character in CFString literal
[--CLASSPATH]
msg = NSLocalizedString(
^~~
make[3]: *** [X11Application.lo] Error 1
make[3]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports
.org_macports_release_tarballs_ports_x11_xorg-server-devel/xorg-server-
devel/work/xorg-server-devel-1.20.1/hw/xquartz'
}}}
--
Ticket URL: <https://trac.macports.org/ticket/57333#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list