image-tests linking problem
Opened this issue · 2 comments
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'
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.
Thanks