[MacPorts] #52811: mesa @12.0.1_1 fails to build on Leopard i386
#52811: mesa @12.0.1_1 fails to build on Leopard i386 ------------------------------+-------------------------------- Reporter: arboz | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Keywords: leopard haspatch | Port: mesa ------------------------------+-------------------------------- compile fails with this error {{{ In file included from glxcmds.c:57: ../../include/GL/mesa_glinterop.h:62: error: redefinition of typedef 'GLXContext' ../../include/GL/glx.h:165: error: previous declaration of 'GLXContext' was here make[4]: *** [glxcmds.lo] Error 1 }}} include/GL/mesa_glinterop.h has a block where it appears that glx.h is not expected to be included {{{ /* Forward declarations to avoid inclusion of GL/glx.h */ typedef struct _XDisplay Display; typedef struct __GLXcontextRec *GLXContext; }}} However it will be included if Apple GL headers are used so, I patched it there to stop the double reference it seemed logical to test for definition of {{{ #ifndef APPLE_GLX_CONTEXT_H }}} Then it built and installed for me {{{ ---> Activating mesa @12.0.1_1+osmesa+python27 }}} -- Ticket URL: <https://trac.macports.org/ticket/52811> MacPorts <https://www.macports.org/> Ports system for macOS
#52811: mesa @12.0.1_1 fails to build on Leopard i386 ---------------------+-------------------------------- Reporter: arboz | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: leopard haspatch Port: mesa | ---------------------+-------------------------------- Changes (by arboz): * Attachment "patch-include-GL-mesa_glinterop_h.diff" added. Patch to avoid duplicate declaration of 'GLXContext' error -- Ticket URL: <https://trac.macports.org/ticket/52811> MacPorts <https://www.macports.org/> Ports system for macOS
#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 | ---------------------+------------------------------ Changes (by ryandesign): * owner: macports-tickets@… => jeremyhu * cc: jeremyhu@…, openmaintainer@… (removed) * status: new => assigned -- Ticket URL: <https://trac.macports.org/ticket/52811#comment:1> MacPorts <https://www.macports.org/> Ports system for macOS
#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
participants (1)
-
MacPorts