[Unison-hackers] Compiling under Mac OS X
Benjamin Pierce
bcpierce at cis.upenn.edu
Fri Jul 24 17:21:02 EDT 2009
OK, now
nm u-b.o | grep apply2
yields
000024b0 t _caml_apply2
and the corresponding bit of u-b.o-startup.s looks like this:
.text
.align 4
.private_extern _caml_apply2
_caml_apply2:
subl $12, %esp
I'll append the whole file, in case that's useful.
- B
-------------- next part --------------
A non-text attachment was scrubbed...
Name: u-b.o.startup.s
Type: application/octet-stream
Size: 92210 bytes
Desc: not available
Url : http://lists.seas.upenn.edu/pipermail/unison-hackers/attachments/20090724/51d50216/u-b.o.startup.bin
-------------- next part --------------
On Jul 24, 2009, at 3:26 AM, Jerome Vouillon wrote:
> 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
> _______________________________________________
> Unison-hackers mailing list
> Unison-hackers at lists.seas.upenn.edu
> http://lists.seas.upenn.edu/mailman/listinfo/unison-hackers
More information about the Unison-hackers
mailing list