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
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 -
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.