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 KAA20273; Tue, 15 Oct 2002 10:08:28 +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 KAA20063 for ; Tue, 15 Oct 2002 10:08:27 +0200 (MET DST) Received: from mons.uio.no (mons.uio.no [129.240.130.14]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g9F88R518479 for ; Tue, 15 Oct 2002 10:08:27 +0200 (MET DST) Received: from itherther.simula.no ([129.240.228.187]) by mons.uio.no with esmtp (Exim 2.12 #7) id 181Mka-0000lI-00; Tue, 15 Oct 2002 10:08:24 +0200 Received: from hans by itherther.simula.no with local (Exim 3.36 #1) id 181Mka-0000xn-00; Tue, 15 Oct 2002 10:08:24 +0200 To: Gerd Stolpmann Cc: caml-list@inria.fr Subject: Re: [Caml-list] Problem with findlib and threads References: <3az4rbpm89e.fsf@itherther.simula.no> <20021014215927.GK1002@ice.gerd-stolpmann.de> From: Hans Ole Rafaelsen Date: 15 Oct 2002 10:08:24 +0200 In-Reply-To: <20021014215927.GK1002@ice.gerd-stolpmann.de> Message-ID: <3azy990f7k7.fsf@itherther.simula.no> User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk It did help. There was just a minor problem using -thread. It requires that a multitreaded version of the xmlrpc library is provided. Making a copy of xmlrpc.cma to xmlrpc_mt.cma and the same for the .cmxa and .a file, and then installing these files as part of xmlrpc package solved those problems. Thanks, Hans Ole Gerd Stolpmann writes: > > Maybe -thread is missing? Selecting the package "threads" without -thread does > not have any effect. > > > Linking a library with libraries does not work for native code. Btw, your approach > would also not work if ocaml had been configured for bytecode threads, because the > -thread option has a special effect in this case (selects a different version of the > standard library). This is why ocamlfind demands -thread always, even if the > ocaml compiler sometimes does not need it (when linking executables for POSIX threads). > > Simply follow the rule: Give both -thread and -package threads for compiling > and linking. > > I hope this helps, > > Gerd > > ------------------------------------------------------------ > Gerd Stolpmann * Viktoriastr. 45 * 64293 Darmstadt * Germany > gerd@gerd-stolpmann.de http://www.gerd-stolpmann.de > ------------------------------------------------------------ ------------------- 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