ocamlrpcgen no longer works on Gutsy. Probably a wrongly stripped binary
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ocamlnet (Ubuntu) |
Fix Released
|
Undecided
|
Martin Pitt | ||
pkg-create-dbgsym (Ubuntu) |
Fix Released
|
Undecided
|
Martin Pitt |
Bug Description
Hello,
The command line options of ocamlrpcgen (from libocamlnet-
$ ocamlrpcgen -cpp none -int unboxed -hyper int64 -aux net/messages.xdr
Unknown option -cpp.
$ ocamlrpcgen -int unboxed -hyper int64 -aux net/messages.xdr
Unknown option -int.
$ ocamlrpcgen -hyper int64 -aux net/messages.xdr
Unknown option -hyper.
After a post on <email address hidden> mailing list, it seems that this is due to a wrongly stripped binary. OCaml binaries should *never* been stripped because strip removes the embedded bytecode.
http://
This is confirmed by following command:
$ ocamlrpcgen net/messages.xdr
Fatal error: the file net/messages.xdr is not a bytecode executable file
Currently libocamlnet-
Yours,
d.
A Debian developer (Stefano Zacchiroli) suggested that the unneeded strip was done at package building: http:// lists.debian. org/debian- ocaml-maint/ 2008/01/ msg00061. html
Unfortunately, after looking at the .deb patch applied to the original package (http:// archive. ubuntu. com/ubuntu/ pool/universe/ o/ocamlnet/ ocamlnet_ 2.2.7-1. diff.gz), the Ubuntu package seems to have the relevant DEB_STRIP_EXCLUDE lines: netplex- admin # OCaml custom bytecode binaries can't be striped
+DEB_STRIP_EXCLUDE += usr/bin/
+DEB_STRIP_EXCLUDE += usr/bin/ocamlrpcgen
So maybe the stripping is done at another level or the DEB_STRIP_EXCLUDE rule is not taken into account. I don't know.