Subject: pkg/14231: "jade" package cannot be built with new toolchain
To: None <gnats-bugs@gnats.netbsd.org>
From: Matthias Scheler <tron@colwyn.zhadum.de>
List: netbsd-bugs
Date: 10/12/2001 13:32:59
>Number:         14231
>Category:       pkg
>Synopsis:       "jade" package cannot be built with new toolchain
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 12 04:34:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD-current and pkgsrc of 2001/10/11
>Organization:
Matthias Scheler                                  http://scheler.de/~matthias/
>Environment:
System: NetBSD lyssa.zhadum.de 1.5Y NetBSD 1.5Y (LYSSA) #1: Thu Oct 11 16:31:59 CEST 2001 tron@lyssa.zhadum.de:/src/sys/compile/LYSSA i386
Architecture: i386
Machine: i386

>Description:

The "jade" package can't be built with the new toolchain because "c++"
find errors in some class and/or template declarations:

===> Building for jade-1.2.1nb3
[...]
c++ -ansi -I/src/NetBSD-current/pkgsrc/textproc/jade/work/.buildlink/include -I/src/NetBSD-current/pkgsrc/textproc/jade/work/.buildlink/include -I/src/NetBSD-current/pkgsrc/textproc/jade/work/.buildlink/include -O2 -I/src/NetBSD-current/pkgsrc/textproc/jade/work/.buildlink/include -I/src/NetBSD-current/pkgsrc/textproc/jade/work/.buildlink/include -O2 -O0 -fno-implicit-templates -I. -I./../include -I./../generic -DSTDC_HEADERS=1 -DHAVE_LIMITS_H=1 -Dconst= -Dinline= -DHAVE_ST_BLKSIZE=1 -DSP_HAVE_BOOL=1 -DSP_HAVE_LOCALE=1 -DSP_HAVE_GETTEXT=1 -DSP_ANSI_CLASS_INST=1 -DJADE_MIF=1 -DSP_MULTI_BYTE=1 -DSGML_CATALOG_FILES_DEFAULT=\"/usr/pkg/share/sgml/jade/catalog\" -c assert.cxx -o assert.o >/dev/null 2>&1
c++ -ansi -I/src/NetBSD-current/pkgsrc/textproc/jade/work/.buildlink/include -I/src/NetBSD-current/pkgsrc/textproc/jade/work/.buildlink/include -I/src/NetBSD-current/pkgsrc/textproc/jade/work/.buildlink/include -O2 -I/src/NetBSD-current/pkgsrc/textproc/jade/work/.buildlink/include -I/src/NetBSD-current/pkgsrc/textproc/jade/work/.buildlink/include -O2 -O0 -fno-implicit-templates -I. -I./../include -I./../generic -DSTDC_HEADERS=1 -DHAVE_LIMITS_H=1 -Dconst= -Dinline= -DHAVE_ST_BLKSIZE=1 -DSP_HAVE_BOOL=1 -DSP_HAVE_LOCALE=1 -DSP_HAVE_GETTEXT=1 -DSP_ANSI_CLASS_INST=1 -DJADE_MIF=1 -DSP_MULTI_BYTE=1 -DSGML_CATALOG_FILES_DEFAULT=\"/usr/pkg/share/sgml/jade/catalog\" -c CharsetInfo.cxx  -fPIC -DPIC -o .libs/CharsetInfo.o
In file included from ../include/CharsetInfo.h:11,
                 from CharsetInfo.cxx:8:
../include/Vector.h: In instantiation of `Vector<RangeMapRange<unsigned int,unsigned int> >':
../include/RangeMap.h:27:   instantiated from `RangeMap<unsigned int,unsigned int>'
../include/UnivCharsetDesc.h:73:   instantiated from here
../include/Vector.h:50: `Vector<RangeMapRange<unsigned int,unsigned int> >::operator [](unsigned int)' has already been declared in `Vector<RangeMapRange<unsigned int,unsigned int> >'
../include/Vector.h:52: `Vector<RangeMapRange<unsigned int,unsigned int> >::begin()' has already been declared in `Vector<RangeMapRange<unsigned int,unsigned int> >'
../include/Vector.h:54: `Vector<RangeMapRange<unsigned int,unsigned int> >::back()' has already been declared in `Vector<RangeMapRange<unsigned int,unsigned int> >'
In file included from ../include/StringOf.h:15,
                 from ../include/StringC.h:8,
                 from ../include/CharsetInfo.h:14,
                 from CharsetInfo.cxx:8:
/usr/include/string.h:54: warning: declaration of `int memcmp(void *, void *, unsigned int)'
/usr/include/string.h:54: warning: conflicts with built-in declaration `int memcmp(const void *, const void *, unsigned int)'
/usr/include/string.h:55: warning: declaration of `void * memcpy(void *, void *, unsigned int)'
/usr/include/string.h:55: warning: conflicts with built-in declaration `void * memcpy(void *, const void *, unsigned int)'
/usr/include/string.h:60: warning: declaration of `int strcmp(char *, char *)'
/usr/include/string.h:60: warning: conflicts with built-in declaration `int strcmp(const char *, const char *)'
/usr/include/string.h:62: warning: declaration of `char * strcpy(char *, char *)'
/usr/include/string.h:62: warning: conflicts with built-in declaration `char * strcpy(char *, const char *)'
/usr/include/string.h:65: warning: declaration of `size_t strlen(char *)'
/usr/include/string.h:65: warning: conflicts with built-in declaration `unsigned int strlen(const char *)'
../include/Vector.h: In instantiation of `Vector<ISetRange<unsigned int> >':
../include/ISet.h:25:   instantiated from `ISet<unsigned int>'
CharsetInfo.cxx:89:   instantiated from here
../include/Vector.h:50: `Vector<ISetRange<unsigned int> >::operator [](unsigned int)' has already been declared in `Vector<ISetRange<unsigned int> >'
../include/Vector.h:52: `Vector<ISetRange<unsigned int> >::begin()' has already been declared in `Vector<ISetRange<unsigned int> >'
../include/Vector.h:54: `Vector<ISetRange<unsigned int> >::back()' has already been declared in `Vector<ISetRange<unsigned int> >'
../include/Vector.h: In instantiation of `Vector<ISetRange<short unsigned int> >':
../include/ISet.h:25:   instantiated from `ISet<short unsigned int>'
CharsetInfo.cxx:105:   instantiated from here
../include/Vector.h:50: `Vector<ISetRange<short unsigned int> >::operator [](unsigned int)' has already been declared in `Vector<ISetRange<short unsigned int> >'
../include/Vector.h:52: `Vector<ISetRange<short unsigned int> >::begin()' has already been declared in `Vector<ISetRange<short unsigned int> >'
../include/Vector.h:54: `Vector<ISetRange<short unsigned int> >::back()' has already been declared in `Vector<ISetRange<short unsigned int> >'
../include/StringOf.h: In instantiation of `String<short unsigned int>':
CharsetInfo.cxx:129:   instantiated from here
../include/StringOf.h:38: `String<short unsigned int>::operator [](unsigned int)' has already been declared in `String<short unsigned int>'
../include/StringOf.h:40: `String<short unsigned int>::begin()' has already been declared in `String<short unsigned int>'
*** Error code 1

Stop.

>How-To-Repeat:
cd pkgsrc/textproc/jade
make

>Fix:
Sorry, but that is beyond my knowledge of C++.
>Release-Note:
>Audit-Trail:
>Unformatted: