[MacPorts] #58767: libsdl2 build failure
MacPorts
noreply at macports.org
Mon Jul 29 12:17:02 UTC 2019
#58767: libsdl2 build failure
------------------------+---------------------
Reporter: dyne2meter | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: | Port: libsdl2
------------------------+---------------------
libsdl2 fails build on mac os 10.11.6 with the following
{{{
:info:build
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libsdl2/libsdl2/work/SDL2-2.0.10/src/video/cocoa/SDL_cocoawindow.m:1119:52:
error: use of undeclared identifier 'NSEventSubtypeMouseEvent'
:info:build const BOOL istrackpad = ([theEvent subtype] ==
NSEventSubtypeMouseEvent);
:info:build ^
:info:build
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libsdl2/libsdl2/work/SDL2-2.0.10/src/video/cocoa/SDL_cocoawindow.m:1164:52:
error: use of undeclared identifier 'NSEventSubtypeMouseEvent'
:info:build const BOOL istrackpad = ([theEvent subtype] ==
NSEventSubtypeMouseEvent);
:info:build ^
:info:build 2 errors generated.
:info:build make: *** [build/SDL_cocoawindow.lo] Error 1
:info:build make: *** Waiting for unfinished jobs....
:info:build libtool: compile: /usr/bin/clang -pipe -Os -arch x86_64
-I/opt/local/include -DUSING_GENERATED_CONFIG_H -Iinclude
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libsdl2/libsdl2/work/SDL2-2.0.10/include
-idirafter
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libsdl2/libsdl2/work/SDL2-2.0.10/src/video/khronos
-mmmx -m3dnow -msse -msse2 -msse3 -Wall -fno-strict-aliasing
-DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden
-Wdeclaration-after-statement -Werror=declaration-after-statement
-D_THREAD_SAFE
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libsdl2/libsdl2/work/SDL2-2.0.10/src/hidapi/hidapi
-MMD -MT build/SDL_render_metal.lo -c
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libsdl2/libsdl2/work/SDL2-2.0.10/src/render/metal/SDL_render_metal.m
-o build/SDL_render_metal.o >/dev/null 2>&1
:info:build make: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libsdl2/libsdl2/work/SDL2-2.0.10'
:info:build Command failed: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libsdl2/libsdl2/work/SDL2-2.0.10"
&& /usr/bin/make -j2 -w all V=1
:info:build Exit code: 2
:error:build Failed to build libsdl2: command execution failed
:debug:build Error code: CHILDSTATUS 32064 2
:debug:build Backtrace: command execution failed
:debug:build while executing
:debug:build "system {*}$notty {*}$nice $fullcmdstring"
:debug:build invoked from within
:debug:build "command_exec build"
:debug:build (procedure "portbuild::build_main" line 8)
:debug:build invoked from within
:debug:build "$procedure $targetname"
:error:build See
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libsdl2/libsdl2/main.log
for details.
}}}
This looks like a Cocoa class introduced only in systems subsequent to El
Capitan. If there isn't a way to fix this for legacy systems, they are
going to lose ffmpeg, and then, audacity.
--
Ticket URL: <https://trac.macports.org/ticket/58767>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list