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

hsgclosure.c will not compile under MinGW64 #193

Closed
PaulJohnson opened this issue Sep 25, 2018 · 3 comments
Closed

hsgclosure.c will not compile under MinGW64 #193

PaulJohnson opened this issue Sep 25, 2018 · 3 comments

Comments

@PaulJohnson
Copy link
Contributor

I'm using haskell-gi-base-0.21.2. It compiles fine under Linux, but when I try to compile it on Windows using MinGW64 I get an error message (see attached log file):

\hsgclosure.c:29:36:
error: 'PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP' undeclared here (not in a function); did you mean 'PTHREAD_RECURSIVE_MUTEX_INITIALIZER'?

haskell-gi-base-0.21.2.log

@garetxe
Copy link
Collaborator

garetxe commented Sep 25, 2018

Thanks for the report!

Could you please check whether commit 45a057e (that is, current git HEAD) fixes the issue for you?

To try, you can checkout git HEAD, and do

$ cabal new-build haskell-gi-base

If it works for you I will release a new version with the fix as soon as possible to hackage.

@PaulJohnson
Copy link
Contributor Author

I confirm this now compiles for me under both Linux (Fedora) and Windows 10.

Thanks.

@garetxe
Copy link
Collaborator

garetxe commented Sep 26, 2018

Great, thanks for checking.

I have published haskell-gi-base-0.21.3 to hackage with the fix, so I am closing this issue. Please feel free to reopen if there is any issue.

@garetxe garetxe closed this as completed Sep 26, 2018
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