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

MacPorts noreply at macports.org
Thu Nov 3 05:29:24 CET 2016


#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



More information about the macports-tickets mailing list