Re: [as-devel] Can't startx
Frederick Bruckman (fredb@immanent.net)
Mon, 16 Jul 2001 11:30:36 -0500 (CDT)
On Mon, 16 Jul 2001, Paul B. Lorah wrote:
> I just compiled AfterStep on NetBSD/mac68k -- the compliling and
> installation appeared to go well, however now when I try to "startx" or
> "afterstep" I get the following error:
>
> "/usr/libexec/ld.so: afterstep: libX11.so.6.1: No such file or directory
> "
>
> I found the file "libX11.so.6.1" in /usr/X11R6/lib -- is this the right
> place?
There are several ways to tell an executable where to look for shared
libraries, but only one that works both on a.out format executables
(what NetBSD/mac68k produces currently), and ELF format executables
(what NetBSD/i386, NetBSD/sparc and other NetBSD/m68k produce
currently, and all NetBSD will produce eventually).
You should reconfigure with "LDFLAGS=-Wl,-R/usr/X11R6/lib" in your
environment, and relink. "-Wl,-R" is an ELF extension, which has been
back-ported to all NetBSD/a.out platforms. The old, "pure", a.out way
would be to add "/usr/X11R6/lib" to the global searchpath in
/etc/ld.so.conf. This still works, but it's preferred to let each
executable set it's own path, ELF-style.
Frederick