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 QAA15537; Thu, 2 Sep 2004 16:12:33 +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 QAA14978 for ; Thu, 2 Sep 2004 16:12:32 +0200 (MET DST) Received: from post.bourget.univ-savoie.fr (post.bourget.univ-savoie.fr [193.48.120.73]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id i82ECWWX017052 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Thu, 2 Sep 2004 16:12:32 +0200 Received: from univ-savoie.fr (d85.lama.univ-savoie.fr [193.48.123.85]) by post.bourget.univ-savoie.fr (8.12.3/jtpda-5.4) with ESMTP id i82ECPpW022298 ; Thu, 2 Sep 2004 16:12:25 +0200 Message-ID: <41372A5F.2040307@univ-savoie.fr> Date: Thu, 02 Sep 2004 16:12:47 +0200 From: Christophe Raffalli User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040115 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jacques GARRIGUE CC: caml-list@inria.fr Subject: Re: [Caml-list] bug in ocamlmklib ? pb to make a camlimages Godi package? References: <4136D272.6030208@univ-savoie.fr> <20040902.171945.87608780.garrigue@kurims.kyoto-u.ac.jp> In-Reply-To: <20040902.171945.87608780.garrigue@kurims.kyoto-u.ac.jp> X-Enigmail-Version: 0.83.3.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig2E42F84BB65340827FF616E0" Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.33 (www . roaringpenguin . com / mimedefang) X-Miltered: at nez-perce with ID 41372A50.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; raffalli:01 raffalli:01 univ-savoie:01 caml-list:01 bug:01 camlimages:01 openpgp:01 2440:01 3156:01 jacques:01 univ-savoie:01 camlimages:01 bug:01 -linkall:01 cmx:01 X-Attachments: type="application/pgp-signature" name="signature.asc" name="signature.asc" Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig2E42F84BB65340827FF616E0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Jacques GARRIGUE wrote: > 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. So this is probably a bug for the target make opt in the Makefiles of camlimages (make does not produce the -cclib)... > Jacques Garrigue -- Christophe Raffalli Université de Savoie Batiment Le Chablais, bureau 21 73376 Le Bourget-du-Lac Cedex tél: (33) 4 79 75 81 03 fax: (33) 4 79 75 87 42 mail: Christophe.Raffalli@univ-savoie.fr www: http://www.lama.univ-savoie.fr/~RAFFALLI --------------------------------------------- IMPORTANT: this mail is signed using PGP/MIME At least Enigmail/Mozilla, mutt or evolution can check this signature --------------------------------------------- --------------enig2E42F84BB65340827FF616E0 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFBNypfSQDyWB/+xBwRAmrpAKCduUNrldsJwgfevVlJ8O+V6m8omQCfb81S nfs7zJ/Z18kZ1v9hy+um7HE= =JwZc -----END PGP SIGNATURE----- --------------enig2E42F84BB65340827FF616E0-- ------------------- 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