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.4 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 mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id 7B040BBAF for ; Thu, 23 Apr 2009 13:12:34 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Al8CAGfp70lRZ90xlGdsb2JhbACOL4gZAQEBAQkLCAkRA7lDg3UG X-IronPort-AV: E=Sophos;i="4.40,235,1238968800"; d="scan'208";a="38922112" Received: from mtaout03-winn.ispmail.ntl.com ([81.103.221.49]) by mail4-smtp-sop.national.inria.fr with ESMTP; 23 Apr 2009 13:12:34 +0200 Received: from aamtaout01-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 <20090423111232.YRWS7670.mtaout03-winn.ispmail.ntl.com@aamtaout01-winn.ispmail.ntl.com>; Thu, 23 Apr 2009 12:12:32 +0100 Received: from romulus.metastack.com ([81.102.132.77]) by aamtaout01-winn.ispmail.ntl.com (InterMail vG.2.02.00.01 201-2161-120-102-20060912) with ESMTP id <20090423111232.XNAQ13254.aamtaout01-winn.ispmail.ntl.com@romulus.metastack.com>; Thu, 23 Apr 2009 12:12:32 +0100 Received: from Tenor (dynamic117.vpdn.csx.cam.ac.uk [131.111.7.117]) (authenticated bits=0) by romulus.metastack.com (8.14.2/8.14.2) with ESMTP id n3NBCQ9D024992 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Thu, 23 Apr 2009 12:12:29 +0100 From: "David Allsopp" To: "'Alain Frisch'" Cc: "'OCaml List'" References: <001801c99367$7a56e740$6f04b5c0$@com> <49F03546.90001@frisch.fr> In-Reply-To: <49F03546.90001@frisch.fr> Subject: RE: [Caml-list] Building pcre-ocaml on OCaml 3.11.0 on MinGW Date: Thu, 23 Apr 2009 12:11:46 +0100 Organization: MetaStack Solutions Ltd. Message-ID: <001f01c9c404$4cb8c2e0$e62a48a0$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcnD9jGzCD8/3cOeRaCieiZg7DGpbQADaU8w Content-Language: en-gb X-Scanned-By: MIMEDefang 2.65 on 81.102.132.77 X-Cloudmark-Analysis: v=1.0 c=1 a=QbzO_HagaQgA:10 a=wy3s6YcSmvEA:10 a=bZId2uRr_YIg2pJIl18A:9 a=QR8F_oiiOco1UPlhsoUA:7 a=5osPqgne1LxOiIe4UYO7gpygR-IA:4 X-Spam: no; 0.00; pcre-ocaml:01 ocaml:01 mingw:01 pcre-ocaml:01 libpcre:01 libpcre:01 usr:01 cflags:01 -mno-cygwin:01 usr:01 mingw:01 cygwin:01 ctype:01 -mno-cygwin:01 wrote:01 > Hi David, > > David Allsopp wrote: > > I've just had an enlightening few hours getting pcre-ocaml to compile > under > > Windows > >... > > The main thing that's got me puzzled is the renaming of libpcre.dll.a > and > > libpcre.a that I have to do to get the thing to link. > > Thanks for investigating this issue! The current SVN version of > flexlink prefers XXX.dll.a over XXX.a. We will see whether it solves > more problems than it creates... Of course, it is always possible to > pass explicitly the complete file name instead of -lXXX. Marvellous - I'll have a play when I have a spare minute > To build and use ocaml-pcre, I've had to remove the "-I /usr/include" > from this line in OCamlMakefile: > > CFLAGS_WIN32 := -mno-cygwin -I /usr/include > Otherwise, Cygwin's headers are used instead of mingw's ones (in > /usr/include/mingw), and we get a dependency e.g. to the Cygwin symbol > _ctype_ which is not available on mingw. Have you had to do something > similar? I last built with 5.15.1 which didn't have this line (just -mno-cygwin) but I see that I'm behind (and Gerd's confirmed the problem, anyhow...) David