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 PAA26024; Fri, 22 Feb 2002 15:48:41 +0100 (MET) 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 PAA26410 for ; Fri, 22 Feb 2002 15:48:40 +0100 (MET) Received: from fichte.ai.univie.ac.at (fichte.ai.univie.ac.at [131.130.174.156]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g1MEmdv01074 for ; Fri, 22 Feb 2002 15:48:39 +0100 (MET) Received: from chopin.ai.univie.ac.at (root@chopin.ai.univie.ac.at [131.130.174.170]) by fichte.ai.univie.ac.at (8.9.3/8.9.3/Debian 8.9.3-21) with ESMTP id PAA19411; Fri, 22 Feb 2002 15:48:39 +0100 Received: (from markus@localhost) by chopin.ai.univie.ac.at (8.9.3/8.9.3/Debian 8.9.3-21) id PAA25081; Fri, 22 Feb 2002 15:48:39 +0100 Date: Fri, 22 Feb 2002 15:48:39 +0100 From: Markus Mottl To: Johann Spies Cc: OCAML Subject: Re: [Caml-list] Problem using pcre on Debian Message-ID: <20020222144839.GA22822@chopin.ai.univie.ac.at> Mail-Followup-To: Johann Spies , OCAML References: <20020222104452.GA24020@adept.co.za> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020222104452.GA24020@adept.co.za> User-Agent: Mutt/1.3.26i Organization: Austrian Research Institute for Artificial Intelligence Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Fri, 22 Feb 2002, Johann Spies wrote: > The compilation went without a problem after I removed the comment to > use STATIC=1 in the Makefile. I also copied META to the installation > directory. What is the particular problem that prevents you from compiling the PCRE as a shared library? > Now when try to use it in the toplevel the following happens: > ------------------------------------- > $ ledit ocaml > Objective Caml version 3.04 [snip] > # #require "pcre";; > Loading /usr/local/lib/ocaml/pcre/pcre.cma > The external function `pcre_exec_wrapper_bc' is not available This is quite natural: since you haven't compiled the PCRE as a shared library, the toplevel assumes that every object it needs for it is already linked statically. This, however, is not the case: you'll have to create a new toplevel and link it with the PCRE-library then. Regards, Markus Mottl -- Markus Mottl markus@oefai.at Austrian Research Institute for Artificial Intelligence http://www.oefai.at/~markus ------------------- 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