[MacPorts] #70616: fastfetch: bluetooth* modules fail to build on 10.8–10.10: error: type arguments cannot be applied to non-parameterized class 'NSArray'
MacPorts
noreply at macports.org
Sun Aug 25 07:15:26 UTC 2024
#70616: fastfetch: bluetooth* modules fail to build on 10.8–10.10: error: type
arguments cannot be applied to non-parameterized class 'NSArray'
-----------------------------------------------+-----------------------
Reporter: barracuda156 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.10.1
Keywords: mountainlion, mavericks, yosemite | Port: fastfetch
-----------------------------------------------+-----------------------
{{{
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_sysutils_fastfetch/fastfetch/work/fastfetch-2.21.3/src/detection/dns/dns_linux.c
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_sysutils_fastfetch/fastfetch/work/fastfetch-2.21.3/src/detection/bluetooth/bluetooth_apple.m:/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_sysutils_fastfetch/fastfetch/work/fastfetch-2.21.3/src/detection/bluetoothradio/bluetoothradio_apple.m:7:5:
error: type arguments cannot be applied to non-parameterized class
'NSArray'
7 | NSArray<IOBluetoothDevice*>* ioDevices =
IOBluetoothDevice.pairedDevices;
| ^ ~~~~~~~~~~~~~~~~~~~~
13:5: error: type arguments cannot be applied to non-parameterized class
'NSArray'
13 | NSArray<IOBluetoothHostController*>* ctrls =
IOBluetoothHostController.controllers;
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_sysutils_fastfetch/fastfetch/work/fastfetch-2.21.3/src/detection/bluetoothradio/bluetoothradio_apple.m:55:27:
error: no visible @interface for 'NSString' declares the selector
'containsString:'
55 | if ([services containsString:@" LEA "])
| ~~~~~~~~ ^~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_sysutils_fastfetch/fastfetch/work/fastfetch-2.21.3/src/detection/bluetoothradio/bluetoothradio_apple.m:57:32:
error: no visible @interface for 'NSString' declares the selector
'containsString:'
57 | else if ([services containsString:@" GATT "])
| ~~~~~~~~ ^~~~~~~~~~~~~~
3 errors generated.
make[2]: ***
[CMakeFiles/libfastfetch.dir/src/detection/bluetoothradio/bluetoothradio_apple.m.o]
Error 1
make[2]: *** Waiting for unfinished jobs....
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_sysutils_fastfetch/fastfetch/work/fastfetch-2.21.3/src/detection/bluetooth/bluetooth_apple.m:70:22:
error: use of undeclared identifier 'kBluetoothDeviceClassMajorToy'; did
you mean 'kBluetoothDeviceClassMajoToy'?
70 | case kBluetoothDeviceClassMajorToy:
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| kBluetoothDeviceClassMajoToy
/System/Library/Frameworks/IOBluetooth.framework/Headers/BluetoothAssignedNumbers.h:157:2:
note: 'kBluetoothDeviceClassMajoToy' declared here
157 | kBluetoothDeviceClassMajoToy
= 0x08, // [01000] Toy
| ^
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_sysutils_fastfetch/fastfetch/work/fastfetch-2.21.3/src/detection/bluetooth/bluetooth_apple.m:73:22:
error: use of undeclared identifier 'kBluetoothDeviceClassMajorHealth';
did you mean 'kBluetoothDeviceClassMajoHealth'?
73 | case kBluetoothDeviceClassMajorHealth:
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| kBluetoothDeviceClassMajoHealth
/System/Library/Frameworks/IOBluetooth.framework/Headers/BluetoothAssignedNumbers.h:158:2:
note: 'kBluetoothDeviceClassMajoHealth' declared here
158 | kBluetoothDeviceClassMajoHealth
= 0x09, // [01001] Health devices
| ^
3 errors generated.
make[2]: ***
[CMakeFiles/libfastfetch.dir/src/detection/bluetooth/bluetooth_apple.m.o]
Error 1
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_sysutils_fastfetch/fastfetch/work/fastfetch-2.21.3/src/detection/cursor/cursor_apple.m:24:40:
error: no known class method for selector
'dictionaryWithContentsOfURL:error:'
24 | NSDictionary* dict = [NSDictionary
dictionaryWithContentsOfURL:[NSURL URLWithString:fileName]
|
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
25 | error:&error];
| ~~~~~
1 error generated.
make[2]: ***
[CMakeFiles/libfastfetch.dir/src/detection/cursor/cursor_apple.m.o] Error
1
}}}
https://build.macports.org/builders/ports-10.8_x86_64-builder/builds/188185/steps
/install-port/logs/stdio
https://build.macports.org/builders/ports-10.9_x86_64-builder/builds/287798/steps
/install-port/logs/stdio
https://build.macports.org/builders/ports-10.10_x86_64-builder/builds/280452/steps
/install-port/logs/stdio
--
Ticket URL: <https://trac.macports.org/ticket/70616>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list