[MacPorts] #52811: mesa @12.0.1_1 fails to build on Leopard i386

MacPorts noreply at macports.org
Sat Nov 5 05:44:33 CET 2016


#52811: mesa @12.0.1_1 fails to build on Leopard i386
---------------------+------------------------------
  Reporter:  arboz   |      Owner:  jeremyhu
      Type:  defect  |     Status:  assigned
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:  2.3.4
Resolution:          |   Keywords:  leopard haspatch
      Port:  mesa    |
---------------------+------------------------------

Comment (by ken-cunningham-webuse):

 same error on 10.7 x86_64
 {{{
         /bin/sh ../../libtool  --tag=CC   --mode=compile /usr/bin/clang
 -DPACKAGE_NAME=\"Mesa\" -DPACKAGE_TARNAME=\"mesa\"
 -DPACKAGE_VERSION=\"12.0.1\" -DPACKAGE_STRING=\"Mesa\ 12.0.1\"
 -DPACKAGE_BUGREPORT=\"https://bugs.freedesktop.org/enter_bug.cgi\?product=Mesa\"
 -DPACKAGE_URL=\"\" -DPACKAGE=\"mesa\" -DVERSION=\"12.0.1\"
 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1
 -DLT_OBJDIR=\".libs/\" -DYYTEXT_POINTER=1 -DHAVE___BUILTIN_BSWAP32=1
 -DHAVE___BUILTIN_BSWAP64=1 -DHAVE___BUILTIN_CLZ=1 -DHAVE___BUILTIN_CLZLL=1
 -DHAVE___BUILTIN_CTZ=1 -DHAVE___BUILTIN_EXPECT=1 -DHAVE___BUILTIN_FFS=1
 -DHAVE___BUILTIN_FFSLL=1 -DHAVE___BUILTIN_POPCOUNT=1
 -DHAVE___BUILTIN_POPCOUNTLL=1 -DHAVE___BUILTIN_UNREACHABLE=1
 -DHAVE_FUNC_ATTRIBUTE_CONST=1 -DHAVE_FUNC_ATTRIBUTE_FORMAT=1
 -DHAVE_FUNC_ATTRIBUTE_MALLOC=1 -DHAVE_FUNC_ATTRIBUTE_PACKED=1
 -DHAVE_FUNC_ATTRIBUTE_PURE=1 -DHAVE_FUNC_ATTRIBUTE_UNUSED=1
 -DHAVE_FUNC_ATTRIBUTE_WARN_UNUSED_RESULT=1 -DHAVE_FUNC_ATTRIBUTE_WEAK=1
 -DHAVE_DLADDR=1 -DHAVE_PTHREAD_PRIO_INHERIT=1 -DHAVE_PTHREAD=1
 -DHAVE_SHA1_IN_COMMONCRYPTO=1 -I.    -I../../include
 -I../../include/GL/internal -I../../src -I../../src/loader
 -I../../src/mapi -I../../src/mapi/glapi -I../../src/mapi
 -I../../src/mapi/glapi -fvisibility=hidden -DGLX_SHARED_GLAPI
 -DXF86VIDMODE -D_REENTRANT -DDEFAULT_DRIVER_DIR=\"/opt/local/lib/dri\"
 -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -DUSE_SSE41 -DNDEBUG
 -DHAVE_XLOCALE_H -DHAVE_SYS_SYSCTL_H -DHAVE_STRTOF -DHAVE_DLOPEN
 -DHAVE_POSIX_MEMALIGN -DHAVE_SHA1 -DGLX_USE_APPLEGL
 -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DGLX_ALIAS_UNSUPPORTED
 -DBUILDING_MESA -DMESA_EGL_NO_X11_HEADERS   -I/opt/local/include
 -I/opt/local/include  -DGL_LIB_NAME=\"libGL.so.1\" -pipe -Os -arch x86_64
 -Wall -std=c99 -Werror=implicit-function-declaration -Werror=missing-
 prototypes -fno-strict-aliasing -fno-math-errno -fno-trapping-math -fno-
 builtin-memcmp -Qunused-arguments  -MT glxconfig.lo -MD -MP -MF
 $depbase.Tpo -c -o glxconfig.lo glxconfig.c &&\
         mv -f $depbase.Tpo $depbase.Plo
 In file included from glxcmds.c:57:
 ../../include/GL/mesa_glinterop.h:61:26: error: redefinition of typedef
 'Display' is invalid in C [-Wtypedef-redefinition]
 typedef struct _XDisplay Display;

                          ^
 /opt/local/include/X11/Xlib.h:487:26: note: previous definition is here
 typedef struct _XDisplay Display;
                          ^
 In file included from glxcmds.c:57:
 ../../include/GL/mesa_glinterop.h:62:33: error: redefinition of typedef
 'GLXContext' is invalid in C [-Wtypedef-redefinition]
 typedef struct __GLXcontextRec *GLXContext;
                                 ^
 ../../include/GL/glx.h:165:33: note: previous definition is here
 typedef struct __GLXcontextRec *GLXContext;

 }}}

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



More information about the macports-tickets mailing list