kpackage compile errors under egcs 1.1.1-pre
Jack Howarth
howarth@nitro.med.uc.edu
Mon Nov 2 20:07:00 GMT 1998
Has anyone else seen this we building the kpackage package manager
1.0.1 under egcs 1.1 or newer? I have been seeing these compile errors
ever since egcs 1.1.
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/kde/include -I/usr/lib/qt/include -I/usr/X11R6/include -O2 -Wall -c rpmInterface.cpp
In file included from rpmInterface.h:23,
from rpmInterface.cpp:21:
packageInfo.h:95: warning: return-type of `getElement' defaults to `int'
packageInfo.h:123: warning: return-type of `compareItems' defaults to `int'
In file included from updateLoc.h:25,
from rpmInterface.cpp:22:
/opt/kde/include/kmsgbox.h:101: parse error before `0x000020'
/opt/kde/include/kmsgbox.h:101: missing ';' before right brace
/opt/kde/include/kmsgbox.h:118: parse error before `*'
/opt/kde/include/kmsgbox.h:122: destructors must be member functions
/opt/kde/include/kmsgbox.h:151: parse error before `private'
/opt/kde/include/kmsgbox.h:165: parse error before `public'
/opt/kde/include/kmsgbox.h:170: parse error before `}'
In file included from rpmInterface.cpp:22:
updateLoc.h:112: warning: ANSI C++ forbids initialization of const member `PNUM'
updateLoc.h:112: warning: making `PNUM' static
updateLoc.h:141: warning: ANSI C++ forbids initialization of const member `PANNUM'
updateLoc.h:141: warning: making `PANNUM' static
rpmInterface.cpp: In method `class packageInfo * RPM::collectInfo(struct headerToken *)':
rpmInterface.cpp:402: warning: `%c' yields only last 2 digits of year in some locales
rpmInterface.cpp:414: warning: `%c' yields only last 2 digits of year in some locales
/opt/kde/include/kmsgbox.h: At top level:
/opt/kde/include/kmsgbox.h:130: warning: `int yesNo(class QWidget * = 0, const char * = 0, const char * = 0, int = 0, const char * = 0, const char * = 0)' declared `static' but never defined
/opt/kde/include/kmsgbox.h:139: warning: `int yesNoCancel(class QWidget * = 0, const char * = 0, const char * = 0, int = 0, const char * = 0, const char * = 0, const char * = 0)' declared `static' but never defined
/opt/kde/include/kmsgbox.h:148: warning: `int message(class QWidget * = 0, const char * = 0, const char * = 0, int = 0, const char * = 0)' declared `static' but never defined
make[2]: *** [rpmInterface.o] Error 1
make[2]: Leaving directory `/home/howarth/kpackage-1.0.01/kpackage'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/howarth/kpackage-1.0.01'
The header in question contains at line 101...
class KMsgBox : public QDialog
{
Q_OBJECT
public:
enum {INFORMATION = 1, EXCLAMATION = 2, STOP = 4, QUESTION = 8};
enum {DB_FIRST = 16, DB_SECOND = 32, DB_THIRD = 64, DB_FOURTH = 128};
/// Constructor
Any ideas who is at fault here?
Jack
--
------------------------------------------------------------------------------
Jack W. Howarth, Ph.D. 231 Bethesda Avenue
NMR Facility Director Cincinnati, Ohio 45267-0524
Dept. of Molecular Genetics phone: (513) 558-4420
Univ. of Cincinnati College of Medicine fax: (513) 558-8474
More information about the Gcc-bugs
mailing list