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

Bug#564816: libpostgresql-ocaml-dev: Monothreaded toplevel requires module Mutex.



severity 564816 normal
tags 564816 + upstream
thanks

Guillaume Yziquel a écrit :
> META file seems incorrect. Here's a toplevel session with findlib:
> [...]
> # #require "postgresql";;
> /usr/lib/ocaml/unix.cma: loaded
> /usr/lib/ocaml/postgresql: added to search path
> # #require "postgresql";;/postgresql.cma: loaded
> Error: Reference to undefined global `Mutex'

I think this is quite common for libraries depending on threads. I guess
this is because there are multiple implementation of them, so they are
always explicitly given (on command line, at least).

Sure, there is not much choice in the toplevel so I guess we could tweak
the META file so that #require "postgresql;;" works out of the box. For
example, we could just load an additional module that would do
"#thread;;" inside a toplevel. I'm not sure this is the idiomatic way,
though, nor do I know the guidelines for this.

I've put Gerd Stolpamnn (findlib upstream) and Markus Mottl
(postgreqsl-ocaml upstream) to get their opinion.


Cheers,

-- 
Stéphane





Reply to: