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 OAA28974; Fri, 25 Jul 2003 14:52:16 +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 OAA22580 for ; Fri, 25 Jul 2003 14:52:15 +0200 (MET DST) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.184]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h6PCqDf00492 for ; Fri, 25 Jul 2003 14:52:14 +0200 (MET DST) Received: from [212.227.126.160] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 19g23R-0007ew-00 for caml-list@inria.fr; Fri, 25 Jul 2003 14:52:13 +0200 Received: from [80.129.101.158] (helo=gate.gerd-stolpmann.de) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 19g23P-0003Fx-00 for caml-list@inria.fr; Fri, 25 Jul 2003 14:52:11 +0200 Received: from ice.gerd-stolpmann.de (ice.gerd-stolpmann.de [192.168.0.13]) by gate.gerd-stolpmann.de (Postfix) with ESMTP id 6B80656EF for ; Fri, 25 Jul 2003 14:52:05 +0200 (CEST) Received: by ice.gerd-stolpmann.de (Postfix, from userid 1000) id 915EAB014; Fri, 25 Jul 2003 14:52:04 +0200 (CEST) Subject: [Caml-list] 3.07beta From: Gerd Stolpmann To: caml-list@inria.fr Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-Id: <1059137523.23095.14.camel@ice.gerd-stolpmann.de> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.4 Date: 25 Jul 2003 14:52:04 +0200 X-Loop: caml-list@inria.fr X-Spam: no; 0.00; gerd:01 stolpmann:01 3.07:01 findlib:01 bug:01 reverted:01 avoids:01 argv:01 -predicates:01 predicate:01 predicates:01 -syntax:01 ocamlfind:01 destdir:01 stdlib:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi list, especially the beta testers, before I get more mails, and have to explain it to everybody again: findlib does not work with 3.07beta without applying the patch attached below. This is not a bug of findlib, but an interface change in 3.07beta that will be reverted in 3.07final (it is already changed in CVS). In the case your programs are affected, too: In 3.07beta, Arg.parse sets Arg.current to 0 before it starts parsing, so you cannot skip arguments before you call Arg.parse. Now the patch that avoids this problem with 3.07beta: ----------------------------------snip------------------------------ --- frontend.ml.orig 2003-01-13 01:41:27.000000000 +0100 +++ frontend.ml 2003-07-24 15:31:53.000000000 +0200 @@ -355,7 +355,7 @@ in - Arg.parse + Arg.parse_argv Sys.argv [ "-predicates", Arg.String append_predicate, " specifies comma-separated list of assumed predicates"; "-format", Arg.String (fun s -> format := s), @@ -551,7 +551,7 @@ Arg.String (fun s -> dll_pkgs := !dll_pkgs @ (Fl_split.in_words s)) in - Arg.parse + Arg.parse_argv Sys.argv (List.flatten [ [ "-package", add_pkg, @@ -1076,7 +1076,7 @@ let add_pkg = Arg.String (fun s -> packages := !packages @ (Fl_split.in_words s)) in - Arg.parse + Arg.parse_argv Sys.argv [ "-syntax", add_syntax_pred, "

Use preprocessor with predicate

"; @@ -1172,7 +1172,7 @@ let add_pkg = Arg.String (fun s -> packages := !packages @ (Fl_split.in_words s)) in - Arg.parse + Arg.parse_argv Sys.argv [ "-I", add_spec "-I", "

Add to the list of include directories"; @@ -1342,7 +1342,7 @@ let errmsg = "usage: ocamlfind install [options] ..." in Arg.current := 1; - Arg.parse + Arg.parse_argv Sys.argv keywords (fun s -> if !pkgname = "" @@ -1498,7 +1498,7 @@ let errmsg = "usage: ocamlfind remove [options] " in Arg.current := 1; - Arg.parse + Arg.parse_argv Sys.argv keywords (fun s -> if !pkgname = "" @@ -1604,7 +1604,7 @@ let errmsg = "usage: ocamlfind guess [options] ..." in Arg.current := 1; - Arg.parse + Arg.parse_argv Sys.argv keywords (fun s -> if !pkgname = "" @@ -1654,7 +1654,7 @@ let errmsg = "usage: ocamlfind printconf (conf|path|destdir|metadir|stdlib|ldconf)" in Arg.current := 1; - Arg.parse + Arg.parse_argv Sys.argv [] (fun s -> if !var <> None then raise(Arg.Bad "Unexpected argument"); ----------------------------------snip------------------------------ Gerd -- ------------------------------------------------------------ Gerd Stolpmann * Viktoriastr. 45 * 64293 Darmstadt * Germany gerd@gerd-stolpmann.de http://www.gerd-stolpmann.de ------------------------------------------------------------ ------------------- 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