[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
(no subject)
From: |
Christian Mitgutsch |
Subject: |
(no subject) |
Date: |
Tue, 12 Jun 2001 15:06:34 +0200 |
Groff Bug Report
GROFF VERSION: 1.17
MACHINE: SiliconGraphics Indy, MIPS R5000
OS: SGI IRIX 6.5.11
COMPILER: g++ 2.95.3
INPUT FILES:
COMMAND LINE:
DESCRIPTION OF INCORRECT BEHAVIOUR: Compilation error
make[2]: Entering directory `/usr/local/src/sources/groff-1.17/src/preproc/html'
c++ -I. -I/usr/local/src/sources/groff-1.17/src/preproc/html
-I/usr/local/src/sources/groff-1.17/src/include
-I/usr/local/src/sources/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_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 -O2 -c pre-html.cc
pre-html.cc: In function `int abs(int)':
pre-html.cc:620: redefinition of `int abs(int)'
/usr/include/stdlib.h:180: `int abs(int)' previously defined here
make[2]: *** [pre-html.o] Error 1
make[2]: Leaving directory `/usr/local/src/sources/groff-1.17/src/preproc/html'
make[1]: *** [src/preproc/html] Error 2
make[1]: Leaving directory `/usr/local/src/sources/groff-1.17'
make: *** [all] Error 2
SUGGESTED FIX [optional]:
wrap abs in ifndef _ABS_ ... endif
like
groff/src/preproc/html/pre-html.cc line 615 ff.:
/*
* abs - returns the absolute value.
*/
#ifndef _ABS_
#define _ABS_
int abs (int x)
{
if (x < 0) {
return( -x );
} else {
return( x );
}
}
#endif
- (no subject), Y0w4El113, 2001/06/08
- (no subject),
Christian Mitgutsch <=