sg08+@andrew.cmu.edu (Stephan Greene) (03/13/90)
Solved the problem -- needed to run "ldconfig" to recognize the new shared objects. Thanks for the replies! Life without a SunOS reference manual continues... -Stephan
rminnich@super.ORG (Ronald G Minnich) (03/14/90)
In article <MZz01Ie00XcgM5nH4q@andrew.cmu.edu> sg08+@andrew.cmu.edu (Stephan Greene) writes: >Solved the problem -- needed to run "ldconfig" to recognize the new >shared objects. Thanks for the replies! Well we seem to be the only folks who aren't running ldconfig. None of our X11 shared libraries live in /usr/lib, because we have a hacker's version and a staid, boring version for people who want no surprises. Anyway, I have found that setting the ExtraLibraries define in site.def results in -L switches to ld. Evidently this adds that directory to the search path for dynamic libraries, with the result that LD_LIBRARY_PATH is not necessary, and neither is ld_config- at least, not for me. Your mileage may vary depending on what sub-version of sunos you have. Xterm and Xload are statically bound, as they need suid and sgid resp., but that is the only negative consequence. I have no libraries in /usr/lib, and i have no ldconfig's that need doing, and i have no LD_ blah lbah in my environment. At this point, at SRC, we have no need to have *any* X applications in /usr/bin/X11, or have a soft link in /usr/bin, or any of that stuff. Our /usr is pristine. We are planning to post info about what changes we had to make to the mit tree to make this all work. It sure is nice not having libx* cluttering up /usr/lib, though... ron -- rminnich@super.org
rusty@garnet.berkeley.edu (rusty wright) (03/15/90)
The other thing you can do is put symbolic links to the X libraries in /usr/local/lib; the linkers also look there as well as /usr/lib. I'm like Ron; I like a pristine /usr; I have all of the x stuff in /usr/local/x11r4: /usr/local/x11r4/bin, /usr/local/x11r4/lib, /usr/local/x11r4/man, and /usr/local/x11r4/include. I did have to put a symbolic link in /usr/include pointing to /usr/local/x11r4/include/X11. -- -------------------------------------- rusty c. wright rusty@violet.berkeley.edu ucbvax!violet!rusty