English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] bug in ocamlmklib ? pb to make a camlimages Godi package?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-09-02 (08:19)
From: Jacques GARRIGUE <garrigue@k...>
Subject: Re: [Caml-list] bug in ocamlmklib ? pb to make a camlimages Godi package?
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