FreeBSD linking problem

Archie Cobbs archie at whistle.com
Thu Apr 22 19:00:42 PDT 1999


David Jones writes:
> 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.

I've had similar problems too. The best thing to do is to "make uninstall"
from the old sources before upgrading to get rid of any crud.. or just
remove it all manually.

You can get similar build failures due to old header files as well, fyi...

-Archie

___________________________________________________________________________
Archie Cobbs   *   Whistle Communications, Inc.  *   http://www.whistle.com


More information about the kaffe mailing list