Version française
Home     About     Download     Resources     Contact us    
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: David Brown <caml-list@d...>
Subject: Re: [Caml-list] Shared library problem (newbi)
On Sun, Aug 15, 2004 at 08:44:32AM -0700, Paul Snively wrote:

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

"Fink is broken, don't use it" is a silly answer.  How about reporting a
bug?  Other than a strange bug that isn't reproduceable, no-one has ever
filed a bug against ocaml, so until this point, I've never had any reason
to think there was something wrong with the fink package.

Actually, the fink script just builds ocaml, and only specifies options
because of the prefix.  If it isn't building correctly on OSX, probably
most people who build it themselves would do it wrong as well.  In this
case, the bug would be against ocaml itself.

But, if it could be fixed, fink allows the package to include patches, at
which point it becomes significantly more helpful than trying to compile it
yourself.

Dave