[Haskell] Dynamically loading wxhaskell?

Dylan Thurston dpt at lotus.bostoncoop.net
Sat Apr 3 09:30:44 EST 2004


On Fri, Apr 02, 2004 at 01:59:08PM +0100, Simon Marlow wrote:
> Very strange.  Is /usr/lib/libdl.so perhaps a symlink to a library that
> doesn't exist?  That could happen if an upgrade had gone wrong, perhaps.

Thanks, it was a dangling symlink due to my filesystem layout.  Sorry
for the stupidity.

But it still won't run, because (apparently) ghci won't work with
stripped .so files, and Debian policy is to strip them.  From the
Debian policy manual, section 10.2:

     All installed shared libraries should be stripped with
          strip --strip-unneeded <your-lib>
     (The option `--strip-unneeded' makes `strip' remove only the symbols
     which aren't needed for relocation processing.) Shared libraries can
     function perfectly well when stripped, since the symbols for dynamic
     linking are in a separate part of the ELF object file.[1]

[1]  You might also want to use the options `--remove-section=.comment' and
     `--remove-section=.note' on both shared libraries and executables, and
     `--strip-debug' on static libraries.

Any chance of fixing this in ghci, or do I have to keep an extra copy
of wxwidgets installed?  What tool does ghci use for its dynamic
loading?

Peace,
	Dylan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://www.haskell.org//pipermail/glasgow-haskell-users/attachments/20040403/963880b7/attachment.bin


More information about the Glasgow-haskell-users mailing list