mail-archives/mono-list/2005-February/025689.html

121 строка
3.6 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-list] P/Invoke on amd64 was :Marshalling problems
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:james.fitzsimons%40gmail.com">
<META NAME="robots" CONTENT="index,nofollow">
<LINK REL="Previous" HREF="025687.html">
<LINK REL="Next" HREF="025690.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-list] P/Invoke on amd64 was :Marshalling problems
</H1>
<B>James Fitzsimons
</B>
<A HREF="mailto:james.fitzsimons%40gmail.com"
TITLE="[Mono-list] P/Invoke on amd64 was :Marshalling problems">james.fitzsimons@gmail.com
</A><BR>
<I>Sun, 13 Feb 2005 12:41:35 +0000</I>
<P><UL>
<LI> Previous message: <A HREF="025687.html">[Mono-list] P/Invoke on amd64 was :Marshalling problems
</A></li>
<LI> Next message: <A HREF="025690.html">[Mono-list] P/Invoke on amd64 was :Marshalling problems
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#25689">[ date ]</a>
<a href="thread.html#25689">[ thread ]</a>
<a href="subject.html#25689">[ subject ]</a>
<a href="author.html#25689">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>--=-MksUCtZHEQDzc7mUeMZ4
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
Hi Michal,
On Sun, 2005-02-13 at 11:48, Michal Moskal wrote:
&gt;<i> Ok, this one was stupid :-) glib uses dlopen to open the module and
</I>&gt;<i> the message seems to come from dlopen. Maybe you can try to write a
</I>&gt;<i> little C program that only dlopens libncurses.so and see if it works.
</I>
Ok. I just tried this:
#include &lt;stdio.h&gt;
#include &lt;dlfcn.h&gt;
int main(int argc, char **argv) {
void *handle;
char *error;
handle =3D dlopen (&quot;libncurses.so&quot;, RTLD_LAZY);
if (!handle) {
fprintf (stderr, &quot;%s\n&quot;, dlerror());
exit(1);
}
else {
fprintf (stdout, &quot;Opened libncurses successfully\n&quot;);
}
dlclose(handle);
return 0;
}
built with the following command:
<A HREF="mailto:james@athos">james@athos</A> src $ gcc -rdynamic -o dlopentest dlopentest.c -ldl
And result:
<A HREF="mailto:james@athos">james@athos</A> src $ ./dlopentest=20
Opened libncurses successfully
Humm.. seems to work. Unfortunately I am getting a bit out of my depth
here. I still have a lot to learn about Linux programming it would seem
;-)=20
I am following up on another theory as well to do with the version of
gcc used to build mono. I will let you know if that makes any
difference.
Cheers,
James
--=20
It's 5.50 a.m.... Do you know where your stack pointer is ?
--=-MksUCtZHEQDzc7mUeMZ4
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
iD8DBQBCD0r/tf4qL6AoafMRAlcxAKDNB6Gfm3k29QVGRQSwozePEjdI+ACg00NN
2pMsu9/4VrxdLbtz2VsuWdg=
=MJcB
-----END PGP SIGNATURE-----
--=-MksUCtZHEQDzc7mUeMZ4--
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI> Previous message: <A HREF="025687.html">[Mono-list] P/Invoke on amd64 was :Marshalling problems
</A></li>
<LI> Next message: <A HREF="025690.html">[Mono-list] P/Invoke on amd64 was :Marshalling problems
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#25689">[ date ]</a>
<a href="thread.html#25689">[ thread ]</a>
<a href="subject.html#25689">[ subject ]</a>
<a href="author.html#25689">[ author ]</a>
</LI>
</UL>
</body></html>