[haiku-gsoc] locale kit cross tools : linking errors

  • From: PulkoMandy <pulkomandy@xxxxxxxxx>
  • To: haiku-gsoc@xxxxxxxxxxxxx
  • Date: Thu, 2 Jul 2009 15:42:37 +0200

Hello, i've done some more work on compiling the cross tools today.
They compile fine now, but the linking is failing. Here is the list of
errors I get from ld:

../../../generated/objects/linux/x86/release/build/liblocale/liblocale.so:
undefined reference to `find_directory(directory_which, BPath*, bool,
BVolume*)'
../../../generated/objects/linux/x86/release/build/liblocale/liblocale.so:
undefined reference to `BLooper::Unlock()'
../../../generated/objects/linux/x86/release/build/liblocale/liblocale.so:
undefined reference to `load_add_on'
../../../generated/objects/linux/x86/release/build/liblocale/liblocale.so:
undefined reference to `app_info::~app_info()'
../../../generated/objects/linux/x86/release/build/liblocale/liblocale.so:
undefined reference to `app_info::app_info()'
../../../generated/objects/linux/x86/release/build/liblocale/liblocale.so:
undefined reference to `fs_stat_index'
../../../generated/objects/linux/x86/release/build/liblocale/liblocale.so:
undefined reference to `unload_add_on'
../../../generated/objects/linux/x86/release/build/liblocale/liblocale.so:
undefined reference to `BVolumeRoster::BVolumeRoster()'
../../../generated/objects/linux/x86/release/build/liblocale/liblocale.so:
undefined reference to `get_image_symbol'
../../../generated/objects/linux/x86/release/build/liblocale/liblocale.so:
undefined reference to `be_app'
../../../generated/objects/linux/x86/release/build/liblocale/liblocale.so:
undefined reference to `fs_create_index'
../../../generated/objects/linux/x86/release/build/liblocale/liblocale.so:
undefined reference to `BVolumeRoster::GetBootVolume(BVolume*)'
../../../generated/objects/linux/x86/release/build/liblocale/liblocale.so:
undefined reference to `BVolumeRoster::~BVolumeRoster()'
collect2: ld returned 1 exit status

I'm not really sure how to fix them... am I actually missing a library
I need to link ? or are all of them actually missing from host-side
libbe and if so, where should I add them ? For example, i found
header/build/os/app/Looper.h to be the header for BLooper, but could
not find the implementation in src/build/libbe.
Finally, where are all the functions that do not show a class name ? I
guess that should be in libroot ? (I may try to disable other parts of
the locale library to reduce the need for some of these functions, but
the errors show only at link time and most of these functions aren't
called by my code, but probably by other methods I use, which makes
them a little harder to track).

-- 
Adrien Destugues / PulkoMandy
Elève ingénieur ENSSAT EII1- www.enssat.fr
GSoC student for Haiku - http://haiku-os.org
GrafX2 project team - http://code.google.com/p/grafx2

Other related posts: