Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!uakari.primate.wisc.edu!gem.mps.ohio-state.edu!apple!usc!orion.oac.uci.edu!uci-ics!ucla-cs!math.ucla.edu!mesquite!barry From: barry@mesquite.math.ucla.edu (Barry Merriman) Newsgroups: comp.emacs Subject: Re: Comipiling Gnu Emacs to use X Windows Summary: I can't! Message-ID: <1910@sunset.MATH.UCLA.EDU> Date: 20 Oct 89 19:43:45 GMT References: <164@seqp4.UUCP> Sender: news@MATH.UCLA.EDU Reply-To: barry@math.ucla.edu (Barry Merriman) Organization: UCLA Department of Math Lines: 93 I've been trying to install gnu emacs 18.55 on my sun 3/110 for the last couple weeks (in my spare time)---its a no go! [Political Note: they don't support or encourage using gnu emacs at the UCLA math dept., because its "too big" and "too slow", so I have to install my own personal copy...if I get it up and running, they'll make it publicly available, but still unsupported.] Can someone help me bring the joys of gnu emacs to the UCLA math deptartment? My goal is emacs with X11 support. Here are the problems: After setting the appropriate paths, and selecting #include "s-bsd4-2.h" #include "m-sun3.h" in the config.h file, I try: Case A: make gnu emacs with no X10 or X11 support: This is a test case, and it still has compilation errors. If I use make -i instead of make in the build-install file, I can suppress the errors and get a (nearly) functional copy of emacs 18.55. here are the errors I get during the making: "filelock.c", line 54: pw_name undefined *** Error code 1 "fileio.c", line 604: pw_dir undefined *** Error code 1 "editfns.c", line 73: pw_name undefined "editfns.c", line 88: pw_gecos undefined *** Error code 1 The resulting emacs works, except it doesn't recongize relative path names---to edit a file I have to give the full path name staring with my home directory. I suspect there are other more subtle errors related to filelock.c that I haven't hit yet. Case B: gnu emacs with X support (but not X11) This is getting more interesting. I select #define HAVE_X_WINDOWS in config.h, and do build-install. I get a buch of errors about missing X/*.h files in includes---but that's easy, since UCLA math never installed X10! So, I pull the /usr/local/X/X directory off a more enlightened system, and also get /usr/lib/libX.a . I put this stuff in the emacs directory, hack the makefiles so it can find them, and compile again. Fine, but now I get the following errors: (in addition to Case A errors) Undefined: _XGetHardwareColor _XStoreBitmap _XOpenFont (+ about 25 other X functions). Which suggests that I need the contents of /usr/local/X/Xlib . Will I have to grab the entire /usr/local/X before make stops complaining? I don't feel like owning all of X10 just to use emacs with X windows... This brings us to the most interesting case, Case C: gnu emacs with X11 support (yes, thankfully UCLA has X11 R3) So, I #define X11 in config.h, and do a build-install. But my launch is scrubbed: I get the following errors (in addition to Case A errors): Undefined: f68881_used *** Error code 1 rm -f ../etc/DOC ../etc/make-docfile dispnew.o scroll.o xdisp.o window.o term.o cm.o x11term.o [long list of *.o *.el *.elc files deleted] lisp/buff-menu.elc ../lisp/subr.elc ../lisp/version.el > ../etc/DOC^M ./temacs -batch -l inc-vers Make: Cannot load ./temacs. Stop. And thats it. No executable emacs is produced. But It does seem to compile x11term and x11fns OK, at least. So, how can I get emacs with X11 R3 to work? If it helps, note that we do have /usr/lib/libX11.a in place. Up with gnu emacs 18.55! (and soon, I hope...) -Barry Merriman