#7 kxstitch doesn't compile if --enable-final

closed
nobody
None
5
2015-01-15
2005-01-02
Anonymous
No

If I run ./configure with --enable-final make will fail with
these errors:

make[3]: Entering directory
`/home/couriousous/kxstitch/kxstitch-0.6/kxstitch'
source='kxstitch.all_cpp.cpp' object='kxstitch.all_cpp.o'
libtool=no \
depfile='.deps/kxstitch.all_cpp.Po'
tmpdepfile='.deps/kxstitch.all_cpp.TPo' \
depmode=gcc3 /bin/sh ../admin/depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/lib/qt3//include
-I/usr/X11R6/include -DQT_NO_COMPAT
-DKDE_NO_COMPAT -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 -c -o kxstitch.all_cpp.o `test -f
'kxstitch.all_cpp.cpp' || echo './'`kxstitch.all_cpp.cpp
cc1plus: warning: command line option
"-Wmissing-prototypes" is valid for Ada/C/ObjC but not
for C++
In file included from kxstitch.all_cpp.cpp:7:
patterncanvas.cpp: In member function `bool
PatternCanvas::readKXStitchCanvas(QDataStream&,
int)':
patterncanvas.cpp:712: warning: comparison between
signed and unsigned integer expressions
patterncanvas.cpp:719: warning: comparison between
signed and unsigned integer expressions
patterncanvas.cpp:727: warning: comparison between
signed and unsigned integer expressions
patterncanvas.cpp:734: warning: comparison between
signed and unsigned integer expressions
patterncanvas.cpp:738: warning: comparison between
signed and unsigned integer expressions
patterncanvas.cpp:742: warning: comparison between
signed and unsigned integer expressions
patterncanvas.cpp:746: warning: comparison between
signed and unsigned integer expressions
patterncanvas.cpp:753: warning: comparison between
signed and unsigned integer expressions
patterncanvas.cpp:762: warning: comparison between
signed and unsigned integer expressions
patterncanvas.cpp:770: warning: comparison between
signed and unsigned integer expressions
patterncanvas.cpp:780: warning: comparison between
signed and unsigned integer expressions
patterncanvas.cpp:784: warning: comparison between
signed and unsigned integer expressions
In file included from kxstitch.all_cpp.cpp:8:
paletteview.cpp: In member function `void
PaletteView::slotSavePalette()':
paletteview.cpp:513: warning: `getText' is deprecated
(declared at /usr/include/klineeditdlg.h:81)
paletteview.cpp: In member function `void
PaletteView::slotCreatePalette()':
paletteview.cpp:543: warning: `getText' is deprecated
(declared at /usr/include/klineeditdlg.h:81)
In file included from kxstitch.all_cpp.cpp:12:
editview.cpp: In member function `virtual void
EditView::contentsMousePressEvent(QMouseEvent*)':
editview.cpp:1072: warning: comparison between signed
and unsigned integer expressions
editview.cpp: In member function `virtual void
EditView::contentsMouseMoveEvent(QMouseEvent*)':
editview.cpp:1211: warning: comparison between signed
and unsigned integer expressions
In file included from kxstitch.all_cpp.cpp:15:
kxstitchdoc.cpp: In member function `bool
KXStitchDoc::openDocument(const KURL&, const
char*)':
kxstitchdoc.cpp:515: warning: `download' is deprecated
(declared at /usr/include/kio/netaccess.h:116)
In file included from kxstitch.all_cpp.cpp:16:
kxstitchmimesource.cpp: In constructor
`KXStitchMimeSource::KXStitchMimeSource(QByteArray)':
kxstitchmimesource.cpp:24: warning: comparison
between signed and unsigned integer expressions
kxstitchmimesource.cpp: In member function `virtual const
char* KXStitchMimeSource::format(int) const':
kxstitchmimesource.cpp:38: warning: comparison
between signed and unsigned integer expressions
kxstitchmimesource.cpp: In member function `virtual bool
KXStitchMimeSource::provides(const char*) const':
kxstitchmimesource.cpp:50: warning: comparison
between signed and unsigned integer expressions
kxstitchmimesource.cpp:52: warning: comparison
between signed and unsigned integer expressions
In file included from kxstitch.all_cpp.cpp:17:
kxstitch.cpp: In member function `void
KXStitchApp::slotCalibrate()':
kxstitch.cpp:113: error: `CalibrateDialog' undeclared (first
use this function)
kxstitch.cpp:113: error: (Each undeclared identifier is
reported only once for each function it appears in.)
kxstitch.cpp:113: error: `dlg' undeclared (first use this
function)
kxstitch.cpp:113: error: `CalibrateDialog' has not been
declared
In file included from kxstitch.all_cpp.cpp:21:
calibratedialog.cpp: At global scope:
calibratedialog.cpp:25: error: `CalibrateDialog' has not
been declared
calibratedialog.cpp:26: error: ISO C++ forbids declaration
of `CalibrateDialog' with no type
calibratedialog.cpp: In function `int
CalibrateDialog(QWidget*)':
calibratedialog.cpp:26: error: `int
CalibrateDialog(QWidget*)' used prior to declaration
calibratedialog.cpp:26: error: only constructors take base
initializers
calibratedialog.cpp:30: error: `fillSchemeList' undeclared
(first use this function)
calibratedialog.cpp:31: error: `fillColorList' undeclared
(first use this function)
calibratedialog.cpp:33: error: `SchemeList' undeclared
(first use this function)
calibratedialog.cpp:33: error: invalid use of `this' in
non-member function
calibratedialog.cpp:33: error: `connect' undeclared (first
use this function)
calibratedialog.cpp:34: error: `ColorList' undeclared (first
use this function)
calibratedialog.cpp:34: error: invalid use of `this' in
non-member function
calibratedialog.cpp:35: error: `RedSlider' undeclared (first
use this function)
calibratedialog.cpp:35: error: invalid use of `this' in
non-member function
calibratedialog.cpp:36: error: `GreenSlider' undeclared
(first use this function)
calibratedialog.cpp:36: error: invalid use of `this' in
non-member function
calibratedialog.cpp:37: error: `BlueSlider' undeclared (first
use this function)
calibratedialog.cpp:37: error: invalid use of `this' in
non-member function
calibratedialog.cpp:38: error: `ResetColor' undeclared
(first use this function)
calibratedialog.cpp:38: error: invalid use of `this' in
non-member function
calibratedialog.cpp:39: error: `HelpButton' undeclared
(first use this function)
calibratedialog.cpp:39: error: invalid use of `this' in
non-member function
calibratedialog.cpp: At global scope:
calibratedialog.cpp:42: error: expected constructor,
destructor, or type conversion before '::' token
calibratedialog.cpp:42: error: expected `,' or `;' before '::'
token
calibratedialog.cpp:47: error: `CalibrateDialog' is not a
class or namespace
calibratedialog.cpp: In function `void accept()':
calibratedialog.cpp:49: error: `commitColor' undeclared
(first use this function)
calibratedialog.cpp:51: error: `ChangedColors'
undeclared (first use this function)
calibratedialog.cpp:51: error: template argument 2 is
invalid
calibratedialog.cpp:51: error: `Iterator' does not name a
type
calibratedialog.cpp:52: error: `it' undeclared (first use this
function)
calibratedialog.cpp:52: error: `m_calibratedColors'
undeclared (first use this function)
calibratedialog.cpp:61: error: cannot call member function
`virtual void QDialog::accept()' without object
calibratedialog.cpp: At global scope:
calibratedialog.cpp:64: error: `CalibrateDialog' is not a
class or namespace
calibratedialog.cpp:69: error: `CalibrateDialog' is not a
class or namespace
calibratedialog.cpp: In function `void
schemeChanged(int)':
calibratedialog.cpp:71: error: `commitColor' undeclared
(first use this function)
calibratedialog.cpp:72: error: `fillColorList' undeclared
(first use this function)
calibratedialog.cpp: At global scope:
calibratedialog.cpp:75: error: `CalibrateDialog' is not a
class or namespace
calibratedialog.cpp: In function `void
selectionChanged(QListBoxItem*)':
calibratedialog.cpp:77: error: `m_item' undeclared (first
use this function)
calibratedialog.cpp:77: error: `commitColor' undeclared
(first use this function)
calibratedialog.cpp:79: error: `m_calibratedColors'
undeclared (first use this function)
calibratedialog.cpp:79: error: `m_scheme' undeclared
(first use this function)
calibratedialog.cpp:80: error: `m_sampleColor' undeclared
(first use this function)
calibratedialog.cpp:83: error: `updateSample' undeclared
(first use this function)
calibratedialog.cpp:84: error: `updateName' undeclared
(first use this function)
calibratedialog.cpp: At global scope:
calibratedialog.cpp:87: error: `CalibrateDialog' is not a
class or namespace
calibratedialog.cpp: In function `void redChanged(int)':
calibratedialog.cpp:89: error: `m_sampleColor' undeclared
(first use this function)
calibratedialog.cpp:90: error: `updateSample' undeclared
(first use this function)
calibratedialog.cpp:91: error: `updateName' undeclared
(first use this function)
calibratedialog.cpp: At global scope:
calibratedialog.cpp:94: error: `CalibrateDialog' is not a
class or namespace
calibratedialog.cpp: In function `void greenChanged(int)':
calibratedialog.cpp:96: error: `m_sampleColor' undeclared
(first use this function)
calibratedialog.cpp:97: error: `updateSample' undeclared
(first use this function)
calibratedialog.cpp:98: error: `updateName' undeclared
(first use this function)
calibratedialog.cpp: At global scope:
calibratedialog.cpp:101: error: `CalibrateDialog' is not a
class or namespace
calibratedialog.cpp: In function `void blueChanged(int)':
calibratedialog.cpp:103: error: `m_sampleColor'
undeclared (first use this function)
calibratedialog.cpp:104: error: `updateSample'
undeclared (first use this function)
calibratedialog.cpp:105: error: `updateName' undeclared
(first use this function)
calibratedialog.cpp: At global scope:
calibratedialog.cpp:108: error: `CalibrateDialog' is not a
class or namespace
calibratedialog.cpp: In function `void resetColor()':
calibratedialog.cpp:110: error: `m_sampleColor'
undeclared (first use this function)
calibratedialog.cpp:110: error: `m_item' undeclared (first
use this function)
calibratedialog.cpp:111: error: `m_calibratedColors'
undeclared (first use this function)
calibratedialog.cpp:111: error: `m_scheme' undeclared
(first use this function)
calibratedialog.cpp:113: error: `updateSample'
undeclared (first use this function)
calibratedialog.cpp:114: error: `updateName' undeclared
(first use this function)
calibratedialog.cpp: At global scope:
calibratedialog.cpp:118: error: `CalibrateDialog' is not a
class or namespace
calibratedialog.cpp: In function `void fillSchemeList()':
calibratedialog.cpp:119: error: `void fillSchemeList()' used
prior to declaration
calibratedialog.cpp:120: error: `SchemeList' undeclared
(first use this function)
calibratedialog.cpp: At global scope:
calibratedialog.cpp:123: error: `CalibrateDialog' is not a
class or namespace
calibratedialog.cpp: In function `void fillColorList()':
calibratedialog.cpp:124: error: `void fillColorList()' used
prior to declaration
calibratedialog.cpp:125: error: `ColorList' undeclared (first
use this function)
calibratedialog.cpp:126: error: `m_scheme' undeclared
(first use this function)
calibratedialog.cpp:126: error: `SchemeList' undeclared
(first use this function)
calibratedialog.cpp: At global scope:
calibratedialog.cpp:135: error: `CalibrateDialog' is not a
class or namespace
calibratedialog.cpp: In function `void updateSample()':
calibratedialog.cpp:136: error: `void updateSample()'
used prior to declaration
calibratedialog.cpp:137: error: `m_sample' undeclared
(first use this function)
calibratedialog.cpp:137: error: `ExampleColor' undeclared
(first use this function)
calibratedialog.cpp:138: error: `m_sampleColor'
undeclared (first use this function)
calibratedialog.cpp:140: error: `RedSlider' undeclared
(first use this function)
calibratedialog.cpp:141: error: `GreenSlider' undeclared
(first use this function)
calibratedialog.cpp:142: error: `BlueSlider' undeclared
(first use this function)
calibratedialog.cpp: At global scope:
calibratedialog.cpp:145: error: `CalibrateDialog' is not a
class or namespace
calibratedialog.cpp: In function `void updateName(bool)':
calibratedialog.cpp:146: error: `void updateName(bool)'
used prior to declaration
calibratedialog.cpp:147: error: `SelectedColorName'
undeclared (first use this function)
calibratedialog.cpp:147: error: `m_item' undeclared (first
use this function)
calibratedialog.cpp: At global scope:
calibratedialog.cpp:150: error: `CalibrateDialog' is not a
class or namespace
calibratedialog.cpp: In function `void commitColor()':
calibratedialog.cpp:151: error: `void commitColor()' used
prior to declaration
calibratedialog.cpp:152: error: `m_item' undeclared (first
use this function)
calibratedialog.cpp:152: error: `m_sampleColor'
undeclared (first use this function)
calibratedialog.cpp:154: error: `m_calibratedColors'
undeclared (first use this function)
calibratedialog.cpp:154: error: `m_scheme' undeclared
(first use this function)
In file included from kxstitch.all_cpp.cpp:25:
patternlibrarydialog.cpp: In member function `void
PatternLibraryDialog::newCatagory()':
patternlibrarydialog.cpp:186: warning: `getText' is
deprecated (declared at /usr/include/klineeditdlg.h:81)
In file included from kxstitch.all_cpp.cpp:53:
calibratedialog.moc.cpp: At global scope:
calibratedialog.moc.cpp:22: error: `CalibrateDialog' is not
a class or namespace
calibratedialog.moc.cpp:23: error: non-member function
`const char* className()' cannot have `const' method
qualifier
calibratedialog.moc.cpp:27: error: `CalibrateDialog' is not
a class or namespace
calibratedialog.moc.cpp:28: error: `CalibrateDialog' is not
a class or namespace
calibratedialog.moc.cpp:28: error: `staticMetaObject' was
not declared in this scope
calibratedialog.moc.cpp:31: error: `CalibrateDialog' is not
a class or namespace
calibratedialog.moc.cpp:39: error: `CalibrateDialog' is not
a class or namespace
calibratedialog.moc.cpp:50: error: `CalibrateDialog' is not
a class or namespace
calibratedialog.moc.cpp:101: error: `CalibrateDialog' is
not a class or namespace
calibratedialog.moc.cpp: In function `void* qt_cast(const
char*)':
calibratedialog.moc.cpp:104: error: invalid use of `this' in
non-member function
calibratedialog.moc.cpp:105: error: cannot call member
function `virtual void* CalibrateDlg::qt_cast(const char*)'
withoutobject
calibratedialog.moc.cpp: At global scope:
calibratedialog.moc.cpp:108: error: `CalibrateDialog' is
not a class or namespace
calibratedialog.moc.cpp: In function `bool qt_invoke(int,
QUObject*)':
calibratedialog.moc.cpp:120: error: cannot call member
function `virtual bool CalibrateDlg::qt_invoke(int,
QUObject*)' without object
calibratedialog.moc.cpp: At global scope:
calibratedialog.moc.cpp:125: error: `CalibrateDialog' is
not a class or namespace
calibratedialog.moc.cpp: In function `bool qt_emit(int,
QUObject*)':
calibratedialog.moc.cpp:127: error: cannot call member
function `virtual bool CalibrateDlg::qt_emit(int,
QUObject*)' without object
calibratedialog.moc.cpp: At global scope:
calibratedialog.moc.cpp:131: error: `CalibrateDialog' is
not a class or namespace
calibratedialog.moc.cpp: In function `bool qt_property(int,
int, QVariant*)':
calibratedialog.moc.cpp:133: error: cannot call member
function `virtual bool CalibrateDlg::qt_property(int, int,
QVariant*)' without object
calibratedialog.moc.cpp: At global scope:
calibratedialog.moc.cpp:136: error: `CalibrateDialog' is
not a class or namespace
kxstitchview.cpp:26: warning: unused parameter 'name'
kxstitchview.cpp:26: warning: unused parameter 'name'
preview.cpp:30: warning: unused parameter 'printer'
patterncanvas.cpp: In member function `UsageMap
PatternCanvas::calculateUsage()':
patterncanvas.cpp:841: warning: enumeration value
`Delete' not handled in switch
patterncanvas.cpp:841: warning: enumeration value
`FRKnot' not handled in switch
editview.cpp: In member function `virtual void
EditView::contentsMouseMoveEvent(QMouseEvent*)':
editview.cpp:1225: warning: enumeration value
`ColorPicker' not handled in switch
editview.cpp: In member function `void
EditView::renderCell(QPainter*, QRect,
QPtrQueue<Stitch>*, EditView::ViewMode)':
editview.cpp:2066: warning: enumeration value `BWLines'
not handled in switch
editview.cpp:2066: warning: enumeration value
`ColorLines' not handled in switch
editview.cpp:2094: warning: enumeration value `BWLines'
not handled in switch
editview.cpp:2094: warning: enumeration value
`ColorLines' not handled in switch
editview.cpp:2122: warning: enumeration value `BWLines'
not handled in switch
editview.cpp:2122: warning: enumeration value
`ColorLines' not handled in switch
editview.cpp:2150: warning: enumeration value `BWLines'
not handled in switch
editview.cpp:2150: warning: enumeration value
`ColorLines' not handled in switch
editview.cpp:2178: warning: enumeration value `BWLines'
not handled in switch
editview.cpp:2178: warning: enumeration value
`ColorLines' not handled in switch
editview.cpp:2206: warning: enumeration value `BWLines'
not handled in switch
editview.cpp:2206: warning: enumeration value
`ColorLines' not handled in switch
editview.cpp:2235: warning: enumeration value `BWLines'
not handled in switch
editview.cpp:2235: warning: enumeration value
`ColorLines' not handled in switch
editview.cpp:2264: warning: enumeration value `BWLines'
not handled in switch
editview.cpp:2264: warning: enumeration value
`ColorLines' not handled in switch
editview.cpp:2293: warning: enumeration value `BWLines'
not handled in switch
editview.cpp:2293: warning: enumeration value
`ColorLines' not handled in switch
editview.cpp:2322: warning: enumeration value `BWLines'
not handled in switch
editview.cpp:2322: warning: enumeration value
`ColorLines' not handled in switch
editview.cpp:2355: warning: enumeration value `Delete'
not handled in switch
editview.cpp:2355: warning: enumeration value `FRKnot'
not handled in switch
editview.cpp: In member function `virtual void
EditView::contentsMouseReleaseEvent(QMouseEvent*)':
editview.cpp:1456: warning: enumeration value
`NoButton' not handled in switch
editview.cpp:1456: warning: enumeration value
`MouseButtonMask' not handled in switch
editview.cpp:1456: warning: enumeration value
`ShiftButton' not handled in switch
editview.cpp:1456: warning: enumeration value
`ControlButton' not handled in switch
editview.cpp:1456: warning: enumeration value
`AltButton' not handled in switch
editview.cpp:1456: warning: enumeration value
`MetaButton' not handled in switch
editview.cpp:1456: warning: enumeration value
`KeyButtonMask' not handled in switch
editview.cpp:1456: warning: enumeration value `Keypad'
not handled in switch
make[3]: *** [kxstitch.all_cpp.o] Error 1
make[3]: Leaving directory
`/home/couriousous/kxstitch/kxstitch-0.6/kxstitch'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/home/couriousous/kxstitch/kxstitch-0.6/kxstitch'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/home/couriousous/kxstitch/kxstitch-0.6'
make: *** [all] Error 2

Discussion

    • status: open --> closed
     
  • Logged In: YES
    user_id=618149

    I think this is because there are static variables with the
    same name declared in various source files. Normally this
    wouldn't matter, but as --enable-final combines these source
    files, there is some confusion, although this isn't really
    made clear in the error messages.

    A google search shows this problem applies to lots of
    applications, so I can only suggest that you compile without
    --enable-final. It doesn't really make any difference to
    the final application.

    Regards

    Steve