Re: [wxhaskell-users] RE: [Haskell] Dynamically loading wxhaskell?

2004-04-15 Thread Daan Leijen
On Wed, 14 Apr 2004 09:37:02 +0100, Simon Marlow [EMAIL PROTECTED] wrote: What error messages do you get, specifically? Here it is: --- Loading package data ... linking ... done. Loading package wxcore ... ghc-6.2.1: can't load .so/.DLL for: wxc-gtk2.4.2-0.7

RE: [Haskell] Dynamically loading wxhaskell?

2004-04-14 Thread Simon Marlow
On Tue, Apr 13, 2004 at 03:53:31PM +0100, Simon Marlow wrote: I tried stripping /usr/lib/libwx_gtk-2.4.so.0.1.1 and libwxc-0.6.so, and GHCi was still able to load the wx package successfully. In fact, libwx_gtk appeared to be already stripped. What error messages do you get,

Re: [wxhaskell-users] RE: [Haskell] Dynamically loading wxhaskell?

2004-04-14 Thread Andres Loeh
That is probably the problem. I did not see all messages of this thread, but one should indeed use --with-opengl on wxHaskell configure if wxWidgets was build with --with-opengl. Unfortunately, due to wxWidgets changes, I can not automatically detect the need for this flag, but I promise

Re: [Haskell] Dynamically loading wxhaskell?

2004-04-14 Thread Dylan Thurston
On Wed, Apr 14, 2004 at 09:37:02AM +0100, Simon Marlow wrote: ... That symbol looks suspiciously like it comes from the separate OpenGL parts of WX, which reside in a separate library (/usr/lib/libwx_gtk_gl-2.4.so here). On my system, libwxc has an explicit dependency on libwx_gtk_gl, because

RE: [Haskell] Dynamically loading wxhaskell?

2004-04-13 Thread Simon Marlow
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

RE: [Haskell] Dynamically loading wxhaskell?

2004-04-13 Thread Simon Marlow
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

Re: [Haskell] Dynamically loading wxhaskell?

2004-04-13 Thread Dylan Thurston
On Tue, Apr 13, 2004 at 03:53:31PM +0100, Simon Marlow wrote: I tried stripping /usr/lib/libwx_gtk-2.4.so.0.1.1 and libwxc-0.6.so, and GHCi was still able to load the wx package successfully. In fact, libwx_gtk appeared to be already stripped. What error messages do you get, specifically?

Re: [Haskell] Dynamically loading wxhaskell?

2004-04-03 Thread Dylan Thurston
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.

RE: [Haskell] Dynamically loading wxhaskell?

2004-04-02 Thread Simon Marlow
On Thu, Apr 01, 2004 at 10:00:23AM +0100, Simon Marlow wrote: Has anyone succeeded in getting wxhaskell to work under ghci on Linux? On my system, I get an error message Loading package unix ... ghc-6.2: can't load .so/.DLL for: dl (libdl.so: cannot open shared object