[m-dev.] /usr/bin/ld: Undefined symbols:_MR_global_pointer _GC_register_dynamic_libraries ___data_start __end _data_start

Terrence Brannon princepawn at earthlink.net
Tue May 1 20:30:25 AEST 2001


Fergus Henderson writes:
 > `MR_global_pointer' is supposed to be defined in runtime/mercury_dummy.o,
 > which should get linked into runtime/libmer_rt.a.
 > Try `nm' on runtime/mercury_dummy.o.

Ok, I took a close look at Boehm's changelog and it appears that the
change to support os x occurred in 5.0. So I got that release and took
a look at gcconfig.h, put #define macosx at the top and then make test
worked perfectly.

so then I copied dyn_load.c and gcconfig.h from the 5.0 distribution
into the Mercury tree and made it through the compilation of boehm_gc
directory. However, the final link is still not finding MR_global_pointer

nm on libmr_rt.a yields:

libmer_rt.a(mercury_dummy.o):
00000000 T _MR_dummy_function_call
00000004 T _MR_dummy_identify_function
00000004 C _MR_global_pointer
00000004 C _MR_global_pointer_2

nm on mercury_dummy.o yields:

00000000 T _MR_dummy_function_call
00000004 T _MR_dummy_identify_function
00000004 C _MR_global_pointer
00000004 C _MR_global_pointer_2

so I don't know how to fix this final problem.

--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list