Subject: pkg/28314: emulators/palmosemulator build error on NetBSD/i386 2.0_BETA
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <dillo@NetBSD.org>
List: pkgsrc-bugs
Date: 11/14/2004 16:52:00
>Number:         28314
>Category:       pkg
>Synopsis:       emulators/palmosemulator build error on NetBSD/i386 2.0_BETA
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Nov 14 16:52:00 +0000 2004
>Originator:     Dieter Baron
>Release:        NetBSD 2.0_BETA
>Environment:
System: NetBSD wintermute 2.0_BETA NetBSD 2.0_BETA (WINTERMUTE) #5: Fri Jun 18 01:19:15 MEST 2004 root@wintermute:/usr/src/sys/arch/i386/compile/WINTERMUTE i386
Architecture: i386
Machine: i386
>Description:
On NetBSD/i386 2.0_BETA, emulators/palmosemulator (pkgsrc updated
yesterday) fails to build with a g++ compiler error in a system
include file (full build log is available at
http://danbala.tuwien.ac.at/~dillo/palmosemulator.log):

g++ -DHAVE_DIRENT_H=1 -DSTDC_HEADERS=1 -DHAVE_MACHINE_ENDIAN_H=1 -DHAVE_FCNTL_H=1 -DHAVE_LIMITS_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SA_LEN=1 -DHAVE_SIN_LEN=1 -DHAVE_TYPE_SOCKLEN_T=1 -DHAVE_ALLOCA=1 -DHAVE_MKDIR=1 -DHAVE_MKSTEMP=1 -DHAVE_TEMPNAM=1 -DHAVE_GL=1 -DHAVE_GL_GLU_H=1 -DHAVE_LIBFLTK=1  -I. -I.  -I./../SrcShared -I./../SrcShared/Hardware -I./../SrcShared/Hardware/TRG -I./../SrcShared/Palm/Device -I./../SrcShared/Palm/Platform -I./../SrcShared/Palm/Platform/Core/Hardware/IncsPrv -I./../SrcShared/Palm/Platform/Core/System/IncsPrv -I./../SrcShared/Palm/Platform/Incs -I./../SrcShared/Palm/Platform/Incs/Core -I./../SrcShared/Palm/Platform/Incs/Core/Hardware -I./../SrcShared/Palm/Platform/Incs/Core/System -I./../SrcShared/Palm/Platform/Incs/Core/UI -I./../SrcShared/Palm/Platform/Incs/Libraries -I./../SrcShared/Gzip -I./../SrcShared/omnithread -I./../SrcShared/Patches -I./../SrcShared/UAE -I./../SrcUnix -I./../SrcUnix/espws-2.0  -DFLTK_1_0_COM!
PAT -I/usr/local/include -DGLX_GLXEXT_LEGACY -I/usr/include -I/usr/local/include  -DPLATFORM_UNIX=1 -D__PALMOS_TRAPS__=0 -DEMULATION_LEVEL=EMULATION_UNIX -O2  -DHAS_PROFILING=0 -DNDEBUG  -fexceptions -Wall -Wno-multichar -Wno-unknown-pragmas -Wno-conversion    -D_REENTRANT -DPthreadDraftVersion=10 -DPACKAGE_SKINS_DIR="\"/usr/local/share/palmosemulator/skins\"" -I/usr/X11R6/include -c ./../SrcShared/EmEventOutput.cpp
In file included from ../SrcShared/ChunkFile.h:17,
                 from ../SrcShared/EmEventPlayback.h:17,
                 from ../SrcShared/EmEventOutput.h:17,
                 from ../SrcShared/EmEventOutput.cpp:15:
../SrcShared/EmStream.h: In member function `EmStream& 
   EmStream::operator>>(std::deque<T, std::allocator<_CharT> >&)':
../SrcShared/EmStream.h:93: warning: `std::deque<T, std::allocator<_CharT> 
   >::iterator' is implicitly a typename
../SrcShared/EmStream.h:93: warning: implicit typename is deprecated, please 
   see the documentation for details
../SrcShared/EmStream.h: In member function `EmStream& 
   EmStream::operator>>(std::list<T, std::allocator<_CharT> >&)':
../SrcShared/EmStream.h:111: warning: `std::list<T, std::allocator<_CharT> 
   >::iterator' is implicitly a typename
../SrcShared/EmStream.h:111: warning: implicit typename is deprecated, please 
   see the documentation for details
../SrcShared/EmStream.h: In member function `EmStream& 
   EmStream::operator>>(std::vector<T, std::allocator<_CharT> >&)':
../SrcShared/EmStream.h:129: warning: `std::vector<T, std::allocator<_CharT> 
   >::iterator' is implicitly a typename
../SrcShared/EmStream.h:129: warning: implicit typename is deprecated, please 
   see the documentation for details
../SrcShared/EmStream.h: In member function `EmStream& 
   EmStream::operator<<(const std::deque<T, std::allocator<_CharT> >&)':
../SrcShared/EmStream.h:146: warning: `std::deque<T, std::allocator<_CharT> 
   >::const_iterator' is implicitly a typename
../SrcShared/EmStream.h:146: warning: implicit typename is deprecated, please 
   see the documentation for details
../SrcShared/EmStream.h: In member function `EmStream& 
   EmStream::operator<<(const std::list<T, std::allocator<_CharT> >&)':
../SrcShared/EmStream.h:163: warning: `std::list<T, std::allocator<_CharT> 
   >::const_iterator' is implicitly a typename
../SrcShared/EmStream.h:163: warning: implicit typename is deprecated, please 
   see the documentation for details
../SrcShared/EmStream.h: In member function `EmStream& 
   EmStream::operator<<(const std::vector<T, std::allocator<_CharT> >&)':
../SrcShared/EmStream.h:180: warning: `std::vector<T, std::allocator<_CharT> 
   >::const_iterator' is implicitly a typename
../SrcShared/EmStream.h:180: warning: implicit typename is deprecated, please 
   see the documentation for details
In file included from /usr/include/g++/iostream.h:31,
                 from /usr/include/g++/strstream.h:32,
                 from /usr/include/g++/strstream:6,
                 from ../SrcShared/EmEventOutput.h:21,
                 from ../SrcShared/EmEventOutput.cpp:15:
/usr/include/g++/streambuf.h: At global scope:
/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[1]: *** [EmEventOutput.o] Error 1
>How-To-Repeat:
	cd /usr/pkgsrc/emulators/palmosemulator && make
>Fix:
	non known