Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation crash on macOS: include the header <math.h> or explicitly provide a declaration for 'finite' #27

Closed
infantesainz opened this issue Aug 10, 2022 · 0 comments

Comments

@infantesainz
Copy link

When trying to install Source-extractor 2.25.0 on macOs Monterey 12.3 with AppleClang 13.1.6.13160021, it crashes complaining about not having a definition of 'finite':

./lmbc_core.c:324:13: note: include the header <math.h> or explicitly provide a declaration for 'finite'

Apparently this function has been deprecated on macOS and now it is named 'isfinite'. I have been able to fix this problem and successfully install it by manually replacing

define LM_FINITE finite

by

define LM_FINITE isfinite

in the file src/levmar/compiler.h.

It would be great if for the next releases this issue can be fixed. Thanks a lot in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants