[Pkg-kde-bugs-fwd] [Bug 101557] New: compile errors on amd64 with gcc4

Debian KDE Maintainers 101557@bugs.kde.org
15 Mar 2005 15:27:21 -0000


------- You are receiving this mail because: -------
You reported the bug, or are watching the reporter.
         
http://bugs.kde.org/show_bug.cgi?id=101557         
           Summary: compile errors on amd64 with gcc4
           Product: kresources
           Version: unspecified
          Platform: Debian testing
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: framework
        AssignedTo: schumacher kde org
        ReportedBy: pkg-kde-bugs-fwd lists alioth debian org


Version:            (using KDE KDE 3.4.0)
Installed from:    Debian testing/unstable Packages
Compiler:          gcc 4.0 prerelease 
OS:                Linux

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=293107 informs us that kdepim won't compile on amd64 using gcc4:

 g++ -DHAVE_CONFIG_H -I. -I/kdepim-3.3.2/./knode -I.. -I/kdepim-3.3.2/./libkdenetwork -I/kdepim-3.3.2/./libkdepim -I/usr/include/kde -I/usr/share/qt3/include -I. -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -g -Wall -O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -MT libknodecommon_la.all_cpp.lo -MD -MP -MF .deps/libknodecommon_la.all_cpp.Tpo -c libknodecommon_la.all_cpp.cpp  -fPIC -DPIC -o .libs/libknodecommon_la.all_cpp.o
/kdepim-3.3.2/./knode/kngroup.cpp: In member function 'void KNGroup::insortNewHeaders(QStrList*, KNProtocolClient*)':
/kdepim-3.3.2/./knode/kngroup.cpp:454: warning: unused variable 'count'
/kdepim-3.3.2/./knode/knarticlewidget.cpp: In member function 'void KNArticleWidget::createHtmlPage()':
/kdepim-3.3.2/./knode/knarticlewidget.cpp:1425: error: cast from 'KNArticle*' to 'int' loses precision
/kdepim-3.3.2/./knode/knmainwidget.cpp: In constructor 'FetchArticleIdDlg::FetchArticleIdDlg(QWidget*, const char*)':
/kdepim-3.3.2/./knode/knmainwidget.cpp:2328: warning: 'setButtonOKText' is deprecated (declared at /usr/include/kde/kdialogbase.h:922)
make[4]: *** [libknodecommon_la.all_cpp.lo] Error 1
make[4]: Leaving directory `/kdepim-3.3.2/obj-x86_64-linux/knode'

I've attached the patch that was provided to us for this problem, adapted to the latest code. If you do apply it, please backport to 3_4_BRANCH as well.

Thanks!