Subject: Re[2]: Shared object "" not found
To: None <port-alpha@NetBSD.ORG,>
From: None <>
List: tech-userlevel
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
     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=
> > My platform is a dec alpha (multia) box, running the latest current=20
> It's highly likely that those packages aren't ELF-aware=2E=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:
> /usr/X11R6/lib/X11/config/NetBSD=2Ecf=20
> which does a #include <bsdLib=2Erules>, which contains (line 156)=20
> #define SharedLibraryLoadFlags -shared -Wl,-rpath,$(USRLIBDIR)=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=
> it that the following argument $(USRLIBDIR) is a directory to be added to=
> the rpath=2E You can have multiple rpaths if you want, they are concatena=
> to make a search path=2E
> Are these NetBSD packages?! Not even being linked correctly?!  Or are the=
> things you are importing independently?  What programs?
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
Zdenek Salvet                                              salvet@ics=2Emun=
           If God had meant for us to be in the Army,
         we would have been born with green, baggy skin=2E