Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!wuarchive!zaphod.mps.ohio-state.edu!sdd.hp.com!decwrl!ucbvax!DSL.PITT.EDU!sean From: sean@DSL.PITT.EDU (Sean McLinden) Newsgroups: comp.soft-sys.andrew Subject: Re: Yet another 3100 bug Message-ID: <9008100412.AA21149@cadre.dsl.pitt.edu> Date: 10 Aug 90 04:12:40 GMT Sender: daemon@ucbvax.BERKELEY.EDU Distribution: world Organization: The Internet Lines: 71 > OK, so my 3100 compilation finally gets as far as trying to link the > runapp binary. The Imakefile for atk/apps is set up so that it tries to > get the X11 library simply by using -lX11. Great. Again, we get the > non-libg0 version. > > The fix I found is, in atk/apps/Imakefile, to replace "-lX11" with > "$(XLIBDIR)/libX11.a". I trust something like that will be in the next > patch. I got around it by defining the -L option at the level of the config files. Basically, the following is what I did to get things to work: in config/site.mcr: MIPSLIBC_G0 = /systems/pmax/usr/lib/mips_G0/libc_G0 XLIBDIR = /systems/pmax/usr/lib/mips_G0 XSRCDIR = /sources/pmax/X11/mit/ XUTILDIR = /systems/pmax/usr/bin/X11 XBASEDIR = /systems/pmax ROOTDIR = /systems/pmax BASEDIR = /systems/pmax/usr/andrew DEFAULT_ANDREW_ENV = /systems/pmax/usr/andrew MAKEDOFLAGS = -L/systems/pmax/usr/lib/mips_G0 ${MAKEDODEBUG} \ -d ${BASEDIR}/lib -b ${BASEDIR}/bin in config/allsys.mcr: (this is needed because these are not read, properly, from the other files in time to make the Makefiles correctly. XBASEDIR = /systems/pmax XSRCDIR = /services/X11/mit/ BASEDIR = /systems/pmax/usr/andrew DESTDIR = /systems/pmax/usr/andrew in config/pmax_3/system.mcr: CC = cc -Dvoid=int -G 0 "-Wl,-D,1000000" \ -L/systems/pmax/usr/lib/mips_G0 Also, if you define AMDS, you'll need to get "mpp" (why anyone chose to implement Yet Another Macro Preprocessor when there are at least half a dozen floating around for Unix is beyond me, (let alone why it is copyrighted by IBM and part of the Transarc code)! > I really don't understand how anyone ever managed to compile Andrew on > the 3100 without hitting all these problems. Well, now I'll type "make > World" again and see how far it gets this time... -- Nathaniel If you have already gotten past the build of the examples, the make world will fail because it quits if the ".eh" files already exist (which I why I also remove /usr/andrew before a "make world"). Also, unless you figure out something that I didn't, you'll need to actually run X11R4 (not DECWindows), to get Andrew to run. Otherwise the applications will start but the fonts, cursors, and icons will be screwed up. Don't forget that building AMDS will destroy your system mailer unless you make the BASEDIR changes (this might have been fixed with Patchlevel 6), since it overwrites /usr/lib/sendmail, /bin/mail, and other things without asking and NOT part of "make install" but rather as part of "make world"). Other than that it was easy. Sean