[haiku] Re: Haunted by libstdc++.r4.so!

  • From: Pete Goodeve <pete.goodeve@xxxxxxxxxxxx>
  • To: haiku@xxxxxxxxxxxxx
  • Date: Mon, 10 Feb 2020 19:27:21 -0800

On Mon, Feb 10, 2020 at 08:24:10AM +0100, Adrien Destugues wrote:

Le 10 février 2020 01:23:15 GMT+01:00, Pete Goodeve 
<pete.goodeve@xxxxxxxxxxxx> a écrit :
On Sun, Feb 09, 2020 at 09:42:51AM +0100, Adrien Destugues wrote:

It's quite possible that one of the "find" modules for cmake is
broken and finds the gcc2 version of a library. In particular, it can
be a problem for modules using pkg-config.

You have two ways to workaround this:
- uninstall pkgconfig and install only pkgconfig_x86
- or, set the PKG_CONFIG_LIBDIR to point to develop/libs/x86 so that
pkgconfig looks there

OK -- thanks!  That finally worked...  I actually set PKG_CONFIG_LIBDIR
to /boot/system/develob/lib/x86/pkgconfig, as that seemed to be more
in line with the manual.  That immediately failed because it couldn't
find a pkgconfig for glib-2.0...  Realized that the x86 development package
for that was missing, so installed it**.  Rerunning with the default settings
*still* wanted libstdc++.r4!  Used the PKG_CONFIG_LIBDIR setting again
and it built a working version.  I don't think I'm much more enlightened
as to actual causes...


** But why did installing glib insist on also installing python3 ??!!
Sorry, but this is one of the really irritating things about HaikuDepot.
It always seems to want to add apparently totally unwanted things!


I'm still in the dark about mechanisms, though.  How does it know which
environment is wanted?
Does the object file itself determine the scheme?  Are there any docs
on this I can find?

There is no "scheme" at that point, just what's in the command line and in
the linked .o, .a and .so files.

OK, I guess what I'm after is where are the indicators that decide which
environment (gcc-2 or x86) the app is going to access?  (And when/where
are these set?)

Thanks,
        -- Pete --

Other related posts: