[Unison-hackers] Help building OSX GUI

Martin von Gagern Martin.vGagern at gmx.net
Wed May 6 13:49:50 EDT 2009


Alan Schmitt wrote:
>> Above as above, the one I quoted? That shouldn't be the case, because
>> the above error message was caused by C files, where ocamlopt only
>> invokes gcc, so what ocaml itself is built against should not matter.
> 
> It matters, because ocamlopt links the cmx files produced with the ocaml
> standard library (and other libraries, such as the unix one, if
> required). If the compiled ocaml library mentions Leopard specific
> symbols (because its C parts were compiled without specifying a target
> OS, thus by default it's the current OS), then when linking everything
> together, there is a mismatch between this 10.5 standard library and the
> requirement for the whole binary to be 10.4 or above. Is it clearer?

I still believe there is a misunderstanding. My error message originally
came from osxsupport.c, not *.ml, so there is no cmx file involved.

I think I understand what you are saying, and had figured some of it
before. I just don't think it applies to the specific error message I
had mentioned. I would expect slightly different error messages, for
different symbols.

> As I said earlier, it's not the objects it produces but the library that
> were built when building ocaml, and unless they are compiled as 10.4
> they will reference problematic symbols.

I see. I had assumed that the libraries like unix and so on would get
dynamically linked in at runtime, so that it doesn't mater what symbols
they contain on the system they were built, as long as the system they
are run contains correct symbols. But at least unison doesn't seem to
get built that way, and maybe thats better this way, as statically
linked applications are a lot easier to distribute.

I'm looking forward to someone giving this a try with a 10.5 ocaml, so
that the patch can get incorporated.

Greetings,
 Martin


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: OpenPGP digital signature
Url : http://lists.seas.upenn.edu/pipermail/unison-hackers/attachments/20090506/79752289/signature.sig


More information about the Unison-hackers mailing list