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

image-tests linking problem #41

Open
juhp opened this issue Jan 29, 2016 · 2 comments
Open

image-tests linking problem #41

juhp opened this issue Jan 29, 2016 · 2 comments

Comments

@juhp
Copy link

juhp commented Jan 29, 2016

imagemagick-0.0.4.1 finally built in Stackage nightly but the testsuite failed like this:

Linking dist/build/image-tests/image-tests ...
/tmp/stackage-build8/imagemagick-0.0.4.1/dist/build/libHSimagemagick-0.0.4.1-FuIgQnFJ9vWFVxsc6rF2GR.a(WandImage.o):(.text+0x775a): undefined reference to `MagickOptimizeImageTransparency'

juhp added a commit to commercialhaskell/stackage that referenced this issue Jan 29, 2016
@qnikst
Copy link
Owner

qnikst commented Jan 29, 2016

Thanks for the report! Seems that I should not allow older imagemagick library (that is installed on stackage), because it does not export all needed symbols. I'll take another look and see if it's possible to conditionally export those functions, and disable tests that need that functionality if imagemagick is too old.

Another option will be to move bindings to foreign import capi, then all those errors will be possible to catch during compile time.

Latter one seems better option, but this will mean that imagemagick will be out of stackage for about a week or so.

@juhp
Copy link
Author

juhp commented Jan 29, 2016

Thanks

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