From xemacs-m  Sat Jul 19 09:36:14 1997
Received: from sol1.cybernet-ag.net (sol1.cybernet-ag.net [194.221.86.98])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id JAA21250
	for <xemacs-beta@xemacs.org>; Sat, 19 Jul 1997 09:36:11 -0500 (CDT)
Received: (from aseibert@localhost) by sol1.cybernet-ag.net  id QAA09202; Sat, 19 Jul 1997 16:34:19 +0200 (MET DST)
Date: Sat, 19 Jul 1997 16:34:19 +0200 (MET DST)
Message-Id: <199707191434.QAA09202@sol1.cybernet-ag.net>
From: Axel Seibert <aseibert@cybernet-ag.net>
To: xemacs-beta@xemacs.org
Subject: xemacs-30.3b13 fails to copmile under NEXTSTEP

Hi, all!

I received a few responses to my question, why emacs.cfrom 20.3b12
failed to compile under NEXTSTEP. They suggested looking at
CANONICAL_VERSION, which really was broken. b13 fixed this, so that
config.h contains:

#define CANONICAL_VERSION 20_3_b13_m68k_next_nextstep

but still I get:
[btw: cc = gcc under NEXTSTEP, therefore I don't expext problems like
these :-)]

cc -c -O4 -pipe  -Demacs -I. -DHAVE_CONFIG_H emacs.c
emacs.c:456: illegal external declaration, missing `;' after `main_20'
emacs.c:456: illegal external declaration, missing `;' after `,'
emacs.c:456: illegal external declaration, missing `;' after `,'
emacs.c:456: illegal external declaration, missing `;' after `envp'
emacs.c:485: illegal external declaration, found `if'
emacs.c:605: illegal external declaration, found `if'
emacs.c:624: illegal external declaration, missing `;' after `*'
emacs.c:628: illegal external declaration, missing `;' after `*'
emacs.c:633: illegal external declaration, missing `;' after `*'
emacs.c:634: illegal external declaration, missing `;' after `*'
emacs.c:635: illegal external declaration, missing `;' after `*'
emacs.c:638: illegal external declaration, missing `;' after `*'
emacs.c:639: illegal external declaration, missing `;' after `*'
emacs.c:1447: illegal method definition, found `&&'
emacs.c:1448: illegal method definition, missing `{' after `)'
emacs.c:1454: illegal external declaration, found `}'
emacs.c:1787: illegal statement, missing `;' after `main_20'
emacs.c:1815: illegal statement, missing `;' after `main_20'
*** Exit 1
Stop.
*** Exit 1
Stop.

What can I do to find the bug? cc -E (to invoke only the precompiler)
only prints these error messages and terminates. How else can I try to
figure out what the compiler really sees?

Installation reports:

./configure  'm68k-next-nextstep' '--prefix=/usr/local/xemacs' '--with-x=no' '--
cflags=-O4 -pipe' '--extra-verbose'


Configured for `m68k-next-nextstep'.

  Where should the build process find the source code?
/usr/local/src/xemacs- 20.3-b13
  What installation prefix should install use? /usr/local/xemacs
  What operating system and machine description files should XEmacs use?
        `s/nextstep.h' and `m/m68k.h'
  What compiler should XEmacs be built with?              cc -O4 -pipe
  Should XEmacs use the GNU version of malloc?            no
  (The GNU allocators don't work with this system configuration.)
  Should XEmacs use the relocating allocator for buffers? no
  What window system should XEmacs use?                   none
  --------------------------------------------------------------------
  WARNING: Compiling without XPM support.
  WARNING: You should strongly considering installing XPM.
  WARNING: Otherwise toolbars and other graphics will look suboptimal.
  --------------------------------------------------------------------
  Compiling in support for GNU DBM.
  movemail will use "flock" for locking mail spool files.
  WARNING: ---------------------------------------------------------
  WARNING: Compiling in support for runtime error checking.
  WARNING: XEmacs will run noticeably more slowly as a result.
  WARNING: Error checking is on by default for XEmacs beta releases.
  WARNING: ---------------------------------------------------------


Thanx for any insights!
Axel

