bug-groff
[Top][All Lists]
Advanced

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

Can't build groff 1.16.1 due to groff header incompatibilities


From: Bruce Lilly
Subject: Can't build groff 1.16.1 due to groff header incompatibilities
Date: Tue, 17 Apr 2001 22:46:42 -0400

                           Groff Bug Report

Please read the PROBLEMS file before sending in a bug report.

Please fill in all fields, even if you think they are not relevant.

Please delete the text in brackets before sending it in.

Please report separate bugs separately.

Send the completed form to address@hidden

GROFF VERSION:
1.16.1

MACHINE:
Sony PCG-XG29K

OS:
Microsoft Windows 2000 SP1 with UWIN 2.9
(see http://www.research.att.com/sw/tools/uwin/)

COMPILER:
Microsoft VC++ 6.0 SP5 with UWIN 2.9 front end

INPUT FILES:
None required.

COMMAND LINE:
./configure && make

DESCRIPTION OF INCORRECT BEHAVIOUR:
make[2]: Entering directory 
`/D/TEMP/groff/1.16.1/groff-1.16.1/src/libs/libgroff'
CC -I. -I/d/temp/groff/1.16.1/groff-1.16.1/src/libs/libgroff 
-I/d/temp/groff/1.16.1/groff-1.16.1/src/include 
-I/d/temp/groff/1.16.1/groff-1.16.1/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_UNISTD_H=1 -DHAVE_GETPAGESIZE=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 font.cc
/usr/include/math.h(56) : warning C4273: 'hypot' : inconsistent dll linkage.  
dllexport assumed.^M
/d/temp/groff/1.16.1/groff-1.16.1/src/include/lib.h(23) : warning C4273: 
'strerror' : inconsistent dll linkage.  dllexport assumed.^M
/d/temp/groff/1.16.1/groff-1.16.1/src/include/groff-getopt.h(39) : error C2011: 
'option' : 'struct' type redefinition^M
/d/temp/groff/1.16.1/groff-1.16.1/src/include/groff-getopt.h(52) : error C2733: 
second C linkage of overloaded function 'getopt' not allowed^M
        /d/temp/groff/1.16.1/groff-1.16.1/src/include/groff-getopt.h(50) : see 
declaration of 'getopt'^M
/d/temp/groff/1.16.1/groff-1.16.1/src/include/groff-getopt.h(57) : error C2733: 
second C linkage of overloaded function 'getopt_long' not allowed^M
        /d/temp/groff/1.16.1/groff-1.16.1/src/include/groff-getopt.h(53) : see 
declaration of 'getopt_long'^M
/d/temp/groff/1.16.1/groff-1.16.1/src/include/groff-getopt.h(62) : error C2733: 
second C linkage of overloaded function 'getopt_long_only' not allowed^M
        /d/temp/groff/1.16.1/groff-1.16.1/src/include/groff-getopt.h(58) : see 
declaration of 'getopt_long_only'^M
font.cc(197) : warning C4146: unary minus operator applied to unsigned type, 
result still unsigned^M
font.cc(197) : warning C4146: unary minus operator applied to unsigned type, 
result still unsigned^M
make[2]: *** [font.o] Error 1
make[2]: Leaving directory `/D/TEMP/groff/1.16.1/groff-1.16.1/src/libs/libgroff'
make[1]: Entering directory `/D/TEMP/groff/1.16.1/groff-1.16.1'
make[1]: *** [src/libs/libgroff] Error 2
make[1]: Leaving directory `/D/TEMP/groff/1.16.1/groff-1.16.1'
make: *** [all] Error 2

The problem appears to be a conflict between
src/include/getopt.h (ca. line 83)
and
src/include/groff-getopt.h (ca. line 37)
both of which attempt to define a "struct option".

Additional problems caused by the conflicts between the two headers
include incompatible redeclarations of getopt, getopt_long, and
getopt_long_only.

SUGGESTED FIX [optional]:



reply via email to

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