From xemacs-m  Thu Sep 25 10:30:51 1997
Received: from sirocco.CC.McGill.CA (sirocco.CC.McGill.CA [132.206.27.12])
	by xemacs.org (8.8.5/8.8.5) with SMTP id KAA19448
	for <xemacs-beta@xemacs.org>; Thu, 25 Sep 1997 10:30:51 -0500 (CDT)
Received: from scylla.math.mcgill.ca (Scylla.Math.McGill.CA [132.206.150.17]) by sirocco.CC.McGill.CA (8.6.12/8.6.6) with ESMTP id LAA07164 for <@mailhost.mcgill.ca:xemacs-beta@xemacs.org>; Thu, 25 Sep 1997 11:37:40 -0400
X-SMTP-Posting-Origin: scylla.math.mcgill.ca (Scylla.Math.McGill.CA [132.206.150.17])
Received: by scylla.math.mcgill.ca (951211.SGI.8.6.12.PATCH1502/930416.SGI.AUTO)
	 id LAA02090; Thu, 25 Sep 1997 11:31:47 -0400
To: xemacs-beta@xemacs.org
Subject: configure failure - 20.3b23 - mips-sgi-irix5.3
From: Jason McLaren <mclaren@math.mcgill.ca>
Mime-Version: 1.0 (generated by tm-edit 7.106)
Content-Type: text/plain; charset=US-ASCII
Date: 25 Sep 1997 11:31:41 -0400
Message-ID: <yywen6d9zqa.fsf@scylla.math.mcgill.ca>
Lines: 315
X-Mailer: Gnus v5.4.52/XEmacs 20.2

I've been having a problem 'configure'-ing the makefiles on my
system. My hardware/OS is mips-sgi-irix5.3. (I tried running configure
with "-with-x11=no" but I still got the same errors.)

The problem comes when configure is trying to determine "size of
short". The output reads:

[snip]
checking size of short... 0
    Defining SIZEOF_SHORT = 0

*** PANIC *** Configure tests are not working - compiler is broken.
*** PANIC *** Please examine config.log for compilation errors.

My config.log follows. I'm afraid I don't understand enough about
'configure' to be able to figure out exactly what's happening. I've
been able to compile 20.2 with "--with-xpm=no", so the "compiler is
broken" message doesn't help much. Any ideas? Sorry if the solution is
obvious -- this is the first xemacs beta I've tried to build.

-- config.log file --
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:852: checking whether ln -s works
configure:1029: checking the configuration name
configure:1483: checking for gcc
configure:1554: checking whether the C compiler (gcc  ) works
configure:1570: gcc -o conftest              conftest.c          1>&5
configure:1590: checking whether the C compiler (gcc  ) is a cross-compiler
configure:1595: checking whether we are using GNU C
configure:1602: gcc -E conftest.c
configure:1616: checking whether gcc accepts -g
configure:1973: checking how to run the C preprocessor
configure:1992: gcc -E       conftest.c >/dev/null 2>conftest.out
configure:2032: checking for AIX
configure:2061: checking whether we are using SunPro C
configure:2074: gcc -c        conftest.c 1>&5
configure:2067: #error Not a  SunPro compiler :-(
configure: failed program was:
#line 2063 "configure"
#include "confdefs.h"

int main() {
#ifndef __SUNPRO_C
#error Not a  SunPro compiler :-(
******* ======= ******** &&&&&&&&
#endif

; return 0; }
configure:2361: checking for dynodump
configure:2432: checking for runtime libraries flag
configure:2444: gcc -o conftest -g -O2 -Wall -Wno-switch           -Xlinker -G -Xlinker 0   conftest.c  -R/no/such/file-or-directory        1>&5
gcc: unrecognized option `-R/no/such/file-or-directory'
cc1: warning: `-g' not supported by this configuration of GCC
collect2: ld returned 1 exit status
/usr/bin/../lib/ld:
Shared and non-shared are incompatible, flags must precede all object files
/usr/bin/../lib/ld: Usage: /usr/bin/../lib/ld [options] file [...]
configure: failed program was:
#line 2437 "configure"
#include "confdefs.h"

int main() {

; return 0; }
configure:2444: gcc -o conftest -g -O2 -Wall -Wno-switch           -Xlinker -G -Xlinker 0   conftest.c  -R /no/such/file-or-directory        1>&5
gcc: /no/such/file-or-directory: No such file or directory
gcc: unrecognized option `-R'
cc1: warning: `-g' not supported by this configuration of GCC
configure: failed program was:
#line 2437 "configure"
#include "confdefs.h"

int main() {

; return 0; }
configure:2444: gcc -o conftest -g -O2 -Wall -Wno-switch           -Xlinker -G -Xlinker 0   conftest.c  -rpath /no/such/file-or-directory        1>&5
gcc: /no/such/file-or-directory: No such file or directory
gcc: unrecognized option `-rpath'
cc1: warning: `-g' not supported by this configuration of GCC
configure: failed program was:
#line 2437 "configure"
#include "confdefs.h"

int main() {

; return 0; }
configure:2542: checking for ranlib
configure:2595: checking for a BSD compatible install
configure:2646: checking for bison
configure:2677: checking for mach/mach.h
configure:2685: gcc -E       conftest.c >/dev/null 2>conftest.out
configure:2681: mach/mach.h: No such file or directory
configure: failed program was:
#line 2680 "configure"
#include "confdefs.h"
#include <mach/mach.h>
configure:2677: checking for sys/stropts.h
configure:2685: gcc -E       conftest.c >/dev/null 2>conftest.out
configure:2677: checking for sys/timeb.h
configure:2685: gcc -E       conftest.c >/dev/null 2>conftest.out
configure:2681: sys/timeb.h: No such file or directory
configure: failed program was:
#line 2680 "configure"
#include "confdefs.h"
#include <sys/timeb.h>
configure:2677: checking for sys/time.h
configure:2685: gcc -E       conftest.c >/dev/null 2>conftest.out
configure:2677: checking for unistd.h
configure:2685: gcc -E       conftest.c >/dev/null 2>conftest.out
configure:2718: checking for utime.h
configure:2726: gcc -E       conftest.c >/dev/null 2>conftest.out
configure:2718: checking for locale.h
configure:2726: gcc -E       conftest.c >/dev/null 2>conftest.out
configure:2718: checking for libgen.h
configure:2726: gcc -E       conftest.c >/dev/null 2>conftest.out
configure:2718: checking for fcntl.h
configure:2726: gcc -E       conftest.c >/dev/null 2>conftest.out
configure:2718: checking for ulimit.h
configure:2726: gcc -E       conftest.c >/dev/null 2>conftest.out
configure:2759: checking for linux/version.h
configure:2767: gcc -E       conftest.c >/dev/null 2>conftest.out
configure:2763: linux/version.h: No such file or directory
configure: failed program was:
#line 2762 "configure"
#include "confdefs.h"
#include <linux/version.h>
configure:2759: checking for kstat.h
configure:2767: gcc -E       conftest.c >/dev/null 2>conftest.out
configure:2763: kstat.h: No such file or directory
configure: failed program was:
#line 2762 "configure"
#include "confdefs.h"
#include <kstat.h>
configure:2759: checking for sys/pstat.h
configure:2767: gcc -E       conftest.c >/dev/null 2>conftest.out
configure:2763: sys/pstat.h: No such file or directory
configure: failed program was:
#line 2762 "configure"
#include "confdefs.h"
#include <sys/pstat.h>
configure:2759: checking for inttypes.h
configure:2767: gcc -E       conftest.c >/dev/null 2>conftest.out
configure:2759: checking for limits.h
configure:2767: gcc -E       conftest.c >/dev/null 2>conftest.out
configure:2797: checking for sys/wait.h that is POSIX.1 compatible
configure:2816: gcc -c -g -O2 -Wall -Wno-switch       conftest.c 1>&5
cc1: warning: `-g' not supported by this configuration of GCC
configure:2840: checking for ANSI C header files
configure:2851: gcc -E       conftest.c >/dev/null 2>conftest.out
configure:2915: gcc -o conftest -g -O2 -Wall -Wno-switch           -Xlinker -G -Xlinker 0   conftest.c          1>&5
cc1: warning: `-g' not supported by this configuration of GCC
collect2: ld returned 1 exit status
/usr/bin/../lib/ld:
Shared and non-shared are incompatible, flags must precede all object files
/usr/bin/../lib/ld: Usage: /usr/bin/../lib/ld [options] file [...]
configure: failed program was:
#line 2904 "configure"
#include "confdefs.h"
#include <ctype.h>
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int main () { int i; for (i = 0; i < 256; i++)
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
exit (0); }

configure:2940: checking whether time.h and sys/time.h may both be included
configure:2952: gcc -c -g -O2 -Wall -Wno-switch       conftest.c 1>&5
cc1: warning: `-g' not supported by this configuration of GCC
configure: In function `main':
configure:2948: warning: unused variable `tp'
configure:2976: checking for sys_siglist declaration in signal.h or unistd.h
configure:2991: gcc -c -g -O2 -Wall -Wno-switch       conftest.c 1>&5
cc1: warning: `-g' not supported by this configuration of GCC
configure: In function `main':
configure:2987: `sys_siglist' undeclared (first use this function)
configure:2987: (Each undeclared identifier is reported only once
configure:2987: for each function it appears in.)
configure:2987: warning: unused variable `msg'
configure: failed program was:
#line 2979 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <signal.h>
/* NetBSD declares sys_siglist in unistd.h.  */
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
int main() {
char *msg = *(sys_siglist + 1);
; return 0; }
configure:3016: checking for struct utimbuf
configure:3037: gcc -c -g -O2 -Wall -Wno-switch       conftest.c 1>&5
cc1: warning: `-g' not supported by this configuration of GCC
configure:3057: checking return type of signal handlers
configure:3077: gcc -c -g -O2 -Wall -Wno-switch       conftest.c 1>&5
cc1: warning: `-g' not supported by this configuration of GCC
configure: In function `main':
configure:3073: warning: unused variable `i'
configure:3099: checking for size_t
configure:3133: checking for pid_t
configure:3167: checking for uid_t in sys/types.h
configure:3206: checking for mode_t
configure:3240: checking for off_t
configure:3275: checking for struct timeval
configure:3293: gcc -c -g -O2 -Wall -Wno-switch       conftest.c 1>&5
cc1: warning: `-g' not supported by this configuration of GCC
configure:3315: checking whether struct tm is in sys/time.h or time.h
configure:3326: gcc -c -g -O2 -Wall -Wno-switch       conftest.c 1>&5
cc1: warning: `-g' not supported by this configuration of GCC
configure: In function `main':
configure:3322: warning: statement with no effect
configure:3350: checking for tm_zone in struct tm
configure:3361: gcc -c -g -O2 -Wall -Wno-switch       conftest.c 1>&5
cc1: warning: `-g' not supported by this configuration of GCC
configure: In function `main':
configure:3357: structure has no member named `tm_zone'
configure: failed program was:
#line 3353 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <time.h>
int main() {
struct tm tm; tm.tm_zone;
; return 0; }
configure:3384: checking for tzname
configure:3397: gcc -o conftest -g -O2 -Wall -Wno-switch           -Xlinker -G -Xlinker 0   conftest.c          1>&5
cc1: warning: `-g' not supported by this configuration of GCC
configure: In function `main':
configure:3393: warning: implicit declaration of function `atoi'
collect2: ld returned 1 exit status
/usr/bin/../lib/ld:
Shared and non-shared are incompatible, flags must precede all object files
/usr/bin/../lib/ld: Usage: /usr/bin/../lib/ld [options] file [...]
configure: failed program was:
#line 3387 "configure"
#include "confdefs.h"
#include <time.h>
#ifndef tzname /* For SGI.  */
extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
#endif
int main() {
atoi(*tzname);
; return 0; }
configure:3423: checking for working const
configure:3475: gcc -c -g -O2 -Wall -Wno-switch       conftest.c 1>&5
cc1: warning: `-g' not supported by this configuration of GCC
configure: In function `main':
configure:3449: warning: unused variable `s'
configure:3469: warning: unused variable `foo'
configure:3437: warning: unused variable `zero'
configure:3431: warning: unused variable `x'
configure:3448: warning: `t' might be used uninitialized in this function
configure:3466: warning: `b' might be used uninitialized in this function
configure:3500: checking whether make sets ${MAKE}
configure:3525: checking whether byte ordering is bigendian
configure:3541: gcc -c -g -O2 -Wall -Wno-switch       conftest.c 1>&5
cc1: warning: `-g' not supported by this configuration of GCC
configure: In function `main':
configure:3536: `bogus' undeclared (first use this function)
configure:3536: (Each undeclared identifier is reported only once
configure:3536: for each function it appears in.)
configure:3536: parse error before `endian'
configure: failed program was:
#line 3530 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/param.h>
int main() {

#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
 bogus endian macros
#endif
; return 0; }
configure:3586: gcc -o conftest -g -O2 -Wall -Wno-switch           -Xlinker -G -Xlinker 0   conftest.c          1>&5
cc1: warning: `-g' not supported by this configuration of GCC
configure:3574: warning: return-type defaults to `int'
collect2: ld returned 1 exit status
/usr/bin/../lib/ld:
Shared and non-shared are incompatible, flags must precede all object files
/usr/bin/../lib/ld: Usage: /usr/bin/../lib/ld [options] file [...]
configure: failed program was:
#line 3573 "configure"
#include "confdefs.h"
main () {
  /* Are we little or big endian?  From Harbison&Steele.  */
  union
  {
    long l;
    char c[sizeof (long)];
  } u;
  u.l = 1;
  exit (u.c[sizeof (long) - 1] == 1);
}
configure:3612: checking size of short
configure:3626: gcc -o conftest -g -O2 -Wall -Wno-switch           -Xlinker -G -Xlinker 0   conftest.c          1>&5
cc1: warning: `-g' not supported by this configuration of GCC
configure:3618: warning: return-type defaults to `int'
collect2: ld returned 1 exit status
/usr/bin/../lib/ld:
Shared and non-shared are incompatible, flags must precede all object files
/usr/bin/../lib/ld: Usage: /usr/bin/../lib/ld [options] file [...]
configure: failed program was:
#line 3615 "configure"
#include "confdefs.h"
#include <stdio.h>
main()
{
  FILE *f=fopen("conftestval", "w");
  if (!f) exit(1);
  fprintf(f, "%d\n", sizeof(short));
  exit(0);
}

