Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] Shared library problem (newbi)
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Paul Snively <psnively@m...>
Subject: Re: [Caml-list] Shared library problem (newbi)
Hash: SHA1

On Aug 15, 2004, at 6:08 AM, Lionel Sacks wrote:

> I wonder if you might be able to help me...
> Problem is this; I'm trying to install/run nab on my little 
> iBookG4/Panther.
> It requires ocaml, gtk and lablgtk.
> I've used fink to install ocaml (3.07+2) and gtk (1.2.10)
> Lablgtk comes from
> Complied and installed my self (version 1.2.7)
> So far so good. Test/demo progs work. Labgtk and gtk are v.1 as 
> required (I
> haven't installed the v.2 series)
> Nab compiles fine and the command line version works OK.
> However, when I try to run the graphical version (that uses the 
> tcltc/labtk
> etc). I get:
> lsacks$ ./bin/nabviz-top
> Fatal error: cannot load shared library dllstr
> Reason: dyld: ocamlrun multiple definitions of symbol _re_partial_match
> /sw/lib/ocaml/stublibs/ definition of _re_partial_match
> /sw/lib/ocaml/stublibs/ definition of _re_partial_match
> Now I'm stumped.
> I haven't done much dev on the mac etc.
> Any ideas about the above?

Short answer: Mach-O (Darwin/Mac OS X executable file format) sucks 
dead donkey dingos, and you can quote me on that.

Longer answer: apparently the version of O'Caml provided as a Fink 
package was not compiled with the correct link options.

Slightly longer answer still: don't use Fink; it almost always ends up 
costing you more than it buys you. You can build O'Caml, gtk, and 
lablgtk from source. The trick when you build O'Caml, though, will be 
to ensure that the LDFLAGS that the stub libraries get include "-bundle 
- -undefined suppress -flat_namespace". There's actually a good 
discussion of the issues at 

> Any help welcome,
> Cheers,
>  Lionel.
> -------------------
> To unsubscribe, mail Archives: 
> Bug reports: FAQ: 
> Beginner's list:
Best of luck, and please let me know if you continue to encounter 


Version: GnuPG v1.2.4 (Darwin)


To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: