Bug#599552: bitstring: META file for bitstring is wrong. Syntax extension fails in toplevel.
Package: libbitstring-ocaml-dev
Version: 2.0.2-1+3.12.0+1
Severity: normal
File: bitstring
The META file for bitstring is wrong. The syntax extension cannot be
used in the toplevel.
package "syntax" (
version = "2.0.2"
description = "Syntax extension: bitstring operators"
archive(syntax,preprocessor) = "unix.cma bitstring.cma bitstring_persistent.cma pa_bitstring.cmo"
archive(syntax,toploop) = "unix.cma bitstring.cma bitstring_persistent.cma pa_bitstring.cmo"
preprocessor = "camlp4of"
)
should probably be replaced by
package "syntax" (
version = "2.0.2"
description = "Syntax extension: bitstring operators"
require = "bitstring.persistent"
archive(syntax,preprocessor) = "pa_bitstring.cmo"
archive(syntax,toploop) = "pa_bitstring.cmo"
preprocessor = "camlp4of"
)
Here are the toplevel sessions. The first on fails. The second one works.
yziquel@seldon:~$ ocaml
Objective Caml version 3.12.0
# #use "topfind";;
- : unit = ()
Findlib has been successfully loaded. Additional directives:
#require "package";; to load a package
#list;; to list the available packages
#camlp4o;; to load camlp4 (standard syntax)
#camlp4r;; to load camlp4 (revised syntax)
#predicates "p,q,...";; to set these predicates
Topfind.reset();; to force that packages will be reloaded
#thread;; to enable threads
- : unit = ()
# #camlp4o;;
/usr/lib/ocaml/dynlink.cma: loaded
/usr/lib/ocaml/camlp4: added to search path
/usr/lib/ocaml/camlp4/camlp4o.cma: loaded
Camlp4 Parsing version 3.12.0
# #require "bitstring.syntax";;
/usr/lib/ocaml/bitstring: added to search path
/usr/lib/ocaml/bitstring/unix.cma: loaded
Cannot find file /usr/lib/ocaml/bitstring/unix.cma.
# #require "bitstring.syntax";;ing.cma: loaded
Error: Reference to undefined global `Unix'
#
yziquel@seldon:~$ ocaml
Objective Caml version 3.12.0
# #use "topfind";;
- : unit = ()
Findlib has been successfully loaded. Additional directives:
#require "package";; to load a package
#list;; to list the available packages
#camlp4o;; to load camlp4 (standard syntax)
#camlp4r;; to load camlp4 (revised syntax)
#predicates "p,q,...";; to set these predicates
Topfind.reset();; to force that packages will be reloaded
#thread;; to enable threads
- : unit = ()
# #require "unix";;
/usr/lib/ocaml/unix.cma: loaded
# #require "bitstring";;
/usr/lib/ocaml/bitstring: added to search path
/usr/lib/ocaml/bitstring/bitstring.cma: loaded
# #camlp4o;;
/usr/lib/ocaml/dynlink.cma: loaded
/usr/lib/ocaml/camlp4: added to search path
/usr/lib/ocaml/camlp4/camlp4o.cma: loaded
Camlp4 Parsing version 3.12.0
# #require "bitstring.syntax";;
/usr/lib/ocaml/bitstring/unix.cma: loaded
Cannot find file /usr/lib/ocaml/bitstring/unix.cma.
/usr/lib/ocaml/bitstring/bitstring.cma: loaded
/usr/lib/ocaml/bitstring/bitstring_persistent.cma: loaded
/usr/lib/ocaml/bitstring/pa_bitstring.cmo: loaded
#
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (900, 'testing'), (700, 'stable'), (500, 'stable'), (90, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_CH.UTF-8, LC_CTYPE=fr_CH.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages libbitstring-ocaml-dev depends on:
ii camlp4 [camlp4-3.12.0] 3.12.0-1~38 Pre Processor Pretty Printer for O
ii libbitstring-ocaml [lib 2.0.2-1+3.12.0+1 Erlang-style bitstrings for OCaml
ii ocaml-nox [ocaml-nox-3. 3.12.0-1~38 ML implementation with a class-bas
libbitstring-ocaml-dev recommends no packages.
libbitstring-ocaml-dev suggests no packages.
-- no debconf information
Reply to: