#2 Unable to build 0.4 tarball on Fedora Core 1

closed
nobody
None
7
2004-03-07
2004-03-06
Andy Piper
No

After a successful configure, I run make:

[...]
printdlgpage.cpp: In member function `virtual void
PrintDlgPage::setOptions(const QMap<QString,
QString>&)':
printdlgpage.cpp:73: warning: unused parameter `const
QMap<QString,
QString>&opts'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/kde
-I/usr/lib/qt-3.1/include -I/usr/X11R6/include
-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
preview.o -MD -MP -MF ".deps/preview.Tpo" \ -c -o preview.o `test -f 'preview.cpp' || echo
'./'`preview.cpp; \ then mv ".deps/preview.Tpo" ".deps/preview.Po"; \ else rm -f ".deps/preview.Tpo"; exit 1; \ fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/kde
-I/usr/lib/qt-3.1/include -I/usr/X11R6/include
-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
patterncanvas.o -MD -MP -MF ".deps/patterncanvas.Tpo" \ -c -o patterncanvas.o `test -f 'patterncanvas.cpp' ||
echo './'`patterncanvas.cpp; \ then mv ".deps/patterncanvas.Tpo"
".deps/patterncanvas.Po"; \ else rm -f ".deps/patterncanvas.Tpo"; exit 1; \ fi
patterncanvas.cpp: In member function `bool
PatternCanvas::readPCStitch5Canvas(QDataStream&)':
patterncanvas.cpp:655: warning: comparison between
signed and unsigned integer
expressions
patterncanvas.cpp:671: warning: comparison between
signed and unsigned integer
expressions
patterncanvas.cpp:675: warning: comparison between
signed and unsigned integer
expressions
patterncanvas.cpp:680: warning: comparison between
signed and unsigned integer
expressions
patterncanvas.cpp:688: warning: comparison between
signed and unsigned integer
expressions
patterncanvas.cpp:692: warning: comparison between
signed and unsigned integer
expressions
patterncanvas.cpp:699: warning: comparison between
signed and unsigned integer
expressions
patterncanvas.cpp:703: warning: comparison between
signed and unsigned integer
expressions
patterncanvas.cpp:641: warning: unused variable `Q_INT8
stitches'
patterncanvas.cpp: In member function `bool
PatternCanvas::readKXStitchCanvas(QDataStream&, int)':
patterncanvas.cpp:738: warning: comparison between
signed and unsigned integer
expressions
patterncanvas.cpp:745: warning: comparison between
signed and unsigned integer
expressions
patterncanvas.cpp:753: warning: comparison between
signed and unsigned integer
expressions
patterncanvas.cpp:760: warning: comparison between
signed and unsigned integer
expressions
patterncanvas.cpp:764: warning: comparison between
signed and unsigned integer
expressions
patterncanvas.cpp:768: warning: comparison between
signed and unsigned integer
expressions
patterncanvas.cpp:772: warning: comparison between
signed and unsigned integer
expressions
patterncanvas.cpp:779: warning: comparison between
signed and unsigned integer
expressions
patterncanvas.cpp:786: error: name lookup of `i'
changed for new ISO `for'
scoping
patterncanvas.cpp:743: error: using obsolete binding
at `i'
patterncanvas.cpp:788: warning: comparison between
signed and unsigned integer
expressions
patterncanvas.cpp:796: warning: comparison between
signed and unsigned integer
expressions
patterncanvas.cpp:806: warning: comparison between
signed and unsigned integer
expressions
patterncanvas.cpp:810: warning: comparison between
signed and unsigned integer
expressions
patterncanvas.cpp:726: warning: unused variable
`Q_INT16 count'
patterncanvas.cpp:728: warning: unused variable `Q_INT16 x'
patterncanvas.cpp:729: warning: unused variable `Q_INT16 y'
make[3]: *** [patterncanvas.o] Error 1
make[3]: Leaving directory
`/home/andyp/devt/kxstitch/kxstitch-0.4/kxstitch'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/home/andyp/devt/kxstitch/kxstitch-0.4/kxstitch'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/home/andyp/devt/kxstitch/kxstitch-0.4'
make: *** [all] Error 2

Discussion

  • Andy Piper

    Andy Piper - 2004-03-07

    Logged In: YES
    user_id=3132

    Working with the source from CVS, I have fixed this bug.

    You need to change line 786 of patterncanvas.cpp from
    for (i = 0 ; i < cells ; i++)

    to
    for (int i = 0 ; i < cells ; i++)

    This fixes the scoping problem for i.

    However I now have another problem:
    g++ -O2 -fno-exceptions -fno-check-new -o kxstitch
    schemeparser.o flossscheme.o schememanager.o printdlgpage.o
    preview.o patterncanvas.o paletteview.o importimagedlg.o
    flosspalette.o flosslistboxitem.o editview.o stitch.o
    kxstitchview.o kxstitchdoc.o kxstitchmimesource.o kxstitch.o
    configuration.o configurationdialog.o
    patternpropertiesdialog.o calibratedialog.o addcolordialog.o
    newcolordialog.o main.o printdlg.o patternpropertiesdlg.o
    importimage.o extendpattern.o addcolordlg.o
    configurationdlg.o calibratedlg.o loadpalettedlg.o
    newcolordlg.o patternpropertiesdialog.moc.o
    configurationdialog.moc.o paletteview.moc.o
    addcolordialog.moc.o kxstitchview.moc.o kxstitchdoc.moc.o
    newcolordialog.moc.o patterncanvas.moc.o preview.moc.o
    calibratedialog.moc.o editview.moc.o importimagedlg.moc.o
    printdlgpage.moc.o kxstitch.moc.o kxstitch_meta_unload.o
    -L/usr/X11R6/lib -L/usr/lib/qt-3.1/lib -L/usr/lib
    /usr/lib/libkdeprint.so -L/usr/kerberos/lib
    /usr/lib/libkparts.so /usr/lib/libkio.so
    /usr/lib/libkdesu.so -lresolv -lutil /usr/lib/libMagick++.so
    /usr/lib/libMagick.so -ltiff /usr/lib/libfreetype.so -lbz2
    /usr/lib/libxml2.so -lkfile /usr/lib/libkdeui.so -lresolv
    /usr/lib/libkdecore.so /usr/lib/libDCOP.so -ldl -lresolv
    -lXinerama -lart_lgpl_2 /usr/lib/libkdefx.so -lqt-mt
    -lpthread -lXrender -lstdc++ -lc -lgcc_s -lqt -lpng -lz -lm
    /usr/lib/libjpeg.so -lXext -lX11 -lresolv -lSM -lICE
    -lresolv -Wl,--rpath -Wl,/usr/lib -Wl,--rpath
    -Wl,/usr/lib/qt-3.1/lib -Wl,--rpath -Wl,/usr/X11R6/lib
    /usr/bin/ld: cannot find -lkfile
    collect2: ld returned 1 exit status

    Running `locate kfile` returns the following candidates:
    /usr/lib/kde3/kfile_font.la
    /usr/lib/kde3/kfile_font.so
    /usr/lib/kde3/kfile_avi.la
    /usr/lib/kde3/kfile_au.la
    /usr/lib/kde3/kfile_au.so
    /usr/lib/kde3/kfile_avi.so
    /usr/lib/kde3/kfile_m3u.la
    /usr/lib/kde3/kfile_m3u.so
    /usr/lib/kde3/kfile_ogg.la
    /usr/lib/kde3/kfile_ogg.so
    /usr/lib/kde3/kfile_wav.la
    /usr/lib/kde3/kfile_wav.so
    /usr/lib/kde3/kfile_bmp.la
    /usr/lib/kde3/kfile_bmp.so
    /usr/lib/kde3/kfile_ico.la
    /usr/lib/kde3/kfile_ico.so
    /usr/lib/kde3/kfile_jpeg.la
    /usr/lib/kde3/kfile_jpeg.so
    /usr/lib/kde3/kfile_pdf.la
    /usr/lib/kde3/kfile_pdf.so
    /usr/lib/kde3/kfile_png.la
    /usr/lib/kde3/kfile_png.so
    /usr/lib/kde3/kfile_ps.la
    /usr/lib/kde3/kfile_ps.so
    /usr/lib/kde3/kfile_tga.la
    /usr/lib/kde3/kfile_tga.so
    /usr/lib/kde3/kfile_tiff.la
    /usr/lib/kde3/kfile_tiff.so
    /usr/lib/kde3/kfile_xbm.la
    /usr/lib/kde3/kfile_xbm.so
    /usr/lib/kde3/kfile_deb.la
    /usr/lib/kde3/kfile_deb.so
    /usr/lib/kde3/kfile_rpm.la
    /usr/lib/kde3/kfile_rpm.so
    /usr/lib/kde3/kfile_desktop.la
    /usr/lib/kde3/kfile_desktop.so
    /usr/lib/kde3/kfile_folder.la
    /usr/lib/kde3/kfile_folder.so
    /usr/lib/kde3/kfile_html.la
    /usr/lib/kde3/kfile_html.so
    /usr/lib/kde3/kfile_txt.la
    /usr/lib/kde3/kfile_txt.so
    /usr/lib/kde3/kfile_cpp.la
    /usr/lib/kde3/kfile_cpp.so
    /usr/lib/kde3/kfile_diff.la
    /usr/lib/kde3/kfile_diff.so
    /usr/lib/kde3/kfile_po.la
    /usr/lib/kde3/kfile_po.so

    However, none of them are apparently kfile on its own with
    no suffix.

     
  • Andy Piper

    Andy Piper - 2004-03-07
    • priority: 5 --> 7
     
  • Andy Piper

    Andy Piper - 2004-03-07

    Logged In: YES
    user_id=3132

    Fixed by editing all references to -lkfile to -lkio.

    Can this be fixed in CVS?

     
  • Stephen Allewell

    Logged In: YES
    user_id=618149

    Patch 911433 supplied by andyp will resolve the scoping issue.
    My system reports this error as a warning and then continues
    to compile. Other systems aren't as forgiving.

    Regarding -lkfile, this is a problem relating to the admin
    files in CVS belonging to KDE2. To compile for KDE you need
    to replace the admin directory with a copy from the kdesdk
    relevant to the version of KDE you use. This will replace
    the -lkfile with -lkio among other fixes.

    The fix for CVS is really to remove the admin directory
    completely and supply a README.CVS with the above information.

     
  • Stephen Allewell

    • status: open --> closed
     

Log in to post a comment.