From xemacs-m  Sun Jul 13 15:53:35 1997
Received: from steadfast.teradyne.com (steadfast.teradyne.com [131.101.1.200])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id PAA16435
	for <xemacs-beta@xemacs.org>; Sun, 13 Jul 1997 15:53:34 -0500 (CDT)
Received: from engine.ecf.teradyne.com (engine.ecf.teradyne.com [131.101.192.6]) by steadfast.teradyne.com (8.7.1/8.7.1) with ESMTP id QAA17954; Sun, 13 Jul 1997 16:57:36 -0400 (EDT)
Received: (from aichner@localhost) by engine.ecf.teradyne.com (8.7.1/8.7.1) id WAA24846; Sun, 13 Jul 1997 22:52:50 +0200 (MET DST)
To: Axel Seibert <aseibert@cybernet-ag.net>
Cc: xemacs-beta@xemacs.org
Subject: Re: xemacs-20.3-b12 fails to compile in emacs.c
References: <199707132003.WAA13566@sol1.cybernet-ag.net>
X-Face: 4[iHdXiTu\V3u[~\I)<f9HC);%~nG8`oUqv#uzvs6=\V{AjN6Sn
 c/qi;YLwRmEbt8Y*=j5n(urqY@chPh@J'D"QlqD!C8>*}#kYF[-tYl3VZga/HSOP|K,{L
 Rtu@f0y/=O&Cu}\:~d|P$JON?pn?j,&CnPb1z#/TL9bkAJwyol&a:SvYj-VYbM=Dtxhk9
 =w|R6U3_;SH&B<Mfy6Q%#
Mime-Version: 1.0 (generated by tm-edit 7.108)
Content-Type: text/plain; charset=US-ASCII
From: Adrian Aichner <aichner@ecf.teradyne.com>
Date: 13 Jul 1997 22:52:49 +0200
In-Reply-To: Axel Seibert's message of "Sun, 13 Jul 1997 22:03:49 +0200 (MET DST)"
Message-ID: <rxs90zad68u.fsf@ecf.teradyne.com>
Lines: 57
X-Mailer: Gnus v5.4.62/XEmacs 20.3(beta11) - "Stockholm"

>>>>> "Axel" == Axel Seibert <aseibert@cybernet-ag.net> writes:

    Axel> Hi, everybody!  Anybody seen 20.3-b12 fail to compile in
    Axel> emacs.c? This is under NEXTSTEP, once more... cc is more or
    Axel> less plain gcc. Output of configure is appended at the end
    Axel> of this email.

    Axel> Thanx for any insight.  Axel

Axel,

this is how emacs.c was compiled on my SparcStation5 under beta11:

mk2.err:77:cc -c -g -xO4  -Demacs -I. -DHAVE_CONFIG_H \
-I/usr/local/include -I/usr/dt/include -I/usr/openwin/include emacs.c

Could it be that a vital few -I directives are missing on you system?

You could try something along the lines of
--site-includes=/usr/local/include \
in your invocation of configure.

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



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


    Axel> Configured for `m68k-next-nextstep'.

Regards,

Adrian

