[MacPorts] #53042: gnuradio @3.7.10.1_1 install fails on Snow Leopard due to undeclared long long math prototypes - and fix
MacPorts
noreply at macports.org
Fri Dec 9 21:10:08 CET 2016
#53042: gnuradio @3.7.10.1_1 install fails on Snow Leopard due to undeclared long
long math prototypes - and fix
-------------------------+----------------------
Reporter: kencu | Owner:
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: snowleopard | Port: gnuradio
-------------------------+----------------------
building gnuradio on 10.6.8 hits a pause when certain long long math
prototypes are not found, like this:
{{{
error: use of undeclared identifier 'llrintf'
}}}
the problem appears to be due to several missing long long math prototypes
previously identified and fixed by Jeremy in other ports (like clang-3.8).
See [ticket:52130] and
<https://github.com/jeremyhu/libcxx/commit/720feba4874d4ca3131753dc31af127e3c509c36>.
Indeed, adding in that same block of missing prototypes from Jeremy's
libcxx github commit fixes the current gnuradio and the build proceeds
successfully and gnuradio appears to run.
The block should have gone into this file:
{{{
gnuradio-3.7.10.1/gnuradio-runtime/include/gnuradio/math.h
}}}
but for some reason that didn't work immediately for me. Might have been
something stupid on my end, like pasting it in but not writing to disk
before I compiled again.
Anyway, I stuck it here
{{{
gnuradio-3.7.10.1/gr-blocks/lib/float_array_to_int.cc
}}}
and it worked fine. Haven't hooked it up to a radio yet, but the windows
open and the waterfall and other displays come up.
Thanks for gnuradio. My ham license should be more fun with some of those
new USB radios to play with.
I might be the only person on earth who cares to run gnuradio on 10.6.8.
Do you want a patch and some further fiddling to to see if the math.h fix
can be made to work correctly, or should we just leave this on trac for
interested persons to find?
--
Ticket URL: <https://trac.macports.org/ticket/53042>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list