[MacPorts] #68377: libsdl2 2.28.4_0 fails to build on Sonoma with use of undeclared identifier 'kIOMainPortDefault'

MacPorts noreply at macports.org
Sat Oct 7 13:29:45 UTC 2023


#68377: libsdl2 2.28.4_0 fails to build on Sonoma with use  of undeclared
identifier 'kIOMainPortDefault'
--------------------+---------------------
 Reporter:  mseri   |      Owner:  (none)
     Type:  defect  |     Status:  new
 Priority:  Normal  |  Milestone:
Component:  ports   |    Version:  2.8.1
 Keywords:          |       Port:  libsdl2
--------------------+---------------------
 The relevant part of the error seems to be
 {{{
 :info:build libtool: compile:  /usr/bin/clang -pipe -Os
 -isysroot/Library/Developer/CommandLineTools/SD
 Ks/MacOSX.sdk -arch x86_64 -I/opt/local/include
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOS
 X.sdk -DUSING_GENERATED_CONFIG_H -Iinclude
 -I/opt/local/var/macports/build/_opt_local_var_macports_sour
 ces_rsync.macports.org_macports_release_tarballs_ports_devel_libsdl2/libsdl2/work/SDL2-2.28.4/include
 -
 idirafter
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_rel
 ease_tarballs_ports_devel_libsdl2/libsdl2/work/SDL2-2.28.4/src/video/khronos
 -DSDL_BUILD_MAJOR_VERSION=
 2 -DSDL_BUILD_MINOR_VERSION=28 -DSDL_BUILD_MICRO_VERSION=4 -mmmx -m3dnow
 -msse -msse2 -msse3 -Wall -Wno
 -unused-local-typedefs -fno-strict-aliasing -DTARGET_API_MAC_CARBON
 -DTARGET_API_MAC_OSX -fobjc-arc -fv
 isibility=hidden -Wno-error=deprecated-declarations -Wdeclaration-after-
 statement -Werror=declaration-a
 fter-statement -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11 -D_THREAD_SAFE
 -fobjc-weak -Wno-unused-command-li
 ne-argument -MMD -MT build/controller_type.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.28.4/src/j
 oystick/controller_type.c  -fno-common -DPIC -o
 build/.libs/controller_type.o
 :info:build
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_r
 elease_tarballs_ports_devel_libsdl2/libsdl2/work/SDL2-2.28.4/src/hidapi/SDL_hidapi.c:261:72:
 error: use
  of undeclared identifier 'kIOMainPortDefault'
 :info:build     SDL_HIDAPI_discovery.m_notificationPort =
 IONotificationPortCreate(kIOMainPortDefault);
 :info:build
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/68377>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list