Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!GANG-OF-FOUR.STANFORD.EDU!weening From: weening@GANG-OF-FOUR.STANFORD.EDU (Joe Weening) Newsgroups: gnu.emacs.bug Subject: Problems compiling Emacs on Alliant Concentrix 5.0 Message-ID: <8909070056.AA17874@Gang-of-Four.Stanford.EDU> Date: 7 Sep 89 00:56:39 GMT Sender: news@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 15 Today I tried to compile Emacs 18.55 on Alliant's latest operating system, Concentrix 5.0 (using a pre-release GCC, though that does not seem to matter), and ran into the following problem. Several files in the src directory include lisp.h, and then go on to read system include files. (For example, emacs.c and several others do this.) lisp.h defines a macro named NULL, but /usr/include/sys/file.h, through a long chain of other include files ending in /usr/include/sys/param.h, also defines NULL (as the constant 0). The result is a message like: emacs.c: In function Fkill_emacs: emacs.c:475: called object is not a function It is fairly easy to fix this by changing the order of include files, so that #include occurs before #include "lisp.h".