From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id AAA24143; Fri, 14 May 2004 00:32:19 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id AAA23014 for ; Fri, 14 May 2004 00:32:18 +0200 (MET DST) Received: from rdcmx1.safeco.com (rdcmx1.safeco.com [12.144.132.31]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i4DMWGSH015831 for ; Fri, 14 May 2004 00:32:17 +0200 Received: from psmrdcex03.psm.pin.safeco.com (Not Verified[12.144.134.38]) by rdcmx1.safeco.com id ; Thu, 13 May 2004 15:32:15 -0700 Received: from safeco.com ([168.147.237.20]) by psmrdcex03.psm.pin.safeco.com with Microsoft SMTPSVC(5.0.2195.6713); Thu, 13 May 2004 15:32:14 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.0.6487.1 MIME-Version: 1.0 Subject: [Caml-list] Building PCRE-OCaml on Win32 Date: Thu, 13 May 2004 15:32:14 -0700 Message-ID: <9410EC84C0872141B27A2726613EF45D02A534C9@psmrdcex01.psm.pin.safeco.com> X-MS-Has-Attach: yes Thread-Topic: Building PCRE-OCaml on Win32 Thread-Index: AcQ4X4Fjt50gijqMQ6K7uFB2PsOfLwAxnIdQ From: "HENRIKSON, JEFFREY" To: Cc: X-OriginalArrivalTime: 13 May 2004 22:32:14.0995 (UTC) FILETIME=[241C7E30:01C4393A] content-class: urn:content-classes:message Content-Type: multipart/mixed; boundary="----_=_NextPart_001_01C4393A.23C33AA0" X-Miltered: at concorde with ID 40A3F770.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; pcre-ocaml:01 henrikson:01 pcre-ocaml:01 mingw:01 dynlinked:01 crashes:01 complained:01 caml-list:01 pcre:01 cygwin:01 runtime:01 cygwin:01 mingw:01 runtimes:01 pcre:01 X-Attachments: type="application/octet-stream" name="Makefile.mingw" name="Makefile.mingw" Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk This is a multi-part message in MIME format. ------_=_NextPart_001_01C4393A.23C33AA0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable This makefile currently builds pcre-ocaml on mingw for "dynlinked" bytecode compilation. I could not get a working native code build. I think there is an uncorrected problem in Ocaml in this direction. The common failure is to get a compiled, linked executable that crashes before running the first line of Ocaml code. I complained about this on caml-list (not very well) and didn't get an answer. If I have some time, I'll refine those complaints. Yes, you must build pcre by yourself if you don't want to depend on the cygwin runtime. You're on your own with depending on cygwin, as I have heard mixing cygwin and mingw C runtimes can produce very hard to diagnose bad problems. I will also paste here a shell script for compiling pcre sans cygwin. There's also a code generation command that you have to run, (to generate maketables.c?) but it's easy enough to figure out. Jeff Henrikson Pcre-4.4: gcc -mno-cygwin -DPOSIX_MALLOC_THRESHOLD=3D10 -c pcre.c gcc -mno-cygwin -DPOSIX_MALLOC_THRESHOLD=3D10 -c maketables.c gcc -mno-cygwin -DPOSIX_MALLOC_THRESHOLD=3D10 -c get.c gcc -mno-cygwin -DPOSIX_MALLOC_THRESHOLD=3D10 -c study.c gcc -shared -mno-cygwin pcre.o maketables.o get.o study.o -o libpcre-mingw.dll - Wl,--out-implib,libpcre-mingw.dll.a -----Original Message----- From: Jeff Henrikson [mailto:jehenrik@yahoo.com]=20 Sent: Wednesday, May 12, 2004 1:31 PM To: brian donovan Subject: Re: PCRE-OCaml for OCaml 3.0.7 (MinGW) on Win32 Hi, Yes there are some issues with building pcre-ocaml on mingw. I didn't know about them all when I submitted that patch. I actually believe there are problems with ocaml itself on mingw, specifically with regard to linking C code. I have had identical problems in my other C modules too, unique to mingw. Sorry but I am not at work today, where my pcre-ocaml build lives. I can send you my current makefile tomorrow. Not all the things one would like to do work in this ocaml release under mingw. There are some super freaky things like building excutables that crash before running a line of code and such. I asked some imprecise questions about them on the list a while back, but didn't get answered. This was all for ocaml-3.07. I have not taken the time to ask them more precisely. Right now I believe I limit myself to building a bytecode "dynlinked" dll. I think that first makefile I sent out didn't even have -mno-cygwin in it. Use it. Apologies. Jeff Henrikson +++ brian donovan [11/05/04 21:25 +0800]: > Hello, >=20 > I'm attempting to get PCRE-OCaml 5.0.8 working on a WinXP system on > which I've installed Cygwin (all packages) and the MinGW port of OCaml > 3.0.7 (precompiled w/installer). Findlib/OCamlfind 1.0.4 is already=20 > installed. >=20 > I've encountered some difficulties in getting PCRE-OCaml 5.0.8 going > and found your email in the header of a MinGW-based makefile included > in the package. While I can see that it's been many months since Markus=20 > Mottl included your makefile w/his work (predating the release of OCaml=20 > 3.0.7 it seems), I'm emailing in the hope that you're still working with=20 > OCaml on Win32 and can advise me on building PCRE-OCaml. >=20 > I'd be grateful for any guidance thatyou can give. >=20 > Thanks, > brian donovan --=20 ------_=_NextPart_001_01C4393A.23C33AA0 Content-Type: application/octet-stream; name="Makefile.mingw" Content-Transfer-Encoding: base64 Content-Description: Makefile.mingw Content-Disposition: attachment; filename="Makefile.mingw" IwojIE1pbkdXIGJhc2VkIG1ha2VmaWxlLCBhZGFwdGVkIGJ5IEplZmYgSGVucmlrc29uLCBqZWhl bnJpa0B5YWhvby5jb20sCiMgTm92ZW1iZXIgMjAwMy4KIwojIHVzYWdlOgojIG1ha2UgLWYgTWFr ZWZpbGUubWluZ3cKIyBtYWtlIC1mIE1ha2VmaWxlLm1pbmd3IG9wdAojCiMgRmlsZSBpcyBwcm92 aWRlZCBhcyBpcy4gIExldCB0aGUgYnV5ZXIgYmV3YXJlIQoKI0xJQl9QQVRIPWQ6XG9jYW1sXGxp YnMKI0lOQ19QQVRIPWQ6L29jYW1sL2xpYiBkOi9vY2FtbC9pbmNsdWRlcwpJTkNfUEFUSD0kKHNo ZWxsIG9jYW1sYyAtd2hlcmUpCgoKYWxsOiBwY3JlLmNtYQpvcHQ6IHBjcmUu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5hCgljaG1vZCA3Nzcg ZGxscGNyZV9zdHVicy5kbGwKCnBjcmUuY214OiBwY3JlLmNtaSBwY3JlLm1sCglvY2FtbG9wdCAt YyBwY3JlLm1sIC1vIHBjcmUuY214CgpwY3JlLmNteGE6IHBjcmUuY214IC1nIGxpYnBjcmVfc3R1 YnMuYSBsaWJwY3JlLW1pbmd3LmRsbAoJb2NhbWxvcHQgLXZlcmJvc2UgLWEgLW8gcGNyZS5jbXhh IHBjcmUuY214IFwKICAJCSAtY2NsaWIgLWxwY3JlLW1pbmd3IC1jY2xpYiAtbHBjcmVfc3R1YnMg CgpwY3JlLmNtYTogcGNyZS5jbW8gZGxscGNyZV9zdHVicy5kbGwKCW9jYW1sYyAtYSAtbyBwY3Jl LmNtYSBwY3JlLmNtbyAgXAogIAkJLWRsbGliIC1scGNyZV9zdHVicwojICAJCS1jY2xpYiAtbHBj cmVfc3R1YnMgLWNjbGliIGxpYnBjcmUtbWluZ3cuZGxsCiMgIAkJLWNjbGliIC1scGNyZV9zdHVi cyAtY2NsaWIgLWxwY3JlLW1pbmd3IAojdHJ5OiBvY2FtbGMgLW8gdGVzdC5leGUgcGNyZS5jbWEg dGVzdC5tbAoKCmluc3RhbGw6CglvY2FtbGZpbmQgaW5zdGFsbCBwY3JlIE1FVEEgcGNyZS5jbWEg cGNyZS5jbXhhIHBjcmUuY21pIHBjcmUubWxpIFwKCQlwY3JlLmxpYgp1bmluc3RhbGw6CglvY2Ft bGZpbmQgcmVtb3ZlIHBjcmUKCmNsZWFuOgoJcm0gKi5jbSogKi5vIGxpYnBjcmVfc3R1YnMuZGxs IGRsbHBjcmVfc3R1YnMuZGxsCgoKCg== ------_=_NextPart_001_01C4393A.23C33AA0-- ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners