Subject: Re[2]: Shared object "libX11.so.6" not found
To: None <port-alpha@NetBSD.ORG, salvet@ics.muni.cz>
From: None <nick.maniscalco@alfalaval.com>
List: port-alpha
Date: 07/21/1998 14:13:40
     I agree that a hints file would be nice!
     I would love to have the flexibility that this would offer=2E
    =20
     Nick Maniscalco


______________________________ Reply Separator ____________________________=
_____
Subject: Re: Shared object "libX11=2Eso=2E6" not found
Author:  MIME:salvet@ics=2Emuni=2Ecz at INTERNETALFALAVAL
Date:    1998-07-21 14:00


> > I am trying to build various packages, and the X programs won't=20
> > run due to:
> > Shared object "libX11=2Eso=2E6" not found
> > The programs included in the snapshot DO work, and i don't see=20
> > anything different about them=2E Is there a flag i need to set=20
> > somewhere so the shared libraries will be found? Or does the=20
> > mount point of the directory that i build the packages in matter someho=
w?=20
> > My platform is a dec alpha (multia) box, running the latest current=20
snapshot=2E
>=20
> It's highly likely that those packages aren't ELF-aware=2E=20
>=20
> So, as a wild guess, I would direct you to the file that defined the=20
> dynamic library build rules for those nicely working X distribution=20
> programs:
>=20
> /usr/X11R6/lib/X11/config/NetBSD=2Ecf=20
>=20
> which does a #include <bsdLib=2Erules>, which contains (line 156)=20
>=20
> #define SharedLibraryLoadFlags -shared -Wl,-rpath,$(USRLIBDIR)=20
>=20
> The key thing is that for an ELF executable to find the shared library=20
> at run-time, it needs to know the version to look for and it needs to
> know all the possible directories it might be in=2E The -Wl is just Posix
> syntax for passing a flag through to the linker, and the -rpath is tellin=
g=20
> it that the following argument $(USRLIBDIR) is a directory to be added to=
=20
> the rpath=2E You can have multiple rpaths if you want, they are concatena=
ted=20
> to make a search path=2E
>=20
> Are these NetBSD packages?! Not even being linked correctly?!  Or are the=
y=20
> things you are importing independently?  What programs?
    =20
I think it would be better to enhance the ELD ld=2Eso so that it could=20
consult /var/run/ld=2Eso=2Ehints (like a=2Eout ports do) unless -R/-rpath=20
is specified=2E Then one can move libraries without relinking apps=2E
    =20
--=20
Zdenek Salvet                                              salvet@ics=2Emun=
i=2Ecz=20
---------------------------------------------------------------------------=
-
           If God had meant for us to be in the Army,
         we would have been born with green, baggy skin=2E
    =20