зеркало из https://github.com/mono/mail-archives.git
121 строка
3.6 KiB
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:
|
|
><i> Ok, this one was stupid :-) glib uses dlopen to open the module and
|
|
</I>><i> the message seems to come from dlopen. Maybe you can try to write a
|
|
</I>><i> little C program that only dlopens libncurses.so and see if it works.
|
|
</I>
|
|
Ok. I just tried this:
|
|
#include <stdio.h>
|
|
#include <dlfcn.h>
|
|
|
|
int main(int argc, char **argv) {
|
|
void *handle;
|
|
char *error;
|
|
|
|
handle =3D dlopen ("libncurses.so", RTLD_LAZY);
|
|
if (!handle) {
|
|
fprintf (stderr, "%s\n", dlerror());
|
|
exit(1);
|
|
}
|
|
else {
|
|
fprintf (stdout, "Opened libncurses successfully\n");
|
|
}
|
|
|
|
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>
|