* [Caml-list] bug in ocamlmklib ? pb to make a camlimages Godi package?
@ 2004-09-02 7:57 Christophe Raffalli
2004-09-02 8:19 ` Jacques GARRIGUE
0 siblings, 1 reply; 3+ messages in thread
From: Christophe Raffalli @ 2004-09-02 7:57 UTC (permalink / raw)
To: caml-list
[-- Attachment #1: Type: text/plain, Size: 1294 bytes --]
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 ...
I tried to patch the configure file from camlimages, but it seems I
can't figure our who is generating the option
-cclib "-Wl,-R/usr/local/godi/lib -L/usr/local/godi/lib"
I think adding a comma should work ... but I do not know where to put it.
--
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 --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Caml-list] bug in ocamlmklib ? pb to make a camlimages Godi package?
2004-09-02 7:57 [Caml-list] bug in ocamlmklib ? pb to make a camlimages Godi package? Christophe Raffalli
@ 2004-09-02 8:19 ` Jacques GARRIGUE
2004-09-02 14:12 ` Christophe Raffalli
0 siblings, 1 reply; 3+ messages in thread
From: Jacques GARRIGUE @ 2004-09-02 8:19 UTC (permalink / raw)
To: Christophe.Raffalli; +Cc: caml-list
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Caml-list] bug in ocamlmklib ? pb to make a camlimages Godi package?
2004-09-02 8:19 ` Jacques GARRIGUE
@ 2004-09-02 14:12 ` Christophe Raffalli
0 siblings, 0 replies; 3+ messages in thread
From: Christophe Raffalli @ 2004-09-02 14:12 UTC (permalink / raw)
To: Jacques GARRIGUE; +Cc: caml-list
[-- 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 --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-09-02 14:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-02 7:57 [Caml-list] bug in ocamlmklib ? pb to make a camlimages Godi package? Christophe Raffalli
2004-09-02 8:19 ` Jacques GARRIGUE
2004-09-02 14:12 ` Christophe Raffalli
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox