[Mono-list] P/Invoke on amd64 was :Marshalling problems

Peter Dennis Bartok peter@novonyx.com
Sun, 13 Feb 2005 11:27:44 -0700

> Ok, just tried this and when I run the program I get the following
> output:
> james@athos src $ ./a.out
> error: /usr/lib/libncurses.so: invalid ELF header

> So, it appears you are right and the problem is with gmodule? So, I
> guess the next question is do you know how I can fix this?

In the message a few posts back you listed ncurses in /lib64:
> james@athos 07-pinvoke $ file -k /lib64/libncurses.so.5.4
> /lib64/libncurses.so.5.4: ELF 64-bit LSB shared object, AMD x86-64,
> version 1 (SYSV), stripped

The faillure is reported on a version in /usr/lib, though.

See if specifying the path to the 64 bit version when doing g_module_open 
will let you open it.