bug-groff
[Top][All Lists]
Advanced

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

Groff 1.17 compilation problem


From: Ahmed El-Mahmoudy
Subject: Groff 1.17 compilation problem
Date: Sat, 30 Jun 2001 09:51:39 +0300 (EEST)

GROFF VERSION: 1.17
MACHINE: 166Mhz Pentium
OS: RedHat Linux (kernel version 2.4.4)
COMPILER: GCC 3.0

PROBLEM:

when compiling the 'src/libs/libgroff/illegal.cc', the following error
occured:

c++ -I. -I/usr2/src/groff-1.17/src/libs/libgroff
-I/usr2/src/groff-1.17/src/include -I/usr2/src/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_STRSEP=1 -DHAVE_STRDUP=1
-DSYS_SIGLIST_DECLARED=1  -g -O2  -c illegal.cc
In file included from /usr2/src/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
/usr2/src/groff-1.17/src/include/lib.h:23: than previous declaration
`char*
   strerror(int)'

SAMPLE FIX:

So, I edited line #23 in 'src/include/lib.h' and commented the line:
  char *strerror(int);

and then ran 'make' again, and it worked !


-- 

 Ahmed El-Mahmoudy

  E-mail reply address : address@hidden
  Web : http://members.muslimsites.com/aelmahmoudy/
  PGP signature: http://members.muslimsites.com/aelmahmoudy/mypgp.key
  Snail mail : P.O. Box 10 Saray Elkobba,
               Cairo ,Egypt.
               Postal Code 11712




reply via email to

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