From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id IAA31234 for caml-red; Thu, 1 Feb 2001 08:52:17 +0100 (MET) 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 WAA14969 for ; Wed, 31 Jan 2001 22:52:51 +0100 (MET) Received: from staffmail.vertical.net (staffmail.vertical.net [146.145.74.63]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id f0VLqoX11338 for ; Wed, 31 Jan 2001 22:52:50 +0100 (MET) Received: from vertical.net (w007.z064002011.sjc-ca.dsl.cnc.net [64.2.11.7]) by staffmail.vertical.net (8.9.3+Sun/8.9.3) with SMTP id QAA11450; Wed, 31 Jan 2001 16:50:48 -0500 (EST) Received: by vertical.net (sSMTP sendmail emulation); Wed, 31 Jan 2001 01:51:29 -0800 Date: Wed, 31 Jan 2001 01:51:29 -0800 From: "s. n. wight" To: Gerd Stolpmann Cc: caml-list@inria.fr Subject: Re: Problem compiling xpath/tests Message-ID: <20010131015129.A11313@verticalnet.com> References: <20010129112211.C27713@verticalnet.com> <01013121281203.00460@ice> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <01013121281203.00460@ice>; from gerd@gerd-stolpmann.de on Wed, Jan 31, 2001 at 08:59:12PM +0100 Sender: weis@pauillac.inria.fr Thanks, Gerd - just a short while ago (this morning!) I found the problem was that I needed to upgrade to PXP 1.0.38.3 - simple as that... Thanks, steve > >ocamlfind ocamlc -o test -linkpkg -I .. xpath.cma -package pxp,wlexing test.cmo > >/tmp/cc4Z3fxN.o(.data+0x360): undefined reference to `lex_engine_tiny_8bit' > >/tmp/cc4Z3fxN.o(.data+0x364): undefined reference to `lex_engine_tiny_utf8' > >collect2: ld returned 1 exit status > >Error while building custom runtime system > >make: *** [test] Error 2 > > > >I'm running OCaml 3.00 on Suse Linux 7.0. > > I suppose you must also pass the -custom flag to the compiler, because the > C functions lex_engine_tiny_8bit and lex_engine_tiny_utf8 are not available in > the standard bytecode interpreter. (But "Error while building custom runtime > system" is a hint that ocamlc tries to build a custom runtime system; this > message is confusing.) > > I remember also that there are two versions of wlex, one using a lexing engine > written in C, and another one using a lexing engine written in O'Caml. XPath > seems to use the C version (applies module Lex_engines, not Lex_engines_ml > in xpath_wlexer.mll). > > If that does not help, I need the output of > > camlfind ocamlc -verbose -o test -linkpkg -I .. xpath.cma -package pxp,wlexing > test.cmo > > (added the -verbose option), plus the exact version numbers of the packages > pxp, wlexing, and xpath to track the error. > > Gerd > -- > ---------------------------------------------------------------------------- > Gerd Stolpmann Telefon: +49 6151 997705 (privat) > Viktoriastr. 100 > 64293 Darmstadt EMail: gerd@gerd-stolpmann.de > Germany > ----------------------------------------------------------------------------