From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id RAA04285; Sun, 15 Aug 2004 17:44:52 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id RAA03064 for ; Sun, 15 Aug 2004 17:44:51 +0200 (MET DST) Received: from smtpout.mac.com (smtpout.mac.com [17.250.248.84]) by nez-perce.inria.fr (8.12.10/8.12.10) with ESMTP id i7FFinmL001994 for ; Sun, 15 Aug 2004 17:44:50 +0200 Received: from mac.com (smtpin01-en2 [10.13.10.146]) by smtpout.mac.com (8.12.6/MantshX 2.0) with ESMTP id i7FFinqa012946; Sun, 15 Aug 2004 08:44:49 -0700 (PDT) Received: from [192.168.1.100] (dsl081-080-123.lax1.dsl.speakeasy.net [64.81.80.123]) (authenticated bits=0) by mac.com (Xserve/smtpin01/MantshX 4.0) with ESMTP id i7FFim51011414; Sun, 15 Aug 2004 08:44:48 -0700 (PDT) In-Reply-To: References: Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <00406B8B-EED2-11D8-B061-000A27DEEC20@mac.com> Content-Transfer-Encoding: 7bit Cc: caml-list@inria.fr From: Paul Snively Subject: Re: [Caml-list] Shared library problem (newbi) Date: Sun, 15 Aug 2004 08:44:32 -0700 To: Lionel Sacks X-Pgp-Agent: GPGMail 1.0.2 X-Mailer: Apple Mail (2.619) X-Miltered: at nez-perce with ID 411F84F1.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 hash:01 lionel:01 lablgtk:01 fink:01 3.07:01 lablgtk:01 wwwfun:01 olabl:01 complied:01 compiles:01 ocamlrun:01 stublibs:01 stublibs:01 darwin:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk -----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 > 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