[MacPorts] #71003: source-extractor @2.28.0: error: call to undeclared library function 'finite' (was: install source-extractor)

MacPorts noreply at macports.org
Tue Oct 1 21:35:41 UTC 2024


#71003: source-extractor @2.28.0: error: call to undeclared library function
'finite'
-------------------------------+----------------------
  Reporter:  cantiello         |      Owner:  lpsinger
      Type:  defect            |     Status:  assigned
  Priority:  Normal            |  Milestone:
 Component:  ports             |    Version:  2.10.1
Resolution:                    |   Keywords:  arm64
      Port:  source-extractor  |
-------------------------------+----------------------
Changes (by ryandesign):

 * version:   => 2.10.1


Comment:

 Yup, same problem we see:

 {{{
 In file included from lm.c:81:
 ./lm_core.c:206:7: error: call to undeclared library function 'finite'
 with type 'int (double)'; ISO C99 and later do not support implicit
 function declarations [-Wimplicit-function-declaration]
   if(!LM_FINITE(p_eL2)) stop=7;
       ^
 ./compiler.h:63:19: note: expanded from macro 'LM_FINITE'
 #define LM_FINITE finite // ICC, GCC
                   ^
 ./lm_core.c:206:7: note: include the header <math.h> or explicitly provide
 a declaration for 'finite'
 ./compiler.h:63:19: note: expanded from macro 'LM_FINITE'
 #define LM_FINITE finite // ICC, GCC
                   ^
 In file included from lmbc.c:84:
 ./lmbc_core.c:324:13: error: call to undeclared library function 'finite'
 with type 'int (double)'; ISO C99 and later do not support implicit
 function declarations [-Wimplicit-function-declaration]
               if (!LM_FINITE(fpls)) {
                    ^
 ./compiler.h:63:19: note: expanded from macro 'LM_FINITE'
 #define LM_FINITE finite // ICC, GCC
                   ^
 ./lmbc_core.c:324:13: note: include the header <math.h> or explicitly
 provide a declaration for 'finite'
 ./compiler.h:63:19: note: expanded from macro 'LM_FINITE'
 #define LM_FINITE finite // ICC, GCC
                   ^
 1 error generated.
 1 error generated.
 }}}

 This was also filed upstream as
 https://github.com/astromatic/sextractor/issues/24 and again as
 https://github.com/astromatic/sextractor/issues/27. `finite` became
 obsolete in 1999 and is not included on Apple Silicon systems. The code
 needs to be changed to use `isfinite` instead. This was done in
 https://github.com/astromatic/sextractor/commit/ced65570cb5b7073361dbf2c3c60631c3f54d0f9
 so we could backport that patch.

-- 
Ticket URL: <https://trac.macports.org/ticket/71003#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list