Menu

#1 Compile error on Debian Unstable

open
nobody
None
5
2008-10-21
2008-10-21
No

I tried to compile kfilter on Debian Unstable, with g++ (Debian 4.3.2-1) 4.3.2. I get the following error message when running make:

tmac@tmac kfilter-3.1$ make
make all-recursive
make[1]: Entering directory `/home/tmac/tmp/src/kfilter-3.1'
Making all in kfilter
make[2]: Entering directory `/home/tmac/tmp/src/kfilter-3.1/kfilter'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/kde -I/usr/share/qt3/include -I. -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -O2 -fno-exceptions -fno-check-new -MT kfilter.all_cpp.o -MD -MP -MF ".deps/kfilter.all_cpp.Tpo" \
-c -o kfilter.all_cpp.o `test -f 'kfilter.all_cpp.cpp' || echo './'`kfilter.all_cpp.cpp; \
then mv ".deps/kfilter.all_cpp.Tpo" ".deps/kfilter.all_cpp.Po"; \
else rm -f ".deps/kfilter.all_cpp.Tpo"; exit 1; \
fi
cc1plus: warning: command line option "-Wmissing-prototypes" is valid for Ada/C/ObjC but not for C++
In file included from driverinput.h:23,
from driverinput.cpp:18,
from kfilter.all_cpp.cpp:2:
kfilterdoc.h:28:19: error: qlist.h: No such file or directory
In file included from /usr/share/qt3/include/qwindowdefs.h:47,
from /usr/share/qt3/include/qwidget.h:45,
from /usr/share/qt3/include/qdialog.h:45,
from /usr/share/qt3/include/qtabdialog.h:45,
from driverinput.h:21,
from driverinput.cpp:18,
from kfilter.all_cpp.cpp:2:
/usr/share/qt3/include/qstring.h: In member function ‘char QChar::latin1() const’:
/usr/share/qt3/include/qstring.h:197: warning: conversion to ‘char’ from ‘int’ may alter its value
/usr/share/qt3/include/qstring.h: In member function ‘void QChar::setCell(uchar)’:
/usr/share/qt3/include/qstring.h:222: warning: conversion to ‘ushort’ from ‘int’ may alter its value
/usr/share/qt3/include/qstring.h: In member function ‘void QChar::setRow(uchar)’:
/usr/share/qt3/include/qstring.h:223: warning: conversion to ‘ushort’ from ‘int’ may alter its value
/usr/share/qt3/include/qstring.h: In constructor ‘QChar::QChar(uchar, uchar)’:
/usr/share/qt3/include/qstring.h:267: warning: conversion to ‘ushort’ from ‘int’ may alter its value
/usr/share/qt3/include/qstring.h: In constructor ‘QStringData::QStringData(QChar*, uint, uint)’:
/usr/share/qt3/include/qstring.h:365: warning: conversion to ‘unsigned int:30’ from ‘uint’ may alter its value
/usr/share/qt3/include/qstring.h:365: warning: conversion to ‘unsigned int:30’ from ‘uint’ may alter its value
In file included from /usr/share/qt3/include/qobject.h:48,
from /usr/share/qt3/include/qwidget.h:46,
from /usr/share/qt3/include/qdialog.h:45,
from /usr/share/qt3/include/qtabdialog.h:45,
from driverinput.h:21,
from driverinput.cpp:18,
from kfilter.all_cpp.cpp:2:
/usr/share/qt3/include/qevent.h: In member function ‘void QDropEvent::setAction(QDropEvent::Action)’:
/usr/share/qt3/include/qevent.h:523: warning: conversion to ‘unsigned char’ from ‘uint’ may alter its value
In file included from /usr/share/qt3/include/qwidget.h:52,
from /usr/share/qt3/include/qdialog.h:45,
from /usr/share/qt3/include/qtabdialog.h:45,
from driverinput.h:21,
from driverinput.cpp:18,
from kfilter.all_cpp.cpp:2:
/usr/share/qt3/include/qsizepolicy.h: In member function ‘void QSizePolicy::transpose()’:
/usr/share/qt3/include/qsizepolicy.h:125: warning: conversion to ‘uchar’ from ‘uint’ may alter its value
/usr/share/qt3/include/qsizepolicy.h:125: warning: conversion to ‘uchar’ from ‘uint’ may alter its value
In file included from kfilter.all_cpp.cpp:2:
driverinput.cpp: At global scope:
driverinput.cpp:32: error: default argument given for parameter 1 of ‘driverinput::driverinput(const char*, driver*, driver*, driver*, driver*)’
driverinput.h:37: error: after previous specification in ‘driverinput::driverinput(const char*, driver*, driver*, driver*, driver*)’
driverinput.cpp: In constructor ‘driverinput::driverinput(const char*, driver*, driver*, driver*, driver*)’:
driverinput.cpp:121: warning: conversion to ‘int’ from ‘double’ may alter its value
driverinput.cpp:255: warning: conversion to ‘int’ from ‘double’ may alter its value
driverinput.cpp:388: warning: conversion to ‘int’ from ‘double’ may alter its value
driverinput.cpp:521: warning: conversion to ‘int’ from ‘double’ may alter its value
driverinput.cpp: At global scope:
driverinput.cpp:1085: warning: unused parameter ‘ce’
In file included from wizard.h:30,
from wizard.cpp:17,
from kfilter.all_cpp.cpp:4:
/usr/share/qt3/include/qpushbutton.h: In member function ‘virtual void QPushButton::setIsMenuButton(bool)’:
/usr/share/qt3/include/qpushbutton.h:94: warning: conversion to ‘unsigned char:1’ from ‘int’ may alter its value
In file included from kfilter.all_cpp.cpp:6:
networkdialog.cpp: At global scope:
networkdialog.cpp:927: warning: unused parameter ‘textparam’
networkdialog.cpp:1127: warning: unused parameter ‘ce’
In file included from kfilter.all_cpp.cpp:7:
colordialog.cpp:161: warning: unused parameter ‘ce’
In file included from circuitout.cpp:2,
from kfilter.all_cpp.cpp:8:
circuitout.h:10: error: redefinition of ‘class CircuitOut’
circuitout.h:10: error: previous definition of ‘class CircuitOut’
In file included from kfilter.all_cpp.cpp:8:
circuitout.cpp:5: error: default argument given for parameter 1 of ‘CircuitOut::CircuitOut(QWidget*)’
circuitout.h:15: error: after previous specification in ‘CircuitOut::CircuitOut(QWidget*)’
circuitout.cpp: In member function ‘void CircuitOut::place(int)’:
circuitout.cpp:94: warning: unused variable ‘n’
circuitout.cpp:95: warning: unused variable ‘string’
In file included from kfilter.all_cpp.cpp:10:
kfilterdoc.cpp: In member function ‘bool KFilterDoc::openDocument(const KURL&, const char*)’:
kfilterdoc.cpp:153: warning: ‘static bool KIO::NetAccess::download(const KURL&, QString&)’ is deprecated (declared at /usr/include/kde/kio/netaccess.h:122)
kfilterdoc.cpp: At global scope:
kfilterdoc.cpp:150: warning: unused parameter ‘format’
kfilterdoc.cpp:531: warning: unused parameter ‘format’
In file included from kfilter.all_cpp.cpp:11:
kfilter.cpp: In member function ‘void KFilterApp::initActions()’:
kfilter.cpp:84: warning: ‘KToggleAction* KStdAction::showToolbar(const QObject*, const char*, KActionCollection*, const char*)’ is deprecated (declared at /usr/include/kde/kstdaction.h:502)
In file included from /usr/include/kde/kaboutdata.h:24,
from main.cpp:19,
from kfilter.all_cpp.cpp:12:
/usr/share/qt3/include/qimage.h: In member function ‘bool QImageTextKeyLang::operator<(const QImageTextKeyLang&) const’:
/usr/share/qt3/include/qimage.h:61: warning: suggest parentheses around && within ||
In file included from circuitout.moc.cpp:11,
from kfilter.all_cpp.cpp:21:
circuitout.h: At global scope:
circuitout.h:10: error: redefinition of ‘class CircuitOut’
circuitout.h:10: error: previous definition of ‘class CircuitOut’
make[2]: *** [kfilter.all_cpp.o] Error 1
make[2]: Leaving directory `/home/tmac/tmp/src/kfilter-3.1/kfilter'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/tmac/tmp/src/kfilter-3.1'
make: *** [all] Error 2

Best regards,
Torquil Sørensen

Discussion


Log in to post a comment.