Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!rutgers!gatech!prism!gt7417a From: gt7417a@prism.gatech.EDU (HYCHE,MARTIN ERIC) Newsgroups: comp.windows.x Subject: HELP ME! (if you have built X11R4 on Sun) Keywords: X11R4, installing, Sun, SunOS Message-ID: <26316@hydra.gatech.EDU> Date: 15 Apr 91 14:13:23 GMT Organization: Georgia Institute of Technology Lines: 79 Sorry for the previous blank post. I was using a brain-dead postnews. I am NOT a system manager, but unfortunately I get stuck with a lot of the system management stuff regarding X. So if you answer my post, don't assume I'm a whiz-bang system admin guy - I'm not. Here's my problem: Our group has two machines, a SUN 3/260 which acts as a master for a SUN 3/50 client. We recently brought our operating system up to SunOS 4.1, and so I thought this would be a good time to rebuild X, and try out the GNU C compiler. I had been told that substantial performance improvements could be gained if you used the GNU C compiler. So I started over completely. I re-downloaded everything from export.lcs.mit.edu and I reconfigured the site.def and sun.cf files exactly as they were before the upgrade to SunOS 4.1 from SunOS 4.0.3. (EXCEPT, OF COURSE, the OSName, OSMinorVersion, and HasGcc build variables). The "make World" went fine, and the "make install" went fine. However, when I say startx as I usually do, and the system startup file tries to call xinit, I get this error: ld.so: libXmu.so.4: file not found ld.so: libXaw.so.4: file not found I figure hey, no problem, just a missing file. But I look in /usr/lib, and there were files there called libXmu.so.4.0, libXmu.sa.4.0, and libXaw.so.4.0, having the suffix "4.0" instead of "4". So I copied the files to the new suffix and changed the protection of the new files to exactly what the old ones were, and tried again. Still gives me the same error message. So I do a man on ld.so and find out a little about how that works. From the man page, I find out that I can set the environment variable LD_LIBRARY_PATH so I set it with the command $ export LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib and try again. Same error. HOWEVER, when I become super-user with the su command, IT RUNS FINE!!!!!!!!! (the startup file calls xinit fine, and everything chugs along just like I'm used to). But when I exit from being super-user (sounds like a Superman movie) and become just little ol' user again, I get the same error message: ld.so: libXmu.so.4: file not found even WITH the LD_LIBRARY_PATH variable set. My own conclusions: since the configuration is exactly the same as it was before, AND WE NEVER HAD TO SET SOME ENVIRONMENT VARIABLE BEFORE, then the problem is one of two things: 1) Something to do with Gcc; or 2) Something to do with SunOS 4.1 (something we didn't install right, bug. etc.) The $1,000,000 question is this: HAS ANYONE SEEN THIS PROBLEM BEFORE? DOES ANYBODY OUT THERE HAVE ANY SUGGESTIONS? I would really appreciate any suggestions! Thanks Eric Hyche eric@medinfo.gatech.edu gt7417a@prism.gatech.edu eric@markov.eedsp.gatech.edu -- ERIC HYCHE | "All I know is - He's a force more ARPA: eric@medinfo.gatech.edu | powerful that Mom and Dad put uucp: ...!{allegra,amd,hplabs,seismo, | together and you owe him BIG!" ut-ngp}!gatech!prism!gt7417a | - Lisa Simpson