From: Paul Snively <psnively@mac.com>
To: Lionel Sacks <lionelsacks@yahoo.co.uk>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Shared library problem (newbi)
Date: Sun, 15 Aug 2004 08:44:32 -0700 [thread overview]
Message-ID: <00406B8B-EED2-11D8-B061-000A27DEEC20@mac.com> (raw)
In-Reply-To: <BD451ECD.36A8%lionelsacks@yahoo.co.uk>
-----BEGIN PGP SIGNED MESSAGE-----
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.
> http://nab.epfl.ch/
>
> It requires ocaml, gtk and lablgtk.
> I've used fink to install ocaml (3.07+2) and gtk (1.2.10)
> Lablgtk comes from
> http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/lablgtk.html
> 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/dllstr.so definition of _re_partial_match
> /sw/lib/ocaml/stublibs/dllstr.so definition of _re_partial_match
>
>
> Now I'm stumped.
> I haven't done much dev on the mac etc.
>
> Any ideas about the above?
>
Yes.
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
<http://fink.sourceforge.net/doc/porting/shared.php?phpLang=en>
> Any help welcome,
>
> Cheers,
> Lionel.
>
>
>
> -------------------
> To unsubscribe, mail caml-list-request@inria.fr Archives:
> http://caml.inria.fr
> Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ:
> http://caml.inria.fr/FAQ/
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
>
Best of luck, and please let me know if you continue to encounter
difficulties.
Paul
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)
iEYEARECAAYFAkEfhOkACgkQbot1wzHBQBVBWACglBxgrmn7+JeeOTOWeHdl6YKB
2jYAn36HKsl8L3oxA/Awq6Hhyi89Lkff
=5sts
-----END PGP SIGNATURE-----
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
next prev parent reply other threads:[~2004-08-15 15:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-15 13:08 Lionel Sacks
2004-08-15 15:44 ` Paul Snively [this message]
2004-08-15 21:57 ` David Brown
2004-08-18 2:53 ` Jacques Garrigue
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=00406B8B-EED2-11D8-B061-000A27DEEC20@mac.com \
--to=psnively@mac.com \
--cc=caml-list@inria.fr \
--cc=lionelsacks@yahoo.co.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox