bug-groff
[Top][All Lists]
Advanced

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

bug report


From: petrch
Subject: bug report
Date: Thu, 21 Jun 2001 17:02:26 +0200 (CEST)

reply to my mailbox direcly. i'm not subscribed to this list.

                           Groff Bug Report
GROFF VERSION:
1.17

MACHINE:
x86 PIII 600

OS:
linux based on RH 6.2

COMPILER:
gcc 3.0

INPUT FILES:
none - see below

COMMAND LINE:
none - see below

DESCRIPTION OF INCORRECT BEHAVIOUR:
configure && make says:
In file included from /root/tmp/groff-1.17/src/include/lib.h:39,
                 from illegal.cc:20:
/usr/include/string.h:229: declaration of `char* strerror(int) throw ()' throws
   different exceptions
/root/tmp/groff-1.17/src/include/lib.h:23: than previous declaration `char*
   strerror(int)'
make[2]: *** [illegal.o] Error 1
make[2]: Leaving directory `/root/tmp/groff-1.17/src/libs/libgroff'
make[1]: *** [src/libs/libgroff] Error 2
make[1]: Leaving directory `/root/tmp/groff-1.17'
make: *** [all] Error 2

it complains because this in src/include/lib.h:
extern "C" {
#ifndef strerror
  char *strerror(int);
#endif
  const char *i_to_a(int);
  const char *if_to_a(int, int);
}
[--snip--]
#include <stdio.h>
#include <string.h>

- strerror can't be defined, because nothing is included yet. so #ifndef is
always true (except you -D it on command line)

SUGGESTED FIX:
20a21,23
> #include <stdio.h>
> #include <string.h>
>
38,39d40
< #include <stdio.h>
< #include <string.h>

maybe something very nasty is digged in my box. so sorry for waste your time.



-- 
petrch





reply via email to

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