#68377 closed defect (invalid)

libsdl2 2.28.4_0 fails to build on Sonoma with use of undeclared identifier 'kIOMainPortDefault'

Reported by: mseri (Marcello Seri) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: sonoma Cc:
Port: libsdl2

Description

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

Attachments (1)

main.log (636.3 KB) - added by mseri (Marcello Seri) 13 months ago.
main.log

Download all attachments as: .zip

Change History (5)

Changed 13 months ago by mseri (Marcello Seri)

Attachment: main.log added

main.log

comment:1 Changed 13 months ago by cjones051073 (Chris Jones)

Keywords: sonoma added

comment:2 Changed 13 months ago by jmroot (Joshua Root)

:debug:sysinfo Xcode none, CLT none

Looks like you need to fix your CLT receipt: ProblemHotlist#reinstall-clt

comment:3 Changed 13 months ago by mseri (Marcello Seri)

Thanks, that worked. I am quite surprised that libsdl2 was the only failing package.

I'll keep that sysinfo line in mind for future triaging before submitting a ticket!

Last edited 13 months ago by mseri (Marcello Seri) (previous) (diff)

comment:4 Changed 13 months ago by jmroot (Joshua Root)

Resolution: invalid
Status: newclosed

Good to hear it's working for you now.

Note: See TracTickets for help on using tickets.