[Unison-hackers] Compiling under Mac OS X

Jerome Vouillon Jerome.Vouillon at pps.jussieu.fr
Fri Jul 24 03:26:32 EDT 2009


On Tue, Jul 21, 2009 at 03:17:21PM -0400, Benjamin Pierce wrote:
> >> Undefined symbols:
> >>   "_caml_apply2", referenced from:
> >>       _caml_callback2_exn in libasmrun.a(i386.o)
> >>   "_caml_apply3", referenced from:
> >>       _caml_callback3_exn in libasmrun.a(i386.o)
> >
> > These symbols should come from file unison-blob.o .  You can check
> > they are indeed defined there with the following command:
> >
> >> nm unison-blob.o | grep caml_apply2
> >        0000000000005000 T caml_apply2
> >        0000000000003ef0 T caml_apply21
> >        0000000000003b70 T caml_apply23
> >        00000000000037c0 T caml_apply24
> 
> Output is a little different from yours:
> 
>    ~/current/unison/trunk/src> nm unison-blob.o | grep caml_apply2
>    000024b0 t _caml_apply2

The symbol is local (small t).  That's why it is not used for linking.
Now, we need to understand why.  Is it also local in u-b.o?  How is it
defined in the assembly file?

-- Jerome


More information about the Unison-hackers mailing list