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 MAA12849; Sun, 8 Sep 2002 12:07:52 +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 MAA12746 for ; Sun, 8 Sep 2002 12:07:51 +0200 (MET DST) Received: from smtp1.libero.it (smtp1.libero.it [193.70.192.51]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g88A7p901000 for ; Sun, 8 Sep 2002 12:07:51 +0200 (MET DST) Received: from dalamar.takhisis.org (62.98.126.104) by smtp1.libero.it (6.5.028) id 3D6B8BC4004F2BD1 for caml-list@inria.fr; Sun, 8 Sep 2002 12:07:50 +0200 Received: from lordsoth.takhisis.org (lordsoth.takhisis.org [192.168.1.119]) by dalamar.takhisis.org (8.12.6/8.12.6/Debian-2) with ESMTP id g88A7lVv005063 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=FAIL) for ; Sun, 8 Sep 2002 12:07:48 +0200 Received: from lordsoth.takhisis.org (lordsoth.takhisis.org [192.168.1.119]) by lordsoth.takhisis.org (8.12.6/8.12.6/Debian-2) with ESMTP id g88A7kQQ009973 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Sun, 8 Sep 2002 12:07:46 +0200 Received: (from zack@localhost) by lordsoth.takhisis.org (8.12.6/8.12.6/Debian-2) id g88A7kt0009971 for caml-list@inria.fr; Sun, 8 Sep 2002 12:07:46 +0200 Date: Sun, 8 Sep 2002 12:07:46 +0200 From: Stefano Zacchiroli To: Ocaml Subject: Re: [Caml-list] Linking problem Message-ID: <20020908100746.GA9958@cs.unibo.it> Mail-Followup-To: Ocaml References: <3D7A9961.80304@baretta.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3D7A9961.80304@baretta.com> User-Agent: Mutt/1.4i Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Sun, Sep 08, 2002 at 02:27:13AM +0200, Alessandro Baretta wrote: > This is very strange. I have not passed ocamlfind the > -custom option. So why is it attempting to build a > custom-linked bytecode executable? The '-custom' switch is some time implied, for example it is implied when you (or some library you are using) are trying to link statically with some C code. Cfr Chapter 8 of ocaml manual: -custom Link in ``custom runtime'' mode. In the default linking mode, the linker produces bytecode that is intended to be executed with the shared runtime system, ocamlrun. In the custom runtime mode, the linker produces an output file that contains both the runtime system and the bytecode for the program. The resulting file is larger, but it can be executed directly, even if the ocamlrun command is not installed. Moreover, the ``custom runtime'' mode enables static linking of Caml code with user-defined C functions, as described in chapter 18. Are you linking against some C code that need to be statically linked? If this is not the case it is strange because AFAIK pxp doesn't use any C code and pcre ships a regular shared object; so I was expecting to be able to build a pure-bytecode executable ... Anyway I tried to build a sample test against pcre and I was unable to create a pure-bytecode executable even using "-noautolink" option. Am I missing something? Cheers. -- Stefano Zacchiroli - undergraduate student of CS @ Univ. Bologna, Italy zack@cs.unibo.it | ICQ# 33538863 | http://www.cs.unibo.it/~zacchiro "I know you believe you understood what you think I said, but I am not sure you realize that what you heard is not what I meant!" -- G.Romney ------------------- 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