From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id UAA16411; Wed, 28 Apr 2004 20:43:21 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id UAA16400 for ; Wed, 28 Apr 2004 20:43:20 +0200 (MET DST) X-SPAM-Warning: Sending machine is listed in blackholes.five-ten-sg.com Received: from pendor.localdomain (user-0cdfhfr.cable.mindspring.com [24.215.197.251]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i3SIhJYM012867 for ; Wed, 28 Apr 2004 20:43:20 +0200 Received: by pendor.localdomain (Postfix, from userid 48) id 8A7798B832D; Wed, 28 Apr 2004 14:43:18 -0400 (EDT) Received: from 141.155.88.179 (SquirrelMail authenticated user yminsky) by minsky-primus.homeip.net with HTTP; Wed, 28 Apr 2004 14:43:18 -0400 (EDT) Message-ID: <40551.141.155.88.179.1083177798.squirrel@minsky-primus.homeip.net> Date: Wed, 28 Apr 2004 14:43:18 -0400 (EDT) Subject: [Caml-list] Byte code and dynamic linking of C libraries From: "Yaron Minsky" To: caml-list@inria.fr User-Agent: SquirrelMail/1.4.0-1 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 X-Priority: 3 Importance: Normal X-Miltered: at concorde by Joe's j-chkmail ("http://j-chkmail.ensmp.fr")! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; yaron:01 minsky:01 yminsky:01 cornell:01 dynamically:01 statically:01 dlopen:01 dlclose:01 segfault:01 yaron:01 minsky:01 cornell:01 yminsky:01 keyid:01 linked:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk I've got some code that dynamically links in a C library. The code works just fine when I compile to native code, but blows up when I compile to bytecode. Just to be clear, the dynamic linking I'm doing happens entirely on the C side: I've got a c library that is linked in statically, and the dlopen and dlclose calls all happen within that C library. When I try this trick in bytecode, I get a segfault. So, any ideas as to what I need to do to make dynamic linking and byte code to play nicely together? Yaron |--------/ Yaron M. Minsky \--------| |--------\ http://www.cs.cornell.edu/home/yminsky/ /--------| Open PGP --- KeyID B1FFD916 Fingerprint: 5BF6 83E1 0CE3 1043 95D8 F8D5 9F12 B3A9 B1FF D916 ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners