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 IAA18164 for caml-red; Thu, 1 Feb 2001 08:47:42 +0100 (MET) 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 VAA03028 for ; Wed, 31 Jan 2001 21:35:31 +0100 (MET) Received: from moutvdom00.kundenserver.de (moutvdom00.kundenserver.de [195.20.224.149]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id f0VKZLT08967 for ; Wed, 31 Jan 2001 21:35:26 +0100 (MET) Received: from [195.20.224.220] (helo=mrvdom04.kundenserver.de) by moutvdom00.kundenserver.de with esmtp (Exim 2.12 #2) id 14O3yH-00055g-00; Wed, 31 Jan 2001 21:35:17 +0100 Received: from drms-3e364b11.pool.mediaways.net ([62.54.75.17] helo=ice.gerd-stolpmann.de) by mrvdom04.kundenserver.de with esmtp (Exim 2.12 #2) id 14O3y9-0007jk-00; Wed, 31 Jan 2001 21:35:09 +0100 Received: from localhost (localhost [[UNIX: localhost]]) by ice.gerd-stolpmann.de (8.9.3/8.9.3) id VAA15323; Wed, 31 Jan 2001 21:28:12 +0100 From: Gerd Stolpmann Reply-To: gerd@gerd-stolpmann.de Organization: privat To: "s. n. wight" , caml-list@inria.fr Subject: Re: Problem compiling xpath/tests Date: Wed, 31 Jan 2001 20:59:12 +0100 X-Mailer: KMail [version 1.0.28] Content-Type: text/plain References: <20010129112211.C27713@verticalnet.com> In-Reply-To: <20010129112211.C27713@verticalnet.com> MIME-Version: 1.0 Message-Id: <01013121281203.00460@ice> Content-Transfer-Encoding: 8bit Sender: weis@pauillac.inria.fr On Mon, 29 Jan 2001, s. n. wight wrote: >I am unable to build the XPath/tests modules due to the following complaint: > >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 ----------------------------------------------------------------------------