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 HAA09158; Mon, 10 May 2004 07:59:41 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id HAA09322 for ; Mon, 10 May 2004 07:59:40 +0200 (MET DST) X-SPAM-Warning: Sending machine is listed in blackholes.five-ten-sg.com Received: from imsmq02.netvigator.com (n219076064066.netvigator.com [219.76.64.66]) by nez-perce.inria.fr (8.12.10/8.12.10) with ESMTP id i4A5xcEV019884 for ; Mon, 10 May 2004 07:59:39 +0200 Received: from lophty.com (n219077018156.netvigator.com [219.77.18.156]) by imsmq02.netvigator.com (8.12.10/8.12.10) with ESMTP id i4A5xZOc003668 for ; Mon, 10 May 2004 13:59:36 +0800 Message-ID: <409F1A40.8080407@lophty.com> Date: Mon, 10 May 2004 13:59:28 +0800 From: brian donovan User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en MIME-Version: 1.0 To: caml-list@inria.fr Subject: [Caml-list] Building findlib/OCamlfind on Win32 system Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Miltered: at nez-perce with ID 409F1A4A.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; findlib:01 ocamlfind:01 beginners:01 yutaka:01 oiwa:01 findlib:01 caml-list:01 who've:01 newbie:01 mingw:01 winxp:99 unix's:01 fork:01 fork:01 implemented:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hello, I posted this query to ocaml_beginners a few days ago and have received no replies as of yet. Likewise my email to Yutaka Oiwa, the creator of the patch mentioned below. I haven't approached findlib's author as he stated in the INSTALL file accompanying the findlib package that he does not have access to Windows systems or tools. I'm reposting here in the hopes that there may be other Win32 OCaml users on Caml-list who've installed findlib .... I'm an OCaml newbie (actually, I'm new to functional languages altogether and, for all intents and purposes, to compiled languages as well). I've installed the standalone MinGW port of OCaml 3.0.7 on a WinXP system for learning purposes. Aside from some probably to-be-expected problems (compiling a program that used Unix's fork, for example, prompted the compiler to complain that fork was not implemented, which I guess it may not have been in the MinGW 3.0.7 port), everything with the core seems fine. I've been having some difficulties, probably due to my own ignorance more than anything else, today, however. I don't know how many others on this list may have gone through the same process (or even how many of you are using OCaml on Win32, if any), so I'll spill my guts here and hope that I've done something obviously wrong that another member can point out. I want to try to use "Zack's OCaml Http Daemon" module (), which relies on some libraries that aren't included with the default OCaml system : findlib (>= 0.8), ocamlnet (>= 0.94), and pcre-ocaml (>= 4.28.2). I began with findlib (available here : ). The current version is 1.0.4. Findlib's author points out that for MinGW users, someone has prepared a patch to make findlib v0.8.1 work with MinGW port of OCaml. I downloaded findlib 0.8.1 and the patch (from here : ). I extracted the tarball, pasted the patch file into the top findlib directory and applied the patch (I've got the Cygwin toolchain installed). Patch complained about an error when I applied it initially and suggested that I try using strip n when applying, so I started from scratch and used strip 1 : patch -b -strip 1 -i patchfilename This time, no error messages. Great. The rest of the build went fine : ./configure, make all, make opt, make install, and make clean (as recommended in the INSTALL file bundled with findlib). I tried using findlib. Nothing seemed to work except the command findlib ocamlbrowser, which launched a little 4 pane gui that listed most (but not all?) of the modules/libraries in the lib directory of my OCaml install (stublibs, labltk, findlib itself, forex were not visible - shouldn't they be?). Trying other commands, like "ocamlfind query Unix" or "ocamlfind query Array" or "ocamlfind list" gave me nada - just a fresh prompt. It occurred to me that perhaps my mistake was in building findlib outside of the file hierarchy of my OCaml install, so I re-extracted the contents of the findlib tarball, copied the extracted findlib folder into the lib directory, applied the patch, yadda yadda. Same result. [Side question : when building libraries for OCaml on WIndows, does the location in relation to the OCaml install matter?] Can anyone give me any tips on getting findlib/OCamlfind up and running properly on Win32? I'd be very grateful. ------------------- 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