Subject: pkgsrc/misc/koffice does not compile
To: None <tech-pkg@netbsd.org>
From: Joe Reed <jnr@cwru.edu>
List: tech-pkg
Date: 12/07/2003 13:42:07
using pkgsrc from last week, i updated kde3 to version 3.1.4 without too much 
problem.  however, now when i attempt to reinstall koffice, i get a bunch of 
compile errors.  i've looked at the files and they look ok to me.  

does anyone have any idea what's causing this?

$uname -a NetBSD bork 1.6ZC NetBSD 1.6ZC (GENERIC) #0: Fri Oct 10 22:48:28 EDT 
2003  root@bork:/usr/build/src/obj/sys/arch/i386/compile/GENERIC i386

thanks,
--joe

In file included from /usr/include/g++/iostream.h:31,
                 from ../../../kspread/kspread_doc.h:43,
                 from main.cpp:24:
/usr/include/g++/streambuf.h:87: error: syntax error before `*' token
/usr/include/g++/streambuf.h:88: error: syntax error before `*' token
/usr/include/g++/streambuf.h:179: error: syntax error before `*' token
/usr/include/g++/streambuf.h:180: error: ISO C++ forbids defining types within
   return type
/usr/include/g++/streambuf.h:180: error: syntax error before `*' token
/usr/include/g++/streambuf.h:180: error: `val' was not declared in this scope
/usr/include/g++/streambuf.h:180: error: parse error before `return'
/usr/include/g++/streambuf.h:183: error: non-member function `short int 
fill()'
   cannot have `const' method qualifier
/usr/include/g++/streambuf.h: In function `short int fill()':
/usr/include/g++/streambuf.h:183: error: `_fill' undeclared (first use this
   function)
/usr/include/g++/streambuf.h:183: error: (Each undeclared identifier is
   reported only once for each function it appears in.)
/usr/include/g++/streambuf.h: At global scope:
/usr/include/g++/streambuf.h:186: error: parse error before `)' token
/usr/include/g++/streambuf.h:187: error: `fmtflags' was not declared in this
   scope
/usr/include/g++/streambuf.h:187: error: parse error before `)' token
/usr/include/g++/streambuf.h:188: error: `new_val' was not declared in this
   scope
/usr/include/g++/streambuf.h:188: error: parse error before `return'
/usr/include/g++/streambuf.h:189: error: non-member function `int precision()'
   cannot have `const' method qualifier
/usr/include/g++/streambuf.h: In function `int precision()':
/usr/include/g++/streambuf.h:189: error: `_precision' undeclared (first use
   this function)
/usr/include/g++/streambuf.h: At global scope:
/usr/include/g++/streambuf.h:193: error: `fmtflags' was not declared in this
   scope
/usr/include/g++/streambuf.h:193: error: parse error before `)' token
/usr/include/g++/streambuf.h:195: error: syntax error before `|=' token
/usr/include/g++/streambuf.h:196: error: `fmtflags' was not declared in this
   scope
/usr/include/g++/streambuf.h:196: error: parse error before `,' token
/usr/include/g++/streambuf.h:198: error: redefinition of `int _flags'
/usr/include/g++/streambuf.h:188: error: `int _flags' previously defined here
/usr/include/g++/streambuf.h:198: error: `mask' was not declared in this scope
/usr/include/g++/streambuf.h:198: error: `val' was not declared in this scope
/usr/include/g++/streambuf.h:198: error: `mask' was not declared in this scope
/usr/include/g++/streambuf.h:198: error: parse error before `return'
/usr/include/g++/streambuf.h:199: error: `fmtflags' was not declared in this
   scope
/usr/include/g++/streambuf.h:199: error: parse error before `)' token
/usr/include/g++/streambuf.h:201: error: syntax error before `&=' token
/usr/include/g++/streambuf.h:202: error: non-member function `int width()'
   cannot have `const' method qualifier
/usr/include/g++/streambuf.h: In function `int width()':
/usr/include/g++/streambuf.h:202: error: `_width' undeclared (first use this
   function)
/usr/include/g++/streambuf.h: At global scope:
/usr/include/g++/streambuf.h:208: error: non-member function `void
   _throw_failure()' cannot have `const' method qualifier
/usr/include/g++/streambuf.h:210: error: `iostate' was not declared in this
   scope
/usr/include/g++/streambuf.h:210: error: parse error before `=' token
/usr/include/g++/streambuf.h: In function `void clear(...)':
/usr/include/g++/streambuf.h:211: error: `_state' undeclared (first use this
   function)
/usr/include/g++/streambuf.h:211: error: `_strbuf' undeclared (first use this
   function)
/usr/include/g++/streambuf.h:211: error: `state' undeclared (first use this
   function)
/usr/include/g++/streambuf.h:211: error: `badbit' undeclared (first use this
   function)
/usr/include/g++/streambuf.h:212: error: `_exceptions' undeclared (first use
   this function)
/usr/include/g++/streambuf.h: At global scope:
/usr/include/g++/streambuf.h:213: error: `iostate' was not declared in this
   scope
/usr/include/g++/streambuf.h:213: error: parse error before `)' token
/usr/include/g++/streambuf.h: In function `void set(...)':
/usr/include/g++/streambuf.h:213: error: `flag' undeclared (first use this
   function)
/usr/include/g++/streambuf.h: At global scope:
/usr/include/g++/streambuf.h:215: error: parse error before `)' token
/usr/include/g++/streambuf.h:217: error: non-member function `int good()'
   cannot have `const' method qualifier
/usr/include/g++/streambuf.h:218: error: non-member function `int eof()' 
cannot
   have `const' method qualifier
/usr/include/g++/streambuf.h: In function `int eof()':
/usr/include/g++/streambuf.h:218: error: use of `ios' is ambiguous
/usr/include/g++/streambuf.h:126: error:   first declared as `class ios' here
/usr/include/g++/iosfwd:136: error:   also declared as `typedef struct
   std::basic_ios<char, std::char_traits<char> > std::ios' here
/usr/include/g++/streambuf.h:218: error: `ios' denotes an ambiguous type
/usr/include/g++/streambuf.h:126: error:   first type here
/usr/include/g++/iosfwd:55: error:   other type here
/usr/include/g++/streambuf.h:218: error: parse error before `::' token
/usr/include/g++/streambuf.h: At global scope:
/usr/include/g++/streambuf.h:219: error: non-member function `int fail()'
   cannot have `const' method qualifier
/usr/include/g++/streambuf.h: In function `int fail()':
/usr/include/g++/streambuf.h:219: error: use of `ios' is ambiguous
/usr/include/g++/streambuf.h:126: error:   first declared as `class ios' here
/usr/include/g++/iosfwd:136: error:   also declared as `typedef struct
   std::basic_ios<char, std::char_traits<char> > std::ios' here
/usr/include/g++/streambuf.h:219: error: `ios' denotes an ambiguous type
/usr/include/g++/streambuf.h:126: error:   first type here
/usr/include/g++/iosfwd:55: error:   other type here
/usr/include/g++/streambuf.h:219: error: parse error before `::' token
/usr/include/g++/streambuf.h: At global scope:
/usr/include/g++/streambuf.h:220: error: non-member function `int bad()' 
cannot
   have `const' method qualifier
/usr/include/g++/streambuf.h: In function `int bad()':
/usr/include/g++/streambuf.h:220: error: use of `ios' is ambiguous
/usr/include/g++/streambuf.h:126: error:   first declared as `class ios' here
/usr/include/g++/iosfwd:136: error:   also declared as `typedef struct
   std::basic_ios<char, std::char_traits<char> > std::ios' here
/usr/include/g++/streambuf.h:220: error: `ios' denotes an ambiguous type
/usr/include/g++/streambuf.h:126: error:   first type here
/usr/include/g++/iosfwd:55: error:   other type here
/usr/include/g++/streambuf.h:220: error: parse error before `::' token
/usr/include/g++/streambuf.h: At global scope:
/usr/include/g++/streambuf.h:221: error: parse error before `)' token
/usr/include/g++/streambuf.h:222: error: non-member function `operator 
void*()'
   cannot have `const' method qualifier
/usr/include/g++/streambuf.h:222: error: `operator void*()' must be a 
nonstatic
   member function
/usr/include/g++/streambuf.h:222: error: `operator void*()' must take exactly
   one argument
/usr/include/g++/streambuf.h:223: error: non-member function `int operator!()'
   cannot have `const' method qualifier
/usr/include/g++/streambuf.h:223: error: `int operator!()' must have an
   argument of class or enumerated type
/usr/include/g++/streambuf.h:223: error: `int operator!()' must take exactly
   one argument
/usr/include/g++/streambuf.h:224: error: parse error before `)' token
/usr/include/g++/streambuf.h:225: error: `iostate' was not declared in this
   scope
/usr/include/g++/streambuf.h:225: error: parse error before `)' token
/usr/include/g++/streambuf.h: In function `void exceptions(...)':
/usr/include/g++/streambuf.h:226: error: `enable' undeclared (first use this
   function)
/usr/include/g++/streambuf.h: At global scope:
/usr/include/g++/streambuf.h:229: error: syntax error before `*' token
/usr/include/g++/streambuf.h:230: error: syntax error before `*' token
/usr/include/g++/streambuf.h:231: error: `int _strbuf' used prior to
   declaration
/usr/include/g++/streambuf.h:231: error: `_s' was not declared in this scope
/usr/include/g++/streambuf.h:231: error: parse error before `return'
/usr/include/g++/streambuf.h:235: error: syntax error before `(' token
/usr/include/g++/streambuf.h:238: error: non-member function `void* 
pword(int)'
   cannot have `const' method qualifier
/usr/include/g++/streambuf.h:238: error: new declaration `void* pword(int)'
/usr/include/g++/streambuf.h:237: error: ambiguates old declaration `void*&
   pword(int)'
/usr/include/g++/streambuf.h:240: error: non-member function `long int
   iword(int)' cannot have `const' method qualifier
/usr/include/g++/streambuf.h:240: error: new declaration `long int iword(int)'
/usr/include/g++/streambuf.h:239: error: ambiguates old declaration `long int&
   iword(int)'
/usr/include/g++/streambuf.h:256: error: parse error before `protected'
/usr/include/g++/streambuf.h:258: error: destructors must be member functions
/usr/include/g++/streambuf.h:258: error: virtual outside class declaration
/usr/include/g++/streambuf.h:259: error: use of `streambuf' is ambiguous
/usr/include/g++/streambuf.h:67: error:   first declared as `struct streambuf'
   here
/usr/include/g++/iosfwd:137: error:   also declared as `typedef struct
   std::basic_streambuf<char, std::char_traits<char> > std::streambuf' here
/usr/include/g++/streambuf.h:259: error: `streambuf' denotes an ambiguous type
/usr/include/g++/streambuf.h:67: error:   first type here
/usr/include/g++/iosfwd:58: error:   other type here
/usr/include/g++/streambuf.h:259: error: `sb' was not declared in this scope
/usr/include/g++/streambuf.h:259: error: use of `ostream' is ambiguous
/usr/include/g++/streambuf.h:67: error:   first declared as `struct ostream'
   here
/usr/include/g++/iosfwd:139: error:   also declared as `typedef struct
   std::basic_ostream<char, std::char_traits<char> > std::ostream' here
/usr/include/g++/streambuf.h:259: error: `ostream' denotes an ambiguous type
/usr/include/g++/streambuf.h:67: error:   first type here
/usr/include/g++/iosfwd:64: error:   other type here
/usr/include/g++/streambuf.h:259: error: `tie' was not declared in this scope
/usr/include/g++/streambuf.h:259: error: variable or field `init' declared 
void
/usr/include/g++/streambuf.h:259: error: `init' declared as an `inline'
   variable
/usr/include/g++/streambuf.h:259: error: initializer list being treated as
   compound expression
/usr/include/g++/streambuf.h:260: error: parse error before `}' token
/usr/include/g++/streambuf.h:265: error: syntax error before `::' token
/usr/include/g++/streambuf.h:277: error: use of `streambuf' is ambiguous
/usr/include/g++/streambuf.h:67: error:   first declared as `struct streambuf'
   here
/usr/include/g++/iosfwd:137: error:   also declared as `typedef struct
   std::basic_streambuf<char, std::char_traits<char> > std::streambuf' here
/usr/include/g++/streambuf.h:277: error: `streambuf' denotes an ambiguous type
/usr/include/g++/streambuf.h:67: error:   first type here
/usr/include/g++/iosfwd:58: error:   other type here
/usr/include/g++/streambuf.h:280: error: parse error before `*' token
/usr/include/g++/streambuf.h:287: error: use of `streambuf' is ambiguous
/usr/include/g++/streambuf.h:67: error:   first declared as `struct streambuf'
   here
/usr/include/g++/iosfwd:137: error:   also declared as `typedef struct
   std::basic_streambuf<char, std::char_traits<char> > std::streambuf' here
/usr/include/g++/streambuf.h:287: error: `streambuf' denotes an ambiguous type
/usr/include/g++/streambuf.h:67: error:   first type here
/usr/include/g++/iosfwd:58: error:   other type here
/usr/include/g++/streambuf.h:288: error: use of `ios' is ambiguous
/usr/include/g++/streambuf.h:258: error:   first declared as `void ios()' here
/usr/include/g++/iosfwd:136: error:   also declared as `typedef struct
   std::basic_ios<char, std::char_traits<char> > std::ios' here
/usr/include/g++/streambuf.h:288: error: `ios' denotes an ambiguous type
/usr/include/g++/streambuf.h:126: error:   first type here
/usr/include/g++/iosfwd:55: error:   other type here
/usr/include/g++/streambuf.h:289: error: use of `istream' is ambiguous
/usr/include/g++/streambuf.h:66: error:   first declared as `struct istream'
   here
/usr/include/g++/iosfwd:138: error:   also declared as `typedef struct
   std::basic_istream<char, std::char_traits<char> > std::istream' here
/usr/include/g++/streambuf.h:289: error: `istream' denotes an ambiguous type
/usr/include/g++/streambuf.h:66: error:   first type here
/usr/include/g++/iosfwd:61: error:   other type here
/usr/include/g++/streambuf.h:290: error: use of `ostream' is ambiguous
/usr/include/g++/streambuf.h:67: error:   first declared as `struct ostream'
   here
/usr/include/g++/iosfwd:139: error:   also declared as `typedef struct
   std::basic_ostream<char, std::char_traits<char> > std::ostream' here
/usr/include/g++/streambuf.h:290: error: `ostream' denotes an ambiguous type
/usr/include/g++/streambuf.h:67: error:   first type here
/usr/include/g++/iosfwd:64: error:   other type here
/usr/include/g++/streambuf.h:356: error: `streamsize' declared as a `virtual'
   field
/usr/include/g++/streambuf.h:356: error: parse error before `(' token
/usr/include/g++/streambuf.h:357: error: `streamsize' declared as a `virtual'
   field
/usr/include/g++/streambuf.h:357: error: declaration of `int
   streambuf::streamsize'
/usr/include/g++/streambuf.h:356: error: conflicts with previous declaration `
   int streambuf::streamsize'
/usr/include/g++/streambuf.h:357: error: parse error before `(' token
/usr/include/g++/streambuf.h:358: error: `streampos' declared as a `virtual'
   field
/usr/include/g++/streambuf.h:358: error: parse error before `(' token
/usr/include/g++/streambuf.h:359: error: `streampos' declared as a `virtual'
   field
/usr/include/g++/streambuf.h:359: error: declaration of `int
   streambuf::streampos'
/usr/include/g++/streambuf.h:358: error: conflicts with previous declaration `
   int streambuf::streampos'
/usr/include/g++/streambuf.h:359: error: parse error before `(' token
/usr/include/g++/streambuf.h:361: error: `streamoff' was not declared in this
   scope
/usr/include/g++/streambuf.h:361: error: parse error before `,' token
/usr/include/g++/streambuf.h:363: error: ISO C++ forbids defining types within
   return type
/usr/include/g++/streambuf.h:363: error: syntax error before `(' token
/usr/include/g++/streambuf.h:365: error: use of `streamoff' is ambiguous
/usr/include/g++/streambuf.h:77: error:   first declared as `typedef _G_off_t
   streamoff' here
/usr/include/g++/bits/c++io.h:42: error:   also declared as `typedef long int
   std::streamoff' here
/usr/include/g++/streambuf.h:365: error: `streamoff' denotes an ambiguous type
/usr/include/g++/streambuf.h:365: confused by earlier errors, bailing out
gmake[5]: *** [main.lo] Error 1
gmake[5]: Leaving directory 
`/usr/build/pkgsrc/obj/misc/koffice/work.bork/koffice-1.2.1/kspread/plugins/calculator'
gmake[4]: *** [all-recursive] Error 1