From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id oBTLhXQi021194 for ; Wed, 29 Dec 2010 22:43:33 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgABAHE6G03RVdW2kGdsb2JhbACDcKBBCBUBAQEBCQkMBxEEIKUtiTuHfIgjgSCDNnQEhGWGH4YS X-IronPort-AV: E=Sophos;i="4.60,246,1291590000"; d="scan'208";a="83581671" Received: from mail-yx0-f182.google.com ([209.85.213.182]) by mail4-smtp-sop.national.inria.fr with ESMTP; 29 Dec 2010 22:43:28 +0100 Received: by yxh35 with SMTP id 35so4928288yxh.27 for ; Wed, 29 Dec 2010 13:43:27 -0800 (PST) Received: by 10.236.109.166 with SMTP id s26mr26966366yhg.76.1293659007028; Wed, 29 Dec 2010 13:43:27 -0800 (PST) MIME-Version: 1.0 Sender: hcarty@mulethief.com Received: by 10.150.133.1 with HTTP; Wed, 29 Dec 2010 13:43:06 -0800 (PST) In-Reply-To: <7ABEB515-2F72-4CB7-BDE1-1695FA9970A4@gmail.com> References: <7ABEB515-2F72-4CB7-BDE1-1695FA9970A4@gmail.com> From: "Hezekiah M. Carty" Date: Wed, 29 Dec 2010 16:43:06 -0500 X-Google-Sender-Auth: -Op_HGsy5EWKYlIjsN8JTwMEPqQ Message-ID: To: Joel Reymont Cc: caml-list@inria.fr Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by walapai.inria.fr id oBTLhXQi021194 Subject: Re: [Caml-list] fixing swig On Tue, Dec 28, 2010 at 7:22 PM, Joel Reymont wrote: > Here's what happens when building OCaml examples in the latest SWIG: > > --- > ocamlc -I ` camlp4 -where` -pp "camlp4o pa_extend.cmo q_MLast.cmo" -c swigp4.ml > File "swig.ml", line 159, characters 54-57: > Warning 20: this argument will not be used by the function. > File "swigp4.ml", line 26, characters 2-6: > Parse error: Deprecated syntax, the grammar module is expected > File "swigp4.ml", line 1, characters 0-1: > Error: Preprocessor error > make[1]: *** [ocaml_static_cpp] Error 2 > --- > > The following code from swigp4.ml needs to be fixed but I don't know enough Camlp4 to do it :-(. > > If a kind soul can lend me a hand with this then I can try to incorporate the changes back into SWIG. > >        Thanks in advance, Joel > > --- swigp4.ml --- > > open Pcaml ;; > I don't have much experience hacking around with camlp4, so this is partial speculation. It looks like swig may be using old camlp4 (now camlp5) libraries/syntax. As a work-around, you could try dropping in camlp5 in place of camlp4. Good luck, Hez