caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Cygwin, OCaml 3.10 and dllunix
@ 2007-07-02 13:32 Joel Reymont
  2007-07-02 13:57 ` [Caml-list] " Igor Peshansky
  2007-07-02 14:15 ` Philippe Wang
  0 siblings, 2 replies; 4+ messages in thread
From: Joel Reymont @ 2007-07-02 13:32 UTC (permalink / raw)
  To: caml-list

How would I resolve this error under Cygwin?

/usr/local/lib/ocaml/unix.cma: loaded
Cannot load required shared library dllunix.
Reason: dllunix.so: dynamic loading not supported on this platform.
/usr/local/lib/ocaml/site-lib/oUnit: added to search path
/usr/local/lib/ocaml/site-lib/oUnit/oUnit.cma: loaded
Reference to undefined global `Unix'

	Thanks, Joel


--
http://topdog.cc      - EasyLanguage to C# compiler
http://wagerlabs.com  - Blog






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

* Re: [Caml-list] Cygwin, OCaml 3.10 and dllunix
  2007-07-02 13:32 Cygwin, OCaml 3.10 and dllunix Joel Reymont
@ 2007-07-02 13:57 ` Igor Peshansky
  2007-07-02 18:43   ` Alain Frisch
  2007-07-02 14:15 ` Philippe Wang
  1 sibling, 1 reply; 4+ messages in thread
From: Igor Peshansky @ 2007-07-02 13:57 UTC (permalink / raw)
  To: Joel Reymont; +Cc: caml-list

On Mon, 2 Jul 2007, Joel Reymont wrote:

> How would I resolve this error under Cygwin?
>
> /usr/local/lib/ocaml/unix.cma: loaded
> Cannot load required shared library dllunix.
> Reason: dllunix.so: dynamic loading not supported on this platform.
> /usr/local/lib/ocaml/site-lib/oUnit: added to search path
> /usr/local/lib/ocaml/site-lib/oUnit/oUnit.cma: loaded
> Reference to undefined global `Unix'
>
> 	Thanks, Joel

You'd fix the dynamic loading mechanism to work in Cygwin.  I have started
in that direction with O'Caml 3.08 (but the version I built broke Unison,
so it never got released -- I can send you my patches if you're
interested).  Alain Frisch also announced having ported the Dynlink module
to Windows, which could be used in the Cygwin version.  But the bottom
line is that nobody has made it work yet.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha@cs.nyu.edu | igor@watson.ibm.com
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Belief can be manipulated.  Only knowledge is dangerous.  -- Frank Herbert


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

* Re: [Caml-list] Cygwin, OCaml 3.10 and dllunix
  2007-07-02 13:32 Cygwin, OCaml 3.10 and dllunix Joel Reymont
  2007-07-02 13:57 ` [Caml-list] " Igor Peshansky
@ 2007-07-02 14:15 ` Philippe Wang
  1 sibling, 0 replies; 4+ messages in thread
From: Philippe Wang @ 2007-07-02 14:15 UTC (permalink / raw)
  To: Joel Reymont, ocaml ml

Joel Reymont wrote:
> How would I resolve this error under Cygwin?
>
> /usr/local/lib/ocaml/unix.cma: loaded
> Cannot load required shared library dllunix.
> Reason: dllunix.so: dynamic loading not supported on this platform.
> /usr/local/lib/ocaml/site-lib/oUnit: added to search path
> /usr/local/lib/ocaml/site-lib/oUnit/oUnit.cma: loaded
> Reference to undefined global `Unix'
>
>     Thanks, Joel
>
>
> -- 
> http://topdog.cc      - EasyLanguage to C# compiler
> http://wagerlabs.com  - Blog

Hi,

It seems you want to load modules with the top level ("ocaml" command), 
but your system doesn't allow dynamic loading...

So I suggest you to use ocamlmktop.
It allows you to create a toplevel with the required libraries.

http://caml.inria.fr/pub/docs/manual-ocaml/manual023.html#htoc113

--
Philippe Wang
  mail[at]philippewang.info


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

* Re: [Caml-list] Cygwin, OCaml 3.10 and dllunix
  2007-07-02 13:57 ` [Caml-list] " Igor Peshansky
@ 2007-07-02 18:43   ` Alain Frisch
  0 siblings, 0 replies; 4+ messages in thread
From: Alain Frisch @ 2007-07-02 18:43 UTC (permalink / raw)
  To: caml-list

Igor Peshansky wrote:
> You'd fix the dynamic loading mechanism to work in Cygwin.  I have started
> in that direction with O'Caml 3.08 (but the version I built broke Unison,
> so it never got released -- I can send you my patches if you're
> interested).  Alain Frisch also announced having ported the Dynlink module
> to Windows, which could be used in the Cygwin version.  But the bottom
> line is that nobody has made it work yet.

I confirm that the natdynlink branch allows to load C stub DLLs (so that
you don't need custom runtimes or toplevels), including with Cygwin.
Note that this is largely independant of the port of Dynlink into native
code.

-- Alain


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

end of thread, other threads:[~2007-07-02 18:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-02 13:32 Cygwin, OCaml 3.10 and dllunix Joel Reymont
2007-07-02 13:57 ` [Caml-list] " Igor Peshansky
2007-07-02 18:43   ` Alain Frisch
2007-07-02 14:15 ` Philippe Wang

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