SuperDARN / rst

Radar Software Toolkit (RST)
https://superdarn.github.io/rst/
GNU General Public License v3.0
22 stars 18 forks source link

Bug invoked during RST installation on macOS (Ventura 13.2.1) #571

Open hjli1 opened 1 year ago

hjli1 commented 1 year ago

A bug invoked in process of make.code when aacgm module are compiled: " make.version /Users/huijunli/Tools/Python/rst/codebase/analysis/src.lib/aacgm/aacgm.1.15/src/.. make.hdr /Users/huijunli/Tools/Python/rst/codebase/analysis/src.lib/aacgm/aacgm.1.15/src/../include /Users/huijunli/Tools/Python/rst/include/analysis /Users/huijunli/Tools/Python/rst/codebase/analysis/src.lib/aacgm/aacgm.1.15/src/../include/aacgm.h /Users/huijunli/Tools/Python/rst/codebase/analysis/src.lib/aacgm/aacgm.1.15/src/../include/aacgm.h -> /Users/huijunli/Tools/Python/rst/include/analysis/aacgm.h cc -Wall -pedantic -O3 -D_GNU_SOURCE -D_DARWIN -I/opt/local/include -I/Users/huijunli/Tools/Python/rst/include/base -I/Users/huijunli/Tools/Python/rst/include/general -c math.c
math.c:45:33: error: implicitly declaring library function 'floor' with type 'double (double)' [-Werror,-Wimplicit-function-declaration] if (quotient >= 0) quotient = floor(quotient); ^ math.c:45:33: note: include the header or explicitly provide a declaration for 'floor' "

What's wrong with it?

RemingtonRohel commented 2 months ago

Looks like the math library might not be linked (see this stack exchange answer). The makefile might need to be modified with the inclusion of -lm after math.c to link the math library.