This should work, but I don't normally test on FreeBSD.
I assume this is an ELF system, and C names aren't supposed to have a
prepended underscore? If so, there shouldn't be any references to
_GC_push_one. The code in GC_push_regs (mach_dep.s) in the
( defined(I386) && defined(__FreeBSD__) && defined(__ELF__) )
case, should generate calls like
asm("pushl %ebx"); asm("call GC_push_one"); asm("addl $4,%esp");
This is probably not the best way to do things, but it shouldn't
generate references to _GC_push_one. Thus there is either an unexpected
reference from elsewhere, or one of the expected macros is not getting
defined.
If you need more information, please send mail to
hboehm<at>hpl<dot>hp<dot>com
Hans
> I am trying to build the Boehm Garbage Collector under FreeBSD, and am
> having trouble, starting with the undefined reference to
'_GC_push_one'
> when I 'make test'. I will keep slogging, but if there's anyone out
> there who has trod this path before me, any assistance is appreciated.
> Charles
> Sent via Deja.com http://www.deja.com/
> Before you buy.
Sent via Deja.com http://www.deja.com/
Before you buy.