bug-groff
[Top][All Lists]
Advanced

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

(no subject)


From: Jason Keltz
Subject: (no subject)
Date: Wed, 18 Apr 2001 12:18:31 -0400 (EDT)

GROFF VERSION: 1.17

MACHINE:
SGI Infinite Reality Monster

OS:
IRIX 6.5

COMPILER:
MIPSpro Compilers: Version 7.3.1m

INPUT FILES:
none.  It's a compile problem.

COMMAND LINE:
env CXX="CC" CC="cc" ./configure --prefix=/cs/local
make

DESCRIPTION OF INCORRECT BEHAVIOUR:

There are two compilation errors.

make[2]: 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 -
I/tmp/groff-1.17/src/include -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 -DH
AVE_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_EXCEPTIO
N=1 -DHAVE_UNISTD_H=1 -DHAVE_GETPAGESIZE=1 -DHAVE_MMAP=1 -DHAVE_FMOD=1
-DHAVE_ST
RTOL=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
pre-h
tml.cc
cc-1174 CC: WARNING File = pre-html.cc, Line = 190
  The variable "i" was declared but never referenced.

    int i=0;
        ^

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.

    int r;
        ^

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.

    char       *name;
                ^

cc-1552 CC: WARNING File = pre-html.cc, Line = 763
  The variable "ch" is set but never used.

    char ch;
         ^

1 error detected in the compilation of "pre-html.cc".
make[2]: *** [pre-html.o] Error 2
make[2]: Leaving directory `/tmp/groff-1.17/src/preproc/html'
make[1]: *** [src/preproc/html] Error 2
make[1]: Leaving directory `/tmp/groff-1.17'
make: *** [all] Error 2

AND...


CC -mips3 -I. -I/tmp/groff-1.17/src/utils/addftinfo
-I/tmp/groff-1.17/src/include -I/tmp/groff-1.17/src/include
-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.

    int i;
        ^

1 error detected in the compilation of "addftinfo.cc".
make[2]: *** [addftinfo.o] Error 2

SUGGESTED FIX(ES):

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++.




reply via email to

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