Re: [Haskell] Announce: Yi 0.2.0 released

Hello, The following happened to Johannes Waldmann as trying to run yi, which embeds the GHC api to dynamically load code.
waldmann@afa:~> yi yi: can't load .so/.DLL for: pthread (/usr/lib/libpthread.so: invalid ELF header)
The error doesn't happen on my system (ubuntu feisty); despite my
having the exact same /usr/lib/libpthread.so
Does anyone have a clue?
Cheers,
JP.
On 5/18/07, Johannes Waldmann
Hello.
I tried to build yi. It lists "gtk" as prerequisite but the package is actually called "gtk2hs" (but it provides gtk?)
Then compile works fine, but on starting "yi" I get
waldmann@afa:~> yi yi: can't load .so/.DLL for: pthread (/usr/lib/libpthread.so: invalid ELF header)
and indeed:
waldmann@afa:~> cat /usr/lib/libpthread.so /* GNU ld script Use the shared library, but some functions are only in the static library, so try that secondarily. */ OUTPUT_FORMAT(elf32-i386) GROUP ( /lib/libpthread.so.0 /usr/lib/libpthread_nonshared.a )

Jean-Philippe Bernardy wrote:
The following happened to Johannes Waldmann as trying to run yi, which embeds the GHC api to dynamically load code.
waldmann@afa:~> yi yi: can't load .so/.DLL for: pthread (/usr/lib/libpthread.so: invalid ELF header)
The error doesn't happen on my system (ubuntu feisty); despite my having the exact same /usr/lib/libpthread.so
/usr/lib/libpthread.so is usually a linker script, i.e. a small text file with instructions for the linker, rather than an ELF shared object. It looks like the dynamic linker is choking on it in your case, I don't know why. This is really out of our hands; we just pass the filename of the .so to the system linker via dlopen(), so perhaps your version of ld.so can't handle linker scripts? Cheers, Simon

On 18/05/2007, at 16:27, Jean-Philippe Bernardy wrote:
Hello,
The following happened to Johannes Waldmann as trying to run yi, which embeds the GHC api to dynamically load code.
waldmann@afa:~> yi yi: can't load .so/.DLL for: pthread (/usr/lib/libpthread.so: invalid ELF header)
The error doesn't happen on my system (ubuntu feisty); despite my having the exact same /usr/lib/libpthread.so
What platform is Johannes Waldmann on? This looks like a problem on the gtk2hs side in Os X that we have been tracking at: http://haskell.org/gtk2hs/archives/2005/11/10/getting-started-with- cairo/#comments Btw, Gregory, the guy who takes care of Haskell related MacPorts, is already working on a fixed gtk2hs port. Cheers pepe
participants (3)
-
Jean-Philippe Bernardy
-
Pepe Iborra
-
Simon Marlow