[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Wed, 18 Apr 2001 12:18:31 -0400 (EDT)
GROFF VERSION: 1.17
SGI Infinite Reality Monster
MIPSpro Compilers: Version 7.3.1m
none. It's a compile problem.
env CXX="CC" CC="cc" ./configure --prefix=/cs/local
DESCRIPTION OF INCORRECT BEHAVIOUR:
There are two compilation errors.
make: Entering directory `/tmp/groff-1.17/src/preproc/html'
CC -mips3 -I. -I/tmp/groff-1.17/src/preproc/html
I/tmp/groff-1.17/src/include -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1
=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_DIR_H=1 -DHAVE_STRING_H=1
AVE_MATH_H=1 -DRET_TYPE_SRAND_IS_VOID=1 -DHAVE_SYS_NERR=1
DHAVE_CC_OSFCN_H=1 -DHAVE_CC_LIMITS_H=1 -DRETSIGTYPE=void
N=1 -DHAVE_UNISTD_H=1 -DHAVE_GETPAGESIZE=1 -DHAVE_MMAP=1 -DHAVE_FMOD=1
RTOL=1 -DHAVE_GETCWD=1 -DHAVE_STRERROR=1 -DHAVE_PUTENV=1 -DHAVE_RENAME=1
MKSTEMP=1 -DHAVE_STRCASECMP=1 -DHAVE_STRNCASECMP=1 -DHAVE_STRDUP=1 -g -c
cc-1174 CC: WARNING File = pre-html.cc, Line = 190
The variable "i" was declared but never referenced.
cc-1174 CC: WARNING File = pre-html.cc, Line = 191
The variable "old_used" was declared but never referenced.
unsigned int old_used;
cc-1174 CC: WARNING File = pre-html.cc, Line = 459
The variable "r" was declared but never referenced.
cc-1220 CC: ERROR File = pre-html.cc, Line = 619
The function "abs" has already been defined.
int abs (int x)
cc-1174 CC: WARNING File = pre-html.cc, Line = 715
The variable "name" was declared but never referenced.
cc-1552 CC: WARNING File = pre-html.cc, Line = 763
The variable "ch" is set but never used.
1 error detected in the compilation of "pre-html.cc".
make: *** [pre-html.o] Error 2
make: Leaving directory `/tmp/groff-1.17/src/preproc/html'
make: *** [src/preproc/html] Error 2
make: Leaving directory `/tmp/groff-1.17'
make: *** [all] Error 2
CC -mips3 -I. -I/tmp/groff-1.17/src/utils/addftinfo
-DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DIRENT_H=1 -DHAVE_LIMITS_H=1
-DHAVE_SYS_DIR_H=1 -DHAVE_STRING_H=1 -DHAVE_STRINGS_H=1 -DHAVE_MATH_H=1
-DRET_TYPE_SRAND_IS_VOID=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_STRNCASECMP=1 -DHAVE_STRDUP=1 -g -c
addftinfo.cc cc-1101 CC: ERROR File = addftinfo.cc, Line = 102
"i" has already been declared in the current scope.
1 error detected in the compilation of "addftinfo.cc".
make: *** [addftinfo.o] Error 2
I temporarily commented out the abs function in pre-html.cc which fixed
the first problem. Why is abs being defined with it's part of lm anyway,
and DHAVE_MATH_H is 1?
For the second problem, in addftinfo.cc, I removed the i definition. i
was declared in a previous "if" statement above - maybe the definition
should be moved to the top of the function for cleanness.
Jason Keltz (address@hidden)
ps: The above errors do not occur on my Solaris 7 compile with gcc/g++.