[haiku-development] Re: [PATCH] libroot improvements

  • From: Artur Wyszynski <aljen-mlists@xxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sun, 01 Mar 2009 02:07:11 +0100

I also found a bug in paths order in runtime loader.
For current trunk version, where gcc4 & gcc2 builds uses that same libroot, everything is working fine, but for gcc4 hybrid with gcc2 alternatives with my changes and NetSurf installed as optional package, there is an unresolved symbol during boot (__ctype_get_mbtype_max from libiconv.so, which is in home/config/lib/libiconv.so - provided by netsurf)

Looking deeper in that i found runtime_loader paths for libraries is "%A/lib:/boot/home/config/lib:/boot/common/lib:/boot/beos/system/lib", so when NetSurf is installed it provides it's own copy of libiconv in home/config/lib, which prevents modified hybrid from booting. If that paths order is correct and we want it in that way, so maybe checking for gcc version of loaded library sooner then now and looking for next one in case of versions mismatch will solve the problem.

regards, aljen

Other related posts: