[MacPorts] #64655: libsdl2 @2.0.0 fails to build on 10.5.8: #error SDL for Mac OS X must be built with a 10.6 SDK or above

MacPorts noreply at macports.org
Sun Feb 13 06:13:08 UTC 2022


#64655: libsdl2 @2.0.0 fails to build on 10.5.8: #error SDL for Mac OS X must be
built with a 10.6 SDK or above
---------------------------+------------------------------
  Reporter:  barracuda156  |      Owner:  (none)
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.7.1
Resolution:                |   Keywords:  powerpc, leopard
      Port:  libsdl2       |
---------------------------+------------------------------

Comment (by barracuda156):

 Ok so I installed a vanilla 10.6 SDK from Xcode 3.2.6 (that is, a standard
 10.6 SDK), added these lines to `macports.conf`:

 {{{
 macosx_deployment_target 10.5
 macosx_sdk_version 10.6
 }}}

 Which made the compiler find correct SDK, however the build still failed:


 {{{
 L2-2.0.0/src/SDL_error.c:95: error: expected expression before 'const'
 /opt/local/var/macports/build/_opt_PPCLeopardPorts_devel_libsdl2/libsdl2/work/SDL2-2.0.0/src/SDL_error.c:95:
 warning: initialization makes pointer from integer without a cast
 /opt/local/var/macports/build/_opt_PPCLeopardPorts_devel_libsdl2/libsdl2/work/SDL2-2.0.0/src/SDL_error.c:111:
 warning: implicit declaration of function 'va_end'
 make: *** [build/SDL_error.lo] Error 1
 make: *** Waiting for unfinished jobs....
 }}}

 Any suggestions how to fix that? Since port file contains no restriction,
 apparently it was building for Leopard.

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


More information about the macports-tickets mailing list