Re: Netsys, multi-threading, with findlib on Debian.

Guillaume Yziquel <[email protected]> Sun, 01 Mar 2009 20:37:50 +0100
Newsgroups gmane.comp.lang.ocaml.lib.net.devel
Message-ID <[email protected]>
Guillaume Yziquel a écrit :
> Hello.

Hi again.

> I've been trying to use netclient on my Debian system:
> 
> It seems to me (but I may be completely wrong) that netsys is not 
> packaged in a way that supports multithreading. The META.in tag from the 
> source of netsys does not contain any mt tag.
> 
> Is it intended? Or is it simply me?
> 
> All the best,

In fact, the situation is even weirder to me:

After #use "topfind";; and #thread;;, #require "netclient";; does not 
work, but #require "netsys", and then #require "netclient";; works out 
properly...

> yziquel@seldon:~$ ocaml
>         Objective Caml version 3.10.2
> 
> # #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 = ()
> # #thread;;
> /usr/lib/ocaml/3.10.2/threads: added to search path
> /usr/lib/ocaml/3.10.2/unix.cma: loaded
> /usr/lib/ocaml/3.10.2/threads/threads.cma: loaded
> # #require "netclient";;
> /usr/lib/ocaml/3.10.2/equeue: added to search path
> /usr/lib/ocaml/3.10.2/equeue/equeue.cma: loaded
> Reference to undefined global `Netsys'
> # 
> yziquel@seldon:~$ ocaml
>         Objective Caml version 3.10.2
> 
> # #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 = ()
> # #thread;;             
> /usr/lib/ocaml/3.10.2/threads: added to search path
> /usr/lib/ocaml/3.10.2/unix.cma: loaded
> /usr/lib/ocaml/3.10.2/threads/threads.cma: loaded
> # #require "netsys";;
> /usr/lib/ocaml/3.10.2/netsys: added to search path
> /usr/lib/ocaml/3.10.2/netsys/netsys.cma: loaded
> # #require "netclient";;
> /usr/lib/ocaml/3.10.2/equeue: added to search path
> /usr/lib/ocaml/3.10.2/equeue/equeue.cma: loaded
> /usr/lib/ocaml/3.10.2/equeue/unixqueue_mt.cmo: loaded
> /usr/lib/ocaml/3.10.2/pcre: added to search path
> /usr/lib/ocaml/3.10.2/pcre/pcre.cma: loaded
> /usr/lib/ocaml/3.10.2/netstring: added to search path
> /usr/lib/ocaml/3.10.2/netstring/netstring.cma: loaded
> /usr/lib/ocaml/3.10.2/netstring/netstring_mt.cmo: loaded
> /usr/lib/ocaml/3.10.2/netstring/netstring_top.cmo: loaded
> /usr/lib/ocaml/3.10.2/netstring/netaccel.cma: loaded
> /usr/lib/ocaml/3.10.2/netstring/netaccel_link.cmo: loaded
> /usr/lib/ocaml/3.10.2/netclient: added to search path
> /usr/lib/ocaml/3.10.2/netclient/netclient.cma: loaded
> /usr/lib/ocaml/3.10.2/netclient/http_client_mt.cmo: loaded
> # 

All the best,

-- 
      Guillaume Yziquel
http://yziquel.homelinux.org/

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Ocamlnet-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ocamlnet-devel