Bug 101557 - compile errors on amd64 with gcc4
Summary: compile errors on amd64 with gcc4
Status: RESOLVED FIXED
Alias: None
Product: kresources
Classification: Unmaintained
Component: framework (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: Cornelius Schumacher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-15 16:27 UTC by Ana Guerrero (Debian KDE maintainers)
Modified: 2005-04-04 12:39 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
kdepim patch for amd64 w/ gcc4 (739 bytes, patch)
2005-03-15 16:27 UTC, Ana Guerrero (Debian KDE maintainers)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ana Guerrero (Debian KDE maintainers) 2005-03-15 16:27:17 UTC
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!
Comment 1 Ana Guerrero (Debian KDE maintainers) 2005-03-15 16:27:47 UTC
Created attachment 10129 [details]
kdepim patch for amd64 w/ gcc4
Comment 2 Tobias Koenig 2005-04-04 12:39:46 UTC
Hi,

the patch is applyed to CVS HEAD now, thank you very much for the report.

Ciao,
Tobias