bug-groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Unable to compile under Irix


From: Roberto Totaro
Subject: Unable to compile under Irix
Date: Mon, 23 Apr 2001 09:53:35 +0200
User-agent: Mutt/1.2.5i

GROFF VERSION:
1.16

MACHINE:
SGI Octane R10000

OS:
Irix 6.5.11f

COMPILER:
gcc 2.95.3 or MIPSPro CC version 7.3.1.2m

INPUT FILES:
none

COMMAND LINE:
none

DESCRIPTION OF INCORRECT BEHAVIOUR:
I tried to compile groff with both the above mentioned compilers, however
there are conflicts between the  definitions in the groff-getopt.h header file
and getopt.h.

To select the GNU compiler I set the following environment variables before
running configure (with no options):

CC=gcc -mips4 -mabi=n32 -mcpu=r5000
CXX=g++ -mips4 -mabi=n32 -mcpu=r5000
CFLAGS=-O6
CXXFLAGS=-O6

In the case of the SGI compiler, the variables are set to:

CC=cc -mips4 -n32 -r5000 -LANG:std
CXX=CC -mips4 -n32 -r5000 -LANG:std
CFLAGS=-O3 -OPT:Olimit=0
CXXFLAGS=-O3 -OPT:Olimit=0

Make stops after compiling a few files with the following errors:

***GNU cc***
g++ -mips4 -mabi=n32 -mcpu=r5000 -I. 
-I/usr/people/roto/src/incoming/groff-1.16/src/libs/libgroff 
-I/usr/people/roto/src/incoming/groff-1.16/src/include 
-I/usr/people/roto/src/incoming/groff-1.16/src/include -DHAVE_UNISTD_H=1 
-DHAVE_DIRENT_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_DIR_H=1 -DHAVE_STDLIB_H=1 
-DHAVE_STRINGS_H=1 -DSTDLIB_H_DECLARES_PUTENV=1 -DSTDIO_H_DECLARES_POPEN=1 
-DSTDIO_H_DECLARES_PCLOSE=1 -DHAVE_SYS_NERR=1 -DHAVE_SYS_ERRLIST=1 
-DHAVE_CC_LIMITS_H=1 -DRETSIGTYPE=void -DHAVE_STRUCT_EXCEPTION=1 
-DHAVE_UNISTD_H=1 -DHAVE_GETPAGESIZE=1 -DHAVE_MMAP=1 -DHAVE_FMOD=1 
-DHAVE_STRTOL=1 -DHAVE_GETCWD=1 -DHAVE_STRERROR=1 -DHAVE_PUTENV=1 
-DHAVE_RENAME=1 -DHAVE_MKSTEMP=1 -DHAVE_STRCASECMP=1 -DHAVE_STRDUP=1  -O6  -c 
font.cc
In file included from 
/usr/people/roto/src/incoming/groff-1.16/src/include/lib.h:29,
                 from font.cc:31:
/usr/people/roto/src/incoming/groff-1.16/src/include/groff-getopt.h:39: 
redefinition of `struct option'
/usr/people/roto/src/incoming/groff-1.16/src/include/getopt.h:95: previous 
definition here

***MIPSPro CC***
CC -mips4 -n32 -r5000 -LANG:std -I. 
-I/usr/people/roto/src/incoming/groff-1.16/src/libs/libgroff 
-I/usr/people/roto/src/incoming/groff-1.16/src/include 
-I/usr/people/roto/src/incoming/groff-1.16/src/include -DHAVE_UNISTD_H=1 
-DHAVE_DIRENT_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_DIR_H=1 -DHAVE_STDLIB_H=1 
-DHAVE_STRINGS_H=1 -DSTDLIB_H_DECLARES_PUTENV=1 -DSTDIO_H_DECLARES_POPEN=1 
-DSTDIO_H_DECLARES_PCLOSE=1 -DHAVE_SYS_NERR=1 -DHAVE_SYS_ERRLIST=1 
-DHAVE_CC_OSFCN_H=1 -DHAVE_CC_LIMITS_H=1 -DRETSIGTYPE=void 
-DHAVE_STRUCT_EXCEPTION=1 -DHAVE_UNISTD_H=1 -DHAVE_GETPAGESIZE=1 -DHAVE_MMAP=1 
-DHAVE_FMOD=1 -DHAVE_STRTOL=1 -DHAVE_GETCWD=1 -DHAVE_STRERROR=1 -DHAVE_PUTENV=1 
-DHAVE_RENAME=1 -DHAVE_MKSTEMP=1 -DHAVE_STRCASECMP=1 -DHAVE_STRDUP=1  -O3 
-OPT:Olimit=0  -c font.cc
cc-1229 CC: ERROR File = 
/usr/people/roto/src/incoming/groff-1.16/src/include/groff-getopt.h, Line = 38
  The redeclaration of type name "option" (declared at line 83 of
          "/usr/people/roto/src/incoming/groff-1.16/src/include/getopt.h") is
          invalid.

  struct option
         ^

cc-1312 CC: ERROR File = 
/usr/people/roto/src/incoming/groff-1.16/src/include/groff-getopt.h, Line = 50
  More than one instance of overloaded function "getopt" has "C" linkage.

  extern int getopt(int __argc,
             ^

cc-1312 CC: ERROR File = 
/usr/people/roto/src/incoming/groff-1.16/src/include/groff-getopt.h, Line = 53
  More than one instance of overloaded function "getopt_long" has "C" linkage.

  extern int getopt_long(int __argc,
             ^

cc-1312 CC: ERROR File = 
/usr/people/roto/src/incoming/groff-1.16/src/include/groff-getopt.h, Line = 58
  More than one instance of overloaded function "getopt_long_only" has "C"
          linkage.

  extern int getopt_long_only(int __argc,
             ^

4 errors detected in the compilation of "font.cc".



reply via email to

[Prev in Thread] Current Thread [Next in Thread]