From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by yquem.inria.fr (Postfix) with ESMTP id A89BFBC37 for ; Fri, 4 Sep 2009 08:10:04 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AnoCAFNMoErVJFBblGdsb2JhbACBU5lrAQEBAQkLCAkTA705hBsFgVg X-IronPort-AV: E=Sophos;i="4.44,330,1249250400"; d="scan'208";a="33704128" Received: from mx-out.libertysurf.net (HELO mail.libertysurf.fr) ([213.36.80.91]) by mail3-smtp-sop.national.inria.fr with ESMTP; 04 Sep 2009 08:10:04 +0200 Received: from [192.168.1.2] (91.168.178.46) by mail.libertysurf.fr (8.5.016.1) id 498AE76203371D5B; Fri, 4 Sep 2009 08:52:47 +0200 From: Florent Monnier To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] batteries compilation error Date: Fri, 4 Sep 2009 08:08:54 +0200 User-Agent: KMail/1.9.10 References: <200909011114.50697.fmonnier@linux-nantes.fr.eu.org> <200909022202.11907.fmonnier@linux-nantes.fr.eu.org> <1251967200-sup-3000@peray> In-Reply-To: <1251967200-sup-3000@peray> MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200909040808.54495.fmonnier@linux-nantes.fr.eu.org> Cc: Nicolas Pouillard X-Face: -0"dKXwF0PiXr]fa$^)NJY7$;waqUckGcM7&q,VU?Xv\[=CiVM]g]pDs^xmfU9+Q=Z,OdfMHUR-7Ao%evJh.=aiq,#r0Ux0dm'!l|zeAXj||$>1_(Lv4Hc",&F}sbHeK0`SBA$_|XP Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; compilation:01 camlp:01 makefile:01 makefile:01 camlp:01 syntax:01 byte:01 byte:01 syntax:01 cmo:01 cmo:01 toolchain:01 toplevel:01 toolchain:01 ocamlfind:01 (...) > > > I don't see any "-I +camlp4" can you add it? > > > > if I run the command like this on the command line it passes right > > but when I run again the make command it doesn't continue because > > ocamlbuild complains about sanity violation > > Anyway as it is for packaging purpose I will need to patch the Makefile, > > the problem is that I don't see where to add this statement in the > > Makefile: > > http://git.ocamlcore.org/cgi-bin/gitweb.cgi?p=batteries/batteries.git;a=b > >lob;f=Makefile.in;hb=HEAD > > > > (also I've search in the debian package, and it seems they haven't patch > > the Makefile at all) > > If you are using ocamlbuild, then a -tag use_camlp4 could do the job. I've added this tag to the OBFLAGS of the Makefile as below, but there is still an error: $ make all opt top syntax OBFLAGS="-tag use_camlp4" ocamlbuild -tag use_camlp4 src/main/threads/batteries.cma src/main/threads/run.byte src/main/nothreads/batteries.cma src/main/nothreads/run.byte src/syntax/pa_openin/pa_openin.cmo src/syntax/pa_openin/pa_openin_r.cmo src/syntax/pa_where/pa_where.cmo src/syntax/pa_batteries/pa_batteries.cmo src/syntax/pa_strings/pa_strings.cma src/syntax/pa_comprehension/pa_comprehension.cmo src/batteries_toolchain/toplevel.top src/batteries_toolchain/batteries_print.cmo src/batteries_toolchain/batteries_help.cmo Finished, 1 target (0 cached) in 00:00:00. + ocamlfind ocamlmktop -I +camlp4 camlp4lib.cma src/batteries_toolchain/toplevel/cbtop.cmo -o src/batteries_toolchain/toplevel.top File "_none_", line 1, characters 0-1: Error: Error while linking /usr/lib/ocaml/camlp4/camlp4lib.cma(Camlp4): Reference to undefined global `Dynlink' Command exited with code 2. make: *** [all] Error 10