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
Sun Nov 18 11:00:20 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):

 OK, the

 {{{
 typedef struct __GLXscreen __GLXscreen;
 }}}

 can be easily guarded, because the C header file with its previous
 `typedef` also `#define`s `_GLX_screens_h_`. So we come further, Frank N.:

 {{{
 /bin/sh ../../../libtool  --tag=CC   --mode=link /usr/bin/gcc-4.2
 -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 -Werror=implicit -Werror=nonnull -Werror=init-
 self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror
 =return-type -Werror=trigraphs -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 -std=c99 -faltivec -arch ppc -D_THREAD_SAFE
 -pthread -DROOTLESS_WORKAROUND -DROOTLESS_SAFEALPHA -DNO_ALLOCA
 -Wl,-framework,CoreServices -L/opt/local/lib
 -Wl,-headerpad_max_install_names -arch ppc -o Xquartz stub.o launchd_fd.o
 mach_startupUser.o  -lm
 libtool: link: /usr/bin/gcc-4.2 -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 -Werror=implicit
 -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces
 -Werror=sequence-point -Werror=return-type -Werror=trigraphs -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 -std=c99 -faltivec -arch ppc
 -D_THREAD_SAFE -pthread -DROOTLESS_WORKAROUND -DROOTLESS_SAFEALPHA
 -DNO_ALLOCA -Wl,-framework -Wl,CoreServices
 -Wl,-headerpad_max_install_names -arch ppc -o Xquartz stub.o launchd_fd.o
 mach_startupUser.o  -L/opt/local/lib -lm -pthread
 /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I../../../include  -I./..
 -DBUILD_DATE=\"20181118\" -DXSERVER_VERSION=\"1.20.1\"
 -DX11BINDIR=\"/opt/local/bin\" -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 -Werror=implicit
 -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces
 -Werror=sequence-point -Werror=return-type -Werror=trigraphs -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 -std=c99 -faltivec -arch ppc
 -D_THREAD_SAFE -pthread -DROOTLESS_WORKAROUND -DROOTLESS_SAFEALPHA
 -DNO_ALLOCA -c -o bundle-main.o bundle-main.c
 bundle-main.c:98: error: expected declaration specifiers or „...“ before
 string constant
 bundle-main.c:98: warning: data definition has no type or storage class
 bundle-main.c:98: warning: type defaults to „int“ in declaration of „asm“
 bundle-main.c:98: warning: function declaration isn“t a prototype
 bundle-main.c: In function „checkin_or_register“:
 bundle-main.c:176: warning: „bootstrap_register“ is deprecated (declared
 at /usr/include/servers/bootstrap.h:268)
 make[4]: *** [bundle-main.o] Error 1
 make[4]: 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/mach-startup'
 make[3]: *** [all] Error 2
 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/mach-startup'
 make[2]: *** [all-recursive] Error 1
 make[2]: 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'
 make[1]: *** [all-recursive] Error 1
 make[1]: 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'
 make: *** [all-recursive] Error 1
 make: 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'
 Command failed:  cd
 "/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" && /usr/bin/make -w all V=1
 }}}

 The block of code,

 {{{
    91   static char __crashreporter_info_buff__[4096] = { 0 };
    92   static const char *__crashreporter_info__
 __attribute__((__used__)) =
    93       &__crashreporter_info_buff__[0];
    94   #if MAC_OS_X_VERSION_MIN_REQUIRED >= 1050
    95   // This is actually a toolchain requirement, but I'm not sure the
 correct check,
    96   // but it should be fine to just only include it for Leopard and
 later.  This line
    97   // just tells the linker to never strip this symbol (such as for
 space optimization)
    98   asm (".desc ___crashreporter_info__, 0x10");
    99   #endif
 }}}

 can be solved by leaving it to Snow Leopard or some modern macOS version,
 as previously done.

-- 
Ticket URL: <https://trac.macports.org/ticket/57333#comment:10>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list