I just built a recent snapshot on a FreeBSD system, which previously had a
1.0b3 snapshot installed.
When linking Kaffe, I got hundreds of unresolved symbol errors. Many were
to _enterUnsafeRegion and _leaveUnsafeRegion.
The problem? Kaffe is linked using -lkaffevm, and libkaffevm is dynamic.
So, ld searched my LD_LIBRARY_PATH for it. The old library, installed in
/usr/local/lib, was hit first, and ld couldn't find the symbols. Choke.
When I renamed /usr/local/lib/libkaffevm.so aside, the build proceeded
correctly, since ld was forced to look further down its path to find the
newly built libkaffevm.