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

do not define mutex_R multiple times #6

Merged
merged 1 commit into from
Feb 1, 2020
Merged

Conversation

spotrh
Copy link
Contributor

@spotrh spotrh commented Feb 1, 2020

preprocessCore stopped building from source in Fedora rawhide as a result of moving to GCC 10. GCC 10 sets -fno-common by default, which means that variables with the same name should not be defined in multiple places in a combined code base.

In preprocessCore, "mutex_R" is defined in several places. This pull request removes the mutex_R definition from every .c file (except qnorm.c), creates a common.h which has an extern definition of mutex_R, and then #includes the common.h in all of the .c files where mutex_R was removed.

I have tested this locally and confirm that this fix resolves the build failure.

@bmbolstad bmbolstad merged commit 0030a88 into bmbolstad:master Feb 1, 2020
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.

None yet

2 participants