Subject: kdebase3 failing to build
To: None <tech-pkg@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 02/05/2004 07:59:42
kdebase3 is failing to build for me. Has anyone else seen this?

This is NetBSD/i386 1.6.2_RC3 using GCC 2.95.3 with LOCALBASE as /usr.

I am pretty sure it is a problem with this old GCC.

(I blind carbon-copied markd: were you able to test this new upgrade with
NetBSD 1.6.2 and old gcc?)

c++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/qt3/include -I/usr/X11R6/include
-I/usr
/include -I/usr/X11R6/include -I/usr/X11R6/include/freetype2
-DQT_NO_CAST_ASCII
-DQT_THREAD_SUPPORT  -I/usr/X11R6/include/freetype2 -DGLX_GLXEXT_LEGACY
-I/usr/
include -I/usr/X11R6/include  -Wnon-virtual-dtor -Wno-long-long -Wundef
-Wall -W
 -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -O2
-DGLX_GLXEXT_LEGACY
 -I/usr/include -I/usr/X11R6/include -fno-exceptions -fno-check-new
-fno-common
-DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT
-DQT_NO_TRANSLATION -D_GNU_SOURCE  -c -o main.o `test -f 'main.cpp' || echo
'./'`main.cpp
In file included from /usr/qt3/include/qobjectdefs.h:42,
                 from /usr/qt3/include/qwindowdefs.h:43,
                 from /usr/qt3/include/qwidget.h:42,
                 from /usr/qt3/include/qdesktopwidget.h:40,
                 from /usr/qt3/include/qapplication.h:42,
                 from /usr/include/kapplication.h:40,
                 from main.cpp:35:
/usr/qt3/include/qglobal.h:1026: declaration of C function `void
qObsolete(const
 char *, const char *)' conflicts with
/usr/qt3/include/qglobal.h:1025: previous declaration `void
qObsolete(const char
 *, const char *, const char *)' here
/usr/qt3/include/qglobal.h:1027: declaration of C function `void
qObsolete(const
 char *)' conflicts with
/usr/qt3/include/qglobal.h:1026: previous declaration `void
qObsolete(const char
 *, const char *)' here
In file included from /usr/qt3/include/qwindowdefs.h:43,
                 from /usr/qt3/include/qwidget.h:42,
                 from /usr/qt3/include/qdesktopwidget.h:40,
                 from /usr/qt3/include/qapplication.h:42,
                 from /usr/include/kapplication.h:40,
                 from main.cpp:35:
/usr/qt3/include/qobjectdefs.h: In function `T qt_cast(const QObject *)':
/usr/qt3/include/qobjectdefs.h:184: template with C linkage
In file included from /usr/qt3/include/qmemarray.h:42,
                 from /usr/qt3/include/qcstring.h:43,
                 from /usr/qt3/include/qstring.h:42,
                 from /usr/qt3/include/qwindowdefs.h:44,
                 from /usr/qt3/include/qwidget.h:42,
                 from /usr/qt3/include/qdesktopwidget.h:40,
                 from /usr/qt3/include/qapplication.h:42,
                 from /usr/include/kapplication.h:40,
                 from main.cpp:35:
/usr/qt3/include/qgarray.h: At top level:
/usr/qt3/include/qgarray.h:72: syntax error before `&'
/usr/qt3/include/qgarray.h:74: warning: `virtual' is not at beginning of
declaration
/usr/qt3/include/qgarray.h:74: two or more data types in declaration of
`detach'
/usr/qt3/include/qgarray.h:74: virtual outside class declaration
/usr/qt3/include/qgarray.h:74: semicolon missing after declaration of
`class QGArray'
/usr/qt3/include/qgarray.h: In function `int detach(...)':
/usr/qt3/include/qgarray.h:74: invalid use of `this' in non-member
function
/usr/qt3/include/qgarray.h:74: implicit declaration of function `int
duplicate(.
..)'
/usr/qt3/include/qgarray.h:74: warning: control reaches end of non-void
function
 `detach(...)'
/usr/qt3/include/qgarray.h: At top level:
/usr/qt3/include/qgarray.h:77: non-member function `data(...)' cannot have
`const' method qualifier
/usr/qt3/include/qgarray.h: In function `char * data(...)':
/usr/qt3/include/qgarray.h:77: `shd' undeclared (first use this function)
/usr/qt3/include/qgarray.h:77: (Each undeclared identifier is reported
only once
/usr/qt3/include/qgarray.h:77: for each function it appears in.)
/usr/qt3/include/qgarray.h:77: warning: control reaches end of non-void
function
 `data(...)'
/usr/qt3/include/qgarray.h: At top level:
/usr/qt3/include/qgarray.h:78: non-member function `nrefs(...)' cannot
have `const' method qualifier
...

/usr/qt3/include/qcstring.h:125: warning: control reaches end of non-void
function `qUncompress(const QByteArray &)'
/usr/qt3/include/qcstring.h: At top level:
/usr/qt3/include/qcstring.h:152: syntax error before `&'
/usr/qt3/include/qcstring.h:153: syntax error before `&'
/usr/qt3/include/qcstring.h:162: syntax error before `('
/usr/qt3/include/qcstring.h:164: syntax error before `&'
/usr/qt3/include/qcstring.h:181: syntax error before `('
/usr/qt3/include/qcstring.h:182: syntax error before `('
/usr/qt3/include/qcstring.h:183: syntax error before `('
/usr/qt3/include/qcstring.h:185: syntax error before `('
...
/usr/qt3/include/qcstring.h:224: syntax error before `&'
/usr/qt3/include/qcstring.h:229: syntax error before `&'
/usr/qt3/include/qcstring.h:230: syntax error before `&'
/usr/qt3/include/qcstring.h: In method `QCString::QCString()':
/usr/qt3/include/qcstring.h:145: confused by earlier errors, bailing out
gmake[3]: *** [main.o] Error 1
gmake[3]: Leaving directory
`/tmp/pkgsrc/x11/kdebase3/work.bigfour/kdebase-3.2.0
/drkonqi'



   Jeremy C. Reed
   http://bsd.reedmedia.net/