Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#111051: Ocamlfind produce unusable top levels

0 views
Skip to first unread message

cgi...@gruposbd.com

unread,
Sep 3, 2001, 7:09:58 AM9/3/01
to

Package: ocaml-findlib
Version: 0.5.1-4

This bug is showed with pxp 1.1-1 but can be reproduced with
any findlib package (netstring, xstr, ...). I'm using Ocaml 3.01-6.1.
My debian is an up-to-date woody, glibc 2.2.4-5 with a custom
kernel 2.4.5.
Basically, I can create a new top level with ocamlfind but
I can't open and use any module defined in the packages
as in this transcript :

cgillot@node89:~$ ocamlfind ocamlmktop -custom -package pxp -linkpkg -o ocamlpxp
cgillot@node89:~$ ./ocamlpxp
Unbound value Neturl.print_url.
Unbound value Netbuffer.print_buffer.
Unbound value Netstream.print_stream.
Unbound value Cgi.print_argument.
Objective Caml version 3.01

# open Pxp_yacc;;
Unbound module Pxp_yacc
#

I don't really know what's happening since I'm just learning
ocaml. Nevertheless, there's no problem to compile a program
by using ocamlfind ocamlc...


--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Stefano Zacchiroli

unread,
Sep 3, 2001, 3:14:23 PM9/3/01
to
On Mon, Sep 03, 2001 at 12:28:55PM +0200, cgi...@gruposbd.com wrote:
> cgillot@node89:~$ ocamlfind ocamlmktop -custom -package pxp -linkpkg -o ocamlpxp
> cgillot@node89:~$ ./ocamlpxp
> Unbound value Neturl.print_url.
> Unbound value Netbuffer.print_buffer.
> Unbound value Netstream.print_stream.
> Unbound value Cgi.print_argument.
> Objective Caml version 3.01
>
> # open Pxp_yacc;;
> Unbound module Pxp_yacc
> #

I'm currently try to solve the problem, also asking Gerd about it.

In the mean time you can use a toplevel loop working with pxp adding to
it the findlib package, look at this:

zack@kitiara:/tmp$ ocamlfind ocamlmktop -o pxpocaml \
> -package pxp,findlib -linkpkg -custom
zack@kitiara:/tmp$ ./pxpocaml

Unbound value Neturl.print_url.
Unbound value Netbuffer.print_buffer.
Unbound value Netstream.print_stream.
Unbound value Cgi.print_argument.

Objective Caml version 3.02

# #require "pxp";;
# Pxp_yacc.default_extension;;
- : 'a Pxp_document.node Pxp_document.extension as 'a = <obj>
# open Pxp_yacc;;
# default_extension;;
- : 'a Pxp_document.node Pxp_document.extension as 'a = <obj>
#

Anyway, I hope to solve the problem in few days, keep waiting.

Tnx for the bug report

Cheers.

--
Stefano "Zack" Zacchiroli <za...@cs.unibo.it> ICQ# 33538863
Home Page: http://www.students.cs.unibo.it/~zacchiro
Undergraduate student of Computer Science @ University of Bologna, Italy
- Information wants to be Open -

Stefano Zacchiroli

unread,
Sep 4, 2001, 5:39:17 PM9/4/01
to
The ocamlfind bug regarding ocamlmktop option was by Gerd (the
upstream author) in findlib release 0.5.4.
I've already build the new package that is currently in incomind
(http://incoming.debian.org).

zack@kitiara:~$ ocamlfind ocamlmktop -o pxpocaml -package pxp \
> -linkpkg -custom
zack@kitiara:~$ ./pxpocaml
Objective Caml version 3.02

# open Pxp_yacc;;


# Pxp_yacc.default_extension;;
- : 'a Pxp_document.node Pxp_document.extension as 'a = <obj>

# default_extension;;
- : 'a Pxp_document.node Pxp_document.extension as 'a = <obj>
#

Tnx again for the report and enjoy with the new ocaml-findlib package.

0 new messages