gcc-3.0.3, glibc-2.2.5 and groff-1.17.2 failure to compile groff

Thomas T. Veldhouse veldy at veldy.net
Wed Feb 6 10:49:27 PST 2002


I just had a compile failure in groff.  It appears to be because bison does
not handle namespaces correctly.  See below:

g++ -I. -I/usr/src/groff-1.17.2/src/preproc/refer -I/usr/src/groff-1.17.2/sr
c/include -I/usr/src/groff-1.17.2/src/include -DHAVE_STDLIB_H=1 -DHAVE_UNIST
D_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_ST
RUCT_EXCEPTION=1 -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_GETPAGESIZE=1 -D
HAVE_MMAP=1 -DHAVE_FMOD=1 -DHAVE_STRTOL=1 -DHAVE_GETCWD=1 -DHAVE_STRERROR=1 
-DHAVE_PUTENV=1 -DHAVE_RENAME=1 -DHAVE_STRCASECMP=1 -DHAVE_STRNCASECMP=1 -DH
AVE_STRSEP=1 -DHAVE_STRDUP=1 -DHAVE_MKSTEMP=1 -DHAVE_MKSTEMP_PROTO=1 -DSYS_S
IGLIST_DECLARED=1  -Dstrerror=strerror  -c label.cc
/usr/share/bison/bison.simple: In function `int yyparse()':
/usr/share/bison/bison.simple:450: `size_t' undeclared in namespace `std'
/usr/share/bison/bison.simple:450: parse error before `=' token
/usr/share/bison/bison.simple:495: `yystacksize' undeclared (first use this
   function)
/usr/share/bison/bison.simple:495: (Each undeclared identifier is reported
only
   once for each function it appears in.)
/usr/share/bison/bison.simple:498: `size_t' undeclared in namespace `std'
/usr/share/bison/bison.simple:498: parse error before `=' token
/usr/share/bison/bison.simple:543: `size_t' undeclared in namespace `std'
/usr/share/bison/bison.simple:543: parse error before `;' token
/usr/share/bison/bison.simple:543: `yysize' undeclared (first use this
   function)
/usr/share/bison/bison.simple:543: `size_t' undeclared in namespace `std'
/usr/share/bison/bison.simple:543: parse error before `sizeof'
/usr/share/bison/bison.simple:543: `yynewbytes' undeclared (first use this
   function)
/usr/share/bison/bison.simple:544: `size_t' undeclared in namespace `std'
/usr/share/bison/bison.simple:544: parse error before `;' token
/usr/share/bison/bison.simple:544: `size_t' undeclared in namespace `std'
/usr/share/bison/bison.simple:544: parse error before `sizeof'
make[2]: *** [label.o] Error 1
make[2]: Leaving directory `/usr/src/groff-1.17.2/src/preproc/refer'
make[1]: *** [src/preproc/refer] Error 2
make[1]: Leaving directory `/usr/src/groff-1.17.2'
make: *** [all] Error 2


Any ideas?

Tom Veldhouse
veldy at veldy.net

-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-dev' in the subject header of the message



More information about the lfs-dev mailing list