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 RAA17146; Sat, 8 Nov 2003 17:52: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 RAA17374 for ; Sat, 8 Nov 2003 17:52:40 +0100 (MET) Received: from igloo.phubuh.org (c-70b670d5.028-10-67766c2.cust.bredbandsbolaget.se [213.112.182.112]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id hA8Gqd112692 for ; Sat, 8 Nov 2003 17:52:39 +0100 (MET) Received: from igloo.phubuh.org (localhost [127.0.0.1]) by igloo.phubuh.org (Postfix) with ESMTP id 69BF55327A; Sat, 8 Nov 2003 17:52:12 +0100 (CET) To: Richard Jones Cc: caml-list@inria.fr Subject: Re: [Caml-list] mod_caml 1.0.0 and O'Caml 3.07 - cannot load Lexing References: <87oevnotoy.fsf@igloo.phubuh.org> <20031108144419.GA8752@redhat.com> <871xsix6gc.fsf@igloo.phubuh.org> <20031108145131.GB9211@redhat.com> From: Mikael Brockman Date: 08 Nov 2003 17:52:12 +0100 In-Reply-To: <20031108145131.GB9211@redhat.com> Message-ID: <87fzgyu7k3.fsf@igloo.phubuh.org> User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 3.07:01 carbon:99 ahold:01 callback:01 kludgy:01 dummy:01 ocaml:01 ocaml:01 caml:01 caml:01 writes:01 nov:01 parser:02 config:02 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > On Sat, Nov 08, 2003 at 03:47:47PM +0100, Mikael Brockman wrote: > > Yes, I'm using Lexing and Parsing. See my recent self-reply. First of all, my "recent self-reply" wasn't carbon copied to any one, so you couldn't read it. :-) This is what I said: > I got ahold of Kenn, and found out that he eventually managed to fix > the problem by using some arbitrary values from Lexing and Parsing in > mod_caml.ml -- like this: > > let () = > Callback.register "mod_caml_create_dir_config" create_dir_config; > > ... > > (* For some reason, we have to use Lexing and Parsing here to make > it load. *) > ignore (Lexing.dummy_pos); > ignore (Parsing.clear_parser); > > I added those lines and recompiled, and now everything seems to work > perfectly, but this feels very kludgy. > Richard Jones writes: > I'm not really familiar with these modules. They're part of standard > OCaml? Do you have to link any special .cma in to use them ordinarily? Lexing and Parsing are part of the standard OCaml, and are used by the modules that ocamllex and ocamlyacc generate. You don't have to link any special .cma to use them. -- Mikael Brockman ------------------- 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