Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macOS serial.c issue when compiling #66

Open
ambanmba opened this issue Feb 25, 2022 · 3 comments
Open

macOS serial.c issue when compiling #66

ambanmba opened this issue Feb 25, 2022 · 3 comments

Comments

@ambanmba
Copy link

serial.c:443:54: error: 'kIOMasterPortDefault' is deprecated: first deprecated in macOS 12.0 [-Werror,-Wdeprecated-declarations]
    kern_return_t ret = IOServiceGetMatchingServices(kIOMasterPortDefault,
                                                     ^~~~~~~~~~~~~~~~~~~~
                                                     kIOMainPortDefault
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOKitLib.h:123:19: note: 'kIOMasterPortDefault' has been explicitly marked deprecated here
const mach_port_t kIOMasterPortDefault
                  ^
1 error generated.
make: *** [serial.o] Error 1

@keisisqrl
Copy link
Contributor

I sent a pull request with a fix, it's available from my fork as branch fix-io-main.

@dbrianhendrix
Copy link

I'm running macOS 13 and still getting the following error:

❯ make
cc -g -O -Wall -Werror -DVERSION='"1.1.245"' -I/opt/local/include/libusb-1.0 -c -o main.o main.c
cc -g -O -Wall -Werror -DVERSION='"1.1.245"' -I/opt/local/include/libusb-1.0 -c -o util.o util.c
cc -g -O -Wall -Werror -DVERSION='"1.1.245"' -I/opt/local/include/libusb-1.0 -c -o radio.o radio.c
cc -g -O -Wall -Werror -DVERSION='"1.1.245"' -I/opt/local/include/libusb-1.0 -c -o dfu-libusb.o dfu-libusb.c
cc -g -O -Wall -Werror -DVERSION='"1.1.245"' -I/opt/local/include/libusb-1.0 -c -o uv380.o uv380.c
cc -g -O -Wall -Werror -DVERSION='"1.1.245"' -I/opt/local/include/libusb-1.0 -c -o md380.o md380.c
cc -g -O -Wall -Werror -DVERSION='"1.1.245"' -I/opt/local/include/libusb-1.0 -c -o rd5r.o rd5r.c
cc -g -O -Wall -Werror -DVERSION='"1.1.245"' -I/opt/local/include/libusb-1.0 -c -o gd77.o gd77.c
cc -g -O -Wall -Werror -DVERSION='"1.1.245"' -I/opt/local/include/libusb-1.0 -c -o hid.o hid.c
cc -g -O -Wall -Werror -DVERSION='"1.1.245"' -I/opt/local/include/libusb-1.0 -c -o serial.o serial.c
serial.c:443:54: error: 'kIOMasterPortDefault' is deprecated: first deprecated in macOS 12.0 [-Werror,-Wdeprecated-declarations]
kern_return_t ret = IOServiceGetMatchingServices(kIOMasterPortDefault,
^~~~~~~~~~~~~~~~~~~~
kIOMainPortDefault
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOKitLib.h:133:19: note: 'kIOMasterPortDefault' has been explicitly marked deprecated here
const mach_port_t kIOMasterPortDefault
^
1 error generated.
make: *** [serial.o] Error 1

@wp4nuv
Copy link

wp4nuv commented Mar 20, 2023

I can confirm the error on Ventura 13.2.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants