caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* ubuntu ocaml missing unix module
@ 2006-02-25  3:58 Brendan Miller
  2006-02-25  4:10 ` [Caml-list] " Erik de Castro Lopo
  0 siblings, 1 reply; 2+ messages in thread
From: Brendan Miller @ 2006-02-25  3:58 UTC (permalink / raw)
  To: caml-list

[-- Attachment #1: Type: text/plain, Size: 440 bytes --]

has anyone else run into this? on ocaml 3.08.3-3ubuntu5(breazy) the
implementation of the Unix module doesn't seem to be included. I get this
error when trying to use functions in UnixLabels or Unix

No implementations provided for the following modules:
  UnixLabels referenced from net.cmx

anyone know how to fix this? I'm a little frustrated, as I don't want to
remove this package and mess up everything that depends on it...

[-- Attachment #2: Type: text/html, Size: 469 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Caml-list] ubuntu ocaml missing unix module
  2006-02-25  3:58 ubuntu ocaml missing unix module Brendan Miller
@ 2006-02-25  4:10 ` Erik de Castro Lopo
  0 siblings, 0 replies; 2+ messages in thread
From: Erik de Castro Lopo @ 2006-02-25  4:10 UTC (permalink / raw)
  To: caml-list

Brendan Miller wrote:

> has anyone else run into this? on ocaml 3.08.3-3ubuntu5(breazy) the
> implementation of the Unix module doesn't seem to be included.

I'm running Breezy and I've got:

    erikd@mingus > ls -l /usr/lib/ocaml/3.08.3/unix.*
    -rw-r--r--  1 root root 59880 Aug 24  2005 /usr/lib/ocaml/3.08.3/unix.a
    -rw-r--r--  1 root root 22277 Aug 24  2005 /usr/lib/ocaml/3.08.3/unix.cma
    -rw-r--r--  1 root root 20956 Aug 24  2005 /usr/lib/ocaml/3.08.3/unix.cmi
    -rw-r--r--  1 root root 10054 Aug 24  2005 /usr/lib/ocaml/3.08.3/unix.cmx
    -rw-r--r--  1 root root   698 Aug 24  2005 /usr/lib/ocaml/3.08.3/unix.cmxa
    -rw-r--r--  1 root root 52002 Aug 24  2005 /usr/lib/ocaml/3.08.3/unix.mli

> I get this
> error when trying to use functions in UnixLabels or Unix
> 
> No implementations provided for the following modules:
>   UnixLabels referenced from net.cmx
> 
> anyone know how to fix this? I'm a little frustrated, as I don't want to
> remove this package and mess up everything that depends on it...

I've never used the UnixLabels module, but I do know that if I want
to use the Unix module (and some others like Str) I have to explicitly
link it by adding unix.cmxa to the link line so that I have something
like this in my Makefile:

    $(OCAMLOPT) -o <target exeutable> str.cmxa <list of .cmx files>

HTH,
Erik
-- 
+-----------------------------------------------------------+
  Erik de Castro Lopo
+-----------------------------------------------------------+
Dar al-Harb : http://en.wikipedia.org/wiki/Dar_al-Harb


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-02-25  4:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-25  3:58 ubuntu ocaml missing unix module Brendan Miller
2006-02-25  4:10 ` [Caml-list] " Erik de Castro Lopo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).