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 KAA05803; Thu, 2 Sep 2004 10:19:54 +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 KAA06227 for ; Thu, 2 Sep 2004 10:19:53 +0200 (MET DST) Received: from kurims.kurims.kyoto-u.ac.jp (kurims.kurims.kyoto-u.ac.jp [130.54.16.1]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id i828JpA6032719 for ; Thu, 2 Sep 2004 10:19:52 +0200 Received: from localhost (suiren.kurims.kyoto-u.ac.jp [130.54.16.25]) by kurims.kurims.kyoto-u.ac.jp (8.9.3p2-20030924/3.7W) with ESMTP id RAA13798; Thu, 2 Sep 2004 17:19:45 +0900 (JST) Date: Thu, 02 Sep 2004 17:19:45 +0900 (JST) Message-Id: <20040902.171945.87608780.garrigue@kurims.kyoto-u.ac.jp> To: Christophe.Raffalli@univ-savoie.fr Cc: caml-list@inria.fr Subject: Re: [Caml-list] bug in ocamlmklib ? pb to make a camlimages Godi package? From: Jacques GARRIGUE In-Reply-To: <4136D272.6030208@univ-savoie.fr> References: <4136D272.6030208@univ-savoie.fr> X-Mailer: Mew version 4.0.64 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 4136D7A7.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 bug:01 camlimages:01 jacques:01 raffalli:01 raffalli:01 univ-savoie:01 camlimages:01 bug:01 -linkall:01 cmx:01 cmx:01 -wl:01 usr:01 usr:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk From: Christophe Raffalli > > I tried to use godiva to make a camlimages packages and I think I found > a bug in ocamlmklib, but I am not sure ... > > Using godi and my package, the following compilation line is generated > and fails: > > > ocamlmklib -linkall -o ci_jpeg \ > > jpeg.cmx oJpeg.cmx -cclib "-Wl,-R/usr/local/godi/lib > -L/usr/local/godi/lib" -ljpeg; \ > > fi > > /usr/local/godi/bin/ocamlopt: unknown option `-L/usr/local/godi/lib'. > > Usage: ocamlopt > > It seems that the option -cclib "-Wl,-R/usr/local/godi/lib > -L/usr/local/godi/lib" is not well transmitted by ocamlmklib to > ocamlopt ... The bug is not in ocamlmklib, but in camlimages (or its godi port). You're not supposed to pass -cclib options to ocamlmklib, except in some very special cases. The above line should simply be: ocamlmklib -linkall -o ci_jpeg \ jpeg.cmx oJpeg.cmx -L/usr/local/godi/lib -ljpeg and ocamlmklib would automatically add the necessary runtime paths in the syntax required for this system. Jacques Garrigue ------------------- 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