Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!decwrl!ucbvax!ANDREW.CMU.EDU!zs01+ From: zs01+@ANDREW.CMU.EDU (Zalman Stern) Newsgroups: comp.soft-sys.andrew Subject: Re: Yet another 3100 bug Message-ID: Date: 11 Aug 90 08:03:00 GMT References: <3864@auspex.auspex.com> Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 40 Yeah, building ATK on a pmax is a bitch. But many many patches ago, it did build cleanly at lesat once for me following the directions in the README file at the top of the tree. Gary is working on building ATK on his pmax so this stuff should get better. How its supposed to work: You put all the -G 0 libraries in some directory. (The libs that you need are enumerated in the documentation.) If that directory is not $(BASEDIR)/lib/mips_G0, then you must edit the copy of makedo.csh in the source tree. (This is also documented.) Makedo adds this directory to the library search path via a -L switch to ld. External libraries used in makedo lines should use -l instead of absolute library paths. (Note: this may lose on systems that don't support the -L switch to ld. The only real alternative is to replace all explicit library references with macros. To support the -G 0 crud, there will have to be one macro for makedo lines and one for other purposes.) I'm not sure how I got region.do to work. A good fix is to change the Imakefile to use -lX11 instead of $(XLIBDIR)/libx11.a (see aove note). It shouldn't hurt to have runapp linked against the non -G 0 X11 library. Code in runapp can be linked against standard libraries without ill effect. (Unless your standard libraries and -G 0 ones are incompatible, in which case all bets are off.) The MIPSLIBC_G0 docs look pretty broken. In addition it might increase the general sanity in the world to make the macro contain the .a instead of the code in the Imakefile. (On the other hand, changing it now might be more hassle than its worth.) For similar fun, try building CMU CS software on systems that don't support the CPATH and LPATH environment variables sometime... Disclaimers: I don't hack on ATK any more. I hate (I)makefile hacking more than anything else I have to do on a regular basis. Sincerely, Zalman Stern | Internet: zs01+@andrew.cmu.edu | Usenet: I'm soooo confused... Information Technology Center, Carnegie Mellon, Pittsburgh, PA 15213-3890 *** Friends don't let friends program in C++ ***