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

  • From: "Stephan Assmus" <superstippi@xxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sun, 01 Mar 2009 11:34:43 +0100

Hi,

Von: Artur Wyszynski <aljen-mlists@xxxxxxx>
> 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.

I think all other (C++) application packages come in application bundles... :-) 
A GCC2 NetSurf package suitable for GCC4, would have to install it's libs into 
.../lib/gcc2. For the time being, it sounds like a self-contained bundle may be 
the best option.

Best regards,
-Stephan

Other related posts: