From: Bjorn B. <d00...@dt...> - 2005-03-22 09:35:33
|
Robert van Herk wrote: > However, when I do ghci -package hsql, I get: > Loading package base ... linking ... done. > Loading package hsql ... ghc-6.2.2: can't load .so/.DLL for: c=20 > (/usr/lib/libc.so: invalid ELF header) I belive you are the second person in the world to see this error. If=20 you Google for it, all you get is a log of me asking about it in the=20 #haskell irc channel. The problem is that for some reason, on some=20 machines mysql-config reports that it needs -lc. This means that=20 /usr/lib/ghc-6.2.2/package.conf will have "c" in extra_libraries, which=20 means that ghci will try to load libc.so. This is completely redundant,=20 and causes the error above. The simplest solution is to hand-edit=20 package.conf after installing HSQL and remove "c" from extra_libraries=20 in the hsql section. We should probably put a fix for this in the=20 configure script. /Bj=F6rn |