From: Christophe Raffalli <Christophe.Raffalli@univ-savoie.fr>
To: Jacques GARRIGUE <garrigue@kurims.kyoto-u.ac.jp>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] bug in ocamlmklib ? pb to make a camlimages Godi package?
Date: Thu, 02 Sep 2004 16:12:47 +0200 [thread overview]
Message-ID: <41372A5F.2040307@univ-savoie.fr> (raw)
In-Reply-To: <20040902.171945.87608780.garrigue@kurims.kyoto-u.ac.jp>
[-- Attachment #1: Type: text/plain, Size: 1726 bytes --]
Jacques GARRIGUE wrote:
> From: Christophe Raffalli <Christophe.Raffalli@univ-savoie.fr>
>
>>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 <options> <files>
>>
>>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
---------------------------------------------
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]
prev parent reply other threads:[~2004-09-02 14:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-02 7:57 Christophe Raffalli
2004-09-02 8:19 ` Jacques GARRIGUE
2004-09-02 14:12 ` Christophe Raffalli [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=41372A5F.2040307@univ-savoie.fr \
--to=christophe.raffalli@univ-savoie.fr \
--cc=caml-list@inria.fr \
--cc=garrigue@kurims.kyoto-u.ac.jp \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).