From: Jacques GARRIGUE <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?
Date: Thu, 02 Sep 2004 17:19:45 +0900 (JST) [thread overview]
Message-ID: <20040902.171945.87608780.garrigue@kurims.kyoto-u.ac.jp> (raw)
In-Reply-To: <4136D272.6030208@univ-savoie.fr>
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.
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
next prev parent reply other threads:[~2004-09-02 8:19 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 [this message]
2004-09-02 14:12 ` Christophe Raffalli
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=20040902.171945.87608780.garrigue@kurims.kyoto-u.ac.jp \
--to=garrigue@kurims.kyoto-u.ac.jp \
--cc=Christophe.Raffalli@univ-savoie.fr \
--cc=caml-list@inria.fr \
/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