<div dir="ltr">I'm trying to use SDL-mixer v0.6.1. When I add a dependency to my cabal file<br>and run cabal repl I get the following error:<br><br>Loading package SDL-mixer-0.6.1 ... <command line>: can't load .so/.DLL for:<br>/home/prf/haskell/link-problem/.cabal-sandbox/lib/x86_64-linux-ghc-7.8.3/SDL-mi<br>xer-0.6.1/<a href="http://libHSSDL-mixer-0.6.1-ghc7.8.3.so">libHSSDL-mixer-0.6.1-ghc7.8.3.so</a> (/home/prf/haskell/link-problem/.cab<br>al-sandbox/lib/x86_64-linux-ghc-7.8.3/SDL-mixer-0.6.1/libHSSDL-mixer-0.6.1-ghc7<br>.<a href="http://8.3.so">8.3.so</a>: undefined symbol: Mix_FreeChunk)<br><br>I can see these undefined symbols when I run:<br>nm -D SDL-mixer-0.6.1/<a href="http://libHSSDL-mixer-0.6.1-ghc7.8.3.so">libHSSDL-mixer-0.6.1-ghc7.8.3.so</a> | grep Free<br>U Mix_FreeChunk<br>U Mix_FreeMusic<br>    <br>Running ldd on this file and grepping for SDL gives<br><a href="http://libHSSDL-0.6.5-ghc7.8.3.so">libHSSDL-0.6.5-ghc7.8.3.so</a> => /home/prf/haskell/link-problem/.cabal-sandbox/lib<br>/x86_64-linux-ghc-7.8.3/SDL-0.6.5/<a href="http://libHSSDL-0.6.5-ghc7.8.3.so">libHSSDL-0.6.5-ghc7.8.3.so</a> (0x00007fb20b30600<br>0)<br>libSDL-1.2.so.0 => /usr/lib64/libSDL-1.2.so.0 (0x00007fb20a232000)<br><br>It seems like a dependency to /usr/lib64/libSDL_mixer.so is missing.<br><br>Line 1815 of SDL-mixer-0.6.1/configure contains the following definition of<br>SDL_LIBS:<br>    SDL_LIBS="-L`$SDL_CONFIG --prefix`/lib -lSDL_mixer"<br><br>This refers to the 32 bit lib directory, but I'm on a 64 bit system. I<br>unpacked SDL-mixer and changed this line to refer to the 64 bit lib directory.<br>Next I recreated my cabal sandbox from scratch and added the patched version<br>of SDL-mixer as a dependency.<br>When I run cabal repl again I get the same error as mentioned above.<br><br>What am I doing wrong?<br>How do I get SDL-mixer to build against /usr/lib64/libSDL_mixer.so?<br><br>Thanks,<br>Peter<br></div>