[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#354484: marked as done (ocaml: Big_int libraries are missing)



Your message dated Sun, 26 Feb 2006 12:35:51 -0500
with message-id <20060226173551.GA5267@localhost>
and subject line Bug#354484: ocaml: Big_int libraries are missing
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: ocaml
Version: 3.09.1-3
Severity: normal

Hi, 

I just tried to run an ocaml program using Big_int. It failed.
big_int.mli, big_int.cmi and big_int.cmx are present. big_int.cma and
big_int.cmxa are missing. A snippet from the toplevel:

# Big_int.unit_big_int;;
Reference to undefined global `Big_int'

I'm not sure what this means.

Christopher


-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (990, 'testing')
Architecture: sparc (sparc64)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.15.4
Locale: LANG=C, LC_CTYPE=de_DE (charmap=ISO-8859-1)

Versions of packages ocaml depends on:
ii  ocaml-base [ocaml-base-3.09.1 3.09.1-3   Runtime system for ocaml bytecode 
ii  ocaml-nox [ocaml-nox-3.09.1]  3.09.1-3   ML language implementation with a 

ocaml recommends no packages.

-- no debconf information


--- End Message ---
--- Begin Message ---
On Sun, Feb 26, 2006 at 06:16:19PM +0100, Christopher Zimmermann wrote:
> I just tried to run an ocaml program using Big_int. It failed.
> big_int.mli, big_int.cmi and big_int.cmx are present. big_int.cma and
> big_int.cmxa are missing. A snippet from the toplevel:
> 
> # Big_int.unit_big_int;;
> Reference to undefined global `Big_int'
> 
> I'm not sure what this means.

First, OCaml modules other than the standard library (see Chapter 20
of the manual) are not loaded in the toplevel. You have to do that
yourself, either on the command line, or using the #load directive
interactively.

Second, you want the "nums" library, which includes the Num and
Big_int modules (see Chapter 22 of the manual).

So you could do either
    $ ocaml nums.cmxa
	    Objective Caml version 3.09.1

    # Big_int.unit_big_int;;
    - : Big_int.big_int = <abstr>
or:
    $ ocaml
	    Objective Caml version 3.09.1

    # #load "nums.cma";;
    # Big_int.unit_big_int;;
    - : Big_int.big_int = <abstr>

-- 
Eric Cooper             e c c @ c m u . e d u

--- End Message ---

Reply to: