Bug#531360: libcamlpdf-ocaml-dev: unzip interface conflicts with extlib
Guillaume Yziquel a écrit :
Romain Beauxis a écrit :
Hi !
Le Monday 01 June 2009 00:47:44 Guillaume Yziquel, vous avez écrit :
When trying to use both extlib and camlpdf on the toplevel, they
disagree
on the interface to module unzip:
CamlPDF in debian is patched to build against the unzip module shipped
by debian. Does this mean that extlib has a different unzip module
than the one shipped as a package ?
Romain
In the toplevel, zip/extlib is compatible, zip/camlpdf is also OK, but
extlib/camlpdf is not:
With ocamlobjinfo, you get, on the .cma of camlpdf:
Unit name: Unzip
Interfaces imported:
9c9fa5f11e2d6992c427dde4d1168489 Array
3da72249626c7db769beafc97036cb4f Char
88cb1505c8bdf9a4dcd2cdf3452732b4 Pervasives
67ab0851be7c19b31baceea98f76f42b Unzip
425b62721d71bae3d8ef17a6117037e9 Utility
b372d9bd060c60cc1e3bc9fa72c6a310 Istring
654e09b87b678c68611416c15336b53f Io
ee2a3220e38a4350c5bc131ce9f3f6ce Hashtbl
Uses unsafe features: no
and on the .cma of extlib:
Unit name: Unzip
Interfaces imported:
9c9fa5f11e2d6992c427dde4d1168489 Array
b941185daa9d8cdf275d1b70640a65c6 IO
3da72249626c7db769beafc97036cb4f Char
88cb1505c8bdf9a4dcd2cdf3452732b4 Pervasives
ecc403546c1c50056801131811c39017 String
45838fbf4d9f26e9bb96cb6f3691849b Enum
8c4bf5f5cada33735dcb10f487c95bff Unzip
ee2a3220e38a4350c5bc131ce9f3f6ce Hashtbl
Uses unsafe features: no
but, to my surprise, there is no Unzip module in
/usr/lib/ocaml/3.11.0/zip/zip.cma...
So I do not really know how to determine which of the Unzip modules (in
camlpdf or in extlib) is "the right one". But it seems to me that
camlpdf's Unzip is built against Io and Istring, which might account for
the discrepancy.
Guillaume.
--
Guillaume Yziquel
http://yziquel.homelinux.org/
Reply to: