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 PAA26964; Fri, 22 Feb 2002 15:57:18 +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 PAA26940 for ; Fri, 22 Feb 2002 15:57:17 +0100 (MET) Received: from mel-rto4.wanadoo.fr (smtp-out-4.wanadoo.fr [193.252.19.23]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g1MEvHv01275 for ; Fri, 22 Feb 2002 15:57:17 +0100 (MET) Received: from mel-rta5.wanadoo.fr (193.252.19.122) by mel-rto4.wanadoo.fr; 22 Feb 2002 15:57:16 +0100 Received: from debian (80.8.74.77) by mel-rta5.wanadoo.fr; 22 Feb 2002 15:56:51 +0100 Received: from moi by debian with local (Exim 3.34 #1 (Debian)) id 16eH8I-00044a-00 for ; Fri, 22 Feb 2002 15:57:10 +0100 To: caml-list@inria.fr Subject: Re: [Caml-list] Problem using pcre on Debian References: <20020222104452.GA24020@adept.co.za> <87u1s9n481.dlv@wanadoo.fr> <20020222140847.GD24228@adept.co.za> From: Remi VANICAT Date: 22 Feb 2002 15:57:09 +0100 In-Reply-To: <20020222140847.GD24228@adept.co.za> Message-ID: <87bsehmunu.dlv@wanadoo.fr> User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Johann Spies writes: > On Fri, Feb 22, 2002 at 12:30:38PM +0100, Remi VANICAT wrote: > > > Which ocaml debian package are your using ? if you are using 3.04-9 > > Yes I am using 3.04-9. > > > the you have to make (as root) > > ocaml-ldconf -a /usr/local/lib/ocaml/pcre/ > > > > to add the dll support for pcre. (this will work only in there is > > a *.so file in the /usr/local/lib/ocaml/pcre/ directory.) > > :( There is no .so file. I could not compile it with dynamic > linking. Why? the distribution of pcre include it's own pcre. You should use the one installed by debian. I successfully build ocaml-pcre on debian with shared suport by - installing the libpcre3-dev package - modifying one of the pcre-OCaml/Makefile : replacing shared: byte-code-nolink native-code-nolink ocamlmklib -o pcre pcre.cmo pcre.cmx pcre_intf.o \ -L../pcre-C/.libs -lpcre -rpath $(OCAML_LIB_INSTALL) cp ../pcre-C/.libs/libpcre.a . ar r libpcre.a pcre_intf.o ranlib libpcre.a by shared: byte-code-nolink native-code-nolink ocamlmklib -o pcre pcre.cmo pcre.cmx pcre_intf.o \ -lpcre -rpath $(OCAML_LIB_INSTALL) it compile. By the way the pcre library in debian is not the same than the pcre-C in pcre-ocaml, so there may be problems, and I have do no further test. -- Rémi Vanicat vanicat@labri.u-bordeaux.fr http://dept-info.labri.u-bordeaux.fr/~vanicat ------------------- 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