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

DM-45346: Fix C++ library build path issues on MacOS #14

Merged
merged 6 commits into from
Jul 22, 2024
Merged

Conversation

taranu
Copy link
Collaborator

@taranu taranu commented Jul 19, 2024

No description provided.

@taranu taranu force-pushed the tickets/DM-45346 branch from 094ce7f to 7ec07cf Compare July 20, 2024 00:16
Copy link

@mwittgen mwittgen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check the #ifndef sections. Doesn't look right to me.

@@ -7,6 +7,10 @@

#include "lsst/modelfit/parameters.h"

#ifndef pow10

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is supposed to define pow10 as macro?
Is there some missing header like math.h?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK. pow10 is removed in glibc 2.17 from math.h and is also a GNU extension
https://man7.org/linux/man-pages/man3/pow10.3.html
This still seems wrong to define it when the convenience macro is not defined.
Maybe just replace it with pow

taranu added 3 commits July 22, 2024 11:48
pow10 is a deprecated GNU addition and unavailable on most platforms.
@taranu taranu force-pushed the tickets/DM-45346 branch from 7ec07cf to 0da18ed Compare July 22, 2024 15:49
@taranu taranu merged commit a933e95 into main Jul 22, 2024
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants