[MacPorts] #56541: rubberband @1.8.2 error: use of undeclared identifier 'vvfabsf'; did you mean 'vvfabf'?
MacPorts
noreply at macports.org
Sun May 27 02:36:43 UTC 2018
#56541: rubberband @1.8.2 error: use of undeclared identifier 'vvfabsf'; did you
mean 'vvfabf'?
---------------------------------------+------------------------
Reporter: kencu | Owner: ryandesign
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: snowleopard leopard tiger | Port: rubberband
---------------------------------------+------------------------
On the upgrade of rubberband on 10.6.8, this error arises:
{{{
In file included from src/RubberBandStretcher.cpp:24:
In file included from src/StretcherImpl.h:29:
In file included from src/dsp/Window.h:32:
src/system/VectorOps.h:683:5: error: use of undeclared identifier
'vvfabsf'; did you mean 'vvfabf'?
vvfabsf(tmp, dst, &count);
^~~~~~~
vvfabf
/System/Library/Frameworks/vecLib.framework/Headers/vForce.h:104:6: note:
'vvfabf' declared here
void vvfabf (float * /* y */, const float * /* x */, const int * /* n */)
AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER;
}}}
In the relevant file `src/system/VectorOps.h` is this guard, which is not
written correctly:
{{{
#if (defined(MACOSX_DEPLOYMENT_TARGET) && MACOSX_DEPLOYMENT_TARGET <= 1070
&& MAC_OS_X_VERSION_MIN_REQUIRED <= 1070)
vvfabf(tmp, dst, &count);
#else
vvfabsf(tmp, dst, &count);
#endif
}}}
MACOSX_DEPLOYMENT_TARGET would be 10.6 or some similar number. Now 10.6
certainly is <= 1070, but still the test fails to function correctly.
Changing it to just this fixes it:
{{{
#if (MAC_OS_X_VERSION_MIN_REQUIRED <= 1070)
vvfabf(tmp, dst, &count);
#else
vvfabsf(tmp, dst, &count);
#endif
}}}
and in the end:
{{{
$ port -v installed rubberband
The following ports are currently installed:
rubberband @1.8.2_0 (active) platform='darwin 10' archs='x86_64'
date='2018-05-26T19:24:34-0700'
}}}
--
Ticket URL: <https://trac.macports.org/ticket/56541>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list