From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id 8FDB281792 for ; Wed, 19 Jun 2013 17:08:32 +0200 (CEST) Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of dra-news@metastack.com) identity=pra; client-ip=81.103.221.49; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="dra-news@metastack.com"; x-sender="dra-news@metastack.com"; x-conformance=sidf_compatible Received-SPF: Neutral (mail3-smtp-sop.national.inria.fr: domain of dra-news@metastack.com does not assert whether or not 81.103.221.49 is permitted sender) identity=mailfrom; client-ip=81.103.221.49; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="dra-news@metastack.com"; x-sender="dra-news@metastack.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@mtaout03-winn.ispmail.ntl.com) identity=helo; client-ip=81.103.221.49; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="dra-news@metastack.com"; x-sender="postmaster@mtaout03-winn.ispmail.ntl.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApkAAHjIwVFRZ90xlGdsb2JhbABagmiBG78bgQAWDgEBAQEHDQkJFAMlgiMBAQEEOj8QAgEIGAoUEDIXAQ0BAQQODYgHA7tUjxExB4MAYQOXQZRTgig X-IPAS-Result: ApkAAHjIwVFRZ90xlGdsb2JhbABagmiBG78bgQAWDgEBAQEHDQkJFAMlgiMBAQEEOj8QAgEIGAoUEDIXAQ0BAQQODYgHA7tUjxExB4MAYQOXQZRTgig X-IronPort-AV: E=Sophos;i="4.87,898,1363129200"; d="scan'208";a="18314085" Received: from mtaout03-winn.ispmail.ntl.com ([81.103.221.49]) by mail3-smtp-sop.national.inria.fr with ESMTP; 19 Jun 2013 17:08:31 +0200 Received: from aamtaout03-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout03-winn.ispmail.ntl.com (InterMail vM.7.08.04.00 201-2186-134-20080326) with ESMTP id <20130619150830.HZRC27949.mtaout03-winn.ispmail.ntl.com@aamtaout03-winn.ispmail.ntl.com>; Wed, 19 Jun 2013 16:08:30 +0100 Received: from romulus.metastack.com ([81.102.132.77]) by aamtaout03-winn.ispmail.ntl.com (InterMail vG.3.00.04.00 201-2196-133-20080908) with ESMTP id <20130619150830.WPEZ2660.aamtaout03-winn.ispmail.ntl.com@romulus.metastack.com>; Wed, 19 Jun 2013 16:08:30 +0100 Received: from remus.metastack.local (remus.metastack.com [172.16.0.1]) by romulus.metastack.com (8.14.2/8.14.2) with ESMTP id r5JF8RKQ013920 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Wed, 19 Jun 2013 16:08:27 +0100 Received: from Remus.metastack.local ([fe80::547c:3c42:e1da:eda2]) by Remus.metastack.local ([fe80::547c:3c42:e1da:eda2%10]) with mapi id 14.03.0123.003; Wed, 19 Jun 2013 16:08:27 +0100 From: David Allsopp To: Markus Mottl CC: OCaml List Thread-Topic: [Caml-list] Building pcre-ocaml 7.0.2 on MinGW Thread-Index: Ac5s+iyPfwm3L9DjTCuM7tRgn5aY7f//8bMA///pjGA= Date: Wed, 19 Jun 2013 15:08:26 +0000 Message-ID: References: <004c01ce6cfa$63423430$29c69c90$@metastack.com> In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.16.0.18] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Organization: MetaStack Solutions Ltd. X-Scanned-By: MIMEDefang 2.65 on 172.16.0.20 X-Cloudmark-Analysis: v=1.1 cv=AUhbpHVS+xhHrj9wLCYAQoYnFLYUZdbP8UM0GmH2jwk= c=1 sm=0 a=IXlcok0kcmcA:10 a=VpRD0y9LokkA:10 a=cTs9vV391PwA:10 a=kj9zAlcOel0A:10 a=xqWC_Br6kY4A:10 a=OdS--qeU0JkbEFajHzkA:9 a=CjuIK1q_8ugA:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 Subject: RE: [Caml-list] Building pcre-ocaml 7.0.2 on MinGW Markus Mottl wrote: > I have no experience with OCaml installations on Windows, but what > concerns the configuration of pcre-ocaml, it actually does use pcre- > config. If the latter is not in your path, you can add the configure flag > "--with-pcre-config {full path to pcre-config}" to make it work. The problem is more subtle than that - pcre-config is there but it's a shel= l script which means that make (which uses sh) can execute it but ocamlbuil= d (which uses cmd on a Windows build) cannot. Arguably it's a deficiency of= the Windows build of PCRE that it doesn't generate a .cmd version of pcre-= config (but that's another m4 related headache!). I made the following two = changes for my build environment: After running ./configure (but therefore before make install) for PCRE: sed -i -e "1s/$/\n\nPATH=3D\/bin:\$PATH/" pcre-config (that's necessary because when bash is invoked from a command shell it will= interpret the Windows PATH and you need access to uname and test from Cygw= in's /bin) And then after installing I created pcre-config.cmd in the same directory a= s pcre-config (and therefore in my PATH as that's my OCaml bin directory): @setlocal @echo off bash /cygdrive/c/Dev/OCaml/bin/pcre-config %* It's possible that ocamlbuild could workaround this without the need for th= e extra script, but it's probably better to fix PCRE itself... David=20