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 RAA06974; Tue, 29 Jul 2003 17:43:56 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id RAA24563 for ; Tue, 29 Jul 2003 17:43:54 +0200 (MET DST) Received: from aomori.annexia.org (annexia.force9.co.uk [212.56.101.183]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h6TFhsT09952 for ; Tue, 29 Jul 2003 17:43:54 +0200 (MET DST) Received: from rich by aomori.annexia.org with local (Exim 3.36 #1 (Debian)) id 19hWdd-00007F-00; Tue, 29 Jul 2003 16:43:45 +0100 Date: Tue, 29 Jul 2003 16:43:45 +0100 To: Jacques Garrigue Cc: caml-list@inria.fr Subject: Re: [Caml-list] Dynlink problems Message-ID: <20030729154345.GA32764@redhat.com> References: <20030728094918.GA19609@redhat.com> <005201c354f2$1f2df430$ca00a8c0@warp> <20030728174154.GA19639@redhat.com> <20030729174830D.garrigue@kurims.kyoto-u.ac.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030729174830D.garrigue@kurims.kyoto-u.ac.jp> User-Agent: Mutt/1.5.4i From: Richard Jones X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 dynlink:01 indicative:99 demonstrate:01 freshmeat:01 ltd:98 workaround:01 tar:01 business:96 library:03 configurable:03 perl:03 data:03 seems:05 shared:05 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk The problem seems to be that Dynlink simply doesn't work when called from code in a shared library (.so file). The first problem is that Dynlink.init () causes a nasty crash - it tries to open ("") and fails. This seems to be indicative of something Very Bad happening in Dynlink library. If I comment out the call to Dynlink.init (), then things just don't work either. Here is the smallest example I could make to demonstrate the failure: http://www.annexia.org/tmp/dynlink-failure.tar.gz *Please!* someone download this & tell me how to fix it. I spent much of yesterday night trying to workaround the problems. Rich. -- Richard Jones. http://www.annexia.org/ http://freshmeat.net/users/rwmj Merjis Ltd. http://www.merjis.com/ - all your business data are belong to you. NET::FTPSERVER is a full-featured, secure, configurable, database-backed FTP server written in Perl: http://www.annexia.org/freeware/netftpserver/ ------------------- 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