[MacPorts] #65629: SDRangel @7.6.0_0: error: use of undeclared identifier 'aligned_alloc'; did you mean 'aligned_malloc'? (was: SDRangel 7.6.0_0 upgrade failure on OSX 10.13.6)
MacPorts
noreply at macports.org
Wed Aug 10 02:10:18 UTC 2022
#65629: SDRangel @7.6.0_0: error: use of undeclared identifier 'aligned_alloc'; did
you mean 'aligned_malloc'?
-----------------------+------------------------
Reporter: rufty | Owner: ra1nb0w
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords: highsierra
Port: SDRangel |
-----------------------+------------------------
Changes (by ryandesign):
* keywords: => highsierra
Comment:
I found many other projects with this error. As far as I can tell,
`aligned_alloc` is for C code (C11 and later) while `std::aligned_alloc`
is for C++ code (C++17 and later). This file being compiled here is C++
code so perhaps it should be using `std::aligned_alloc` instead of
`aligned_alloc`. The port succeeded building on macOS 10.15 and later;
maybe later versions of clang are more relaxed about this distinction or
maybe the default C language mode is newer in newer version of clang.
--
Ticket URL: <https://trac.macports.org/ticket/65629#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list