I received this bug in the debian bug tracking system from a gcc
developer about a not yet released version of gcc.  This report is also
available here:

http://bugs.debian.org/421327

Thanks,
stew

----- Forwarded message from Martin Michlmayr <[EMAIL PROTECTED]> -----

From: Martin Michlmayr <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Reply-To: Martin Michlmayr <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
Subject: Bug#421327: FTBFS with GCC 4.3: missing #includes
Date: Fri, 27 Apr 2007 23:44:54 +0200

Package: rosegarden
Version: 1:1.5.1-2
Usertags: ftbfs-gcc-4.3
Tags: patch

Your package fails to build with GCC 4.3.  Version 4.3 has not been
released yet but I'm building with a snapshot in order to find errors
and give people an advance warning.  In GCC 4.3, the C++ header
dependencies have been cleaned up.  The advantage of this is that
programs will compile faster.  The downside is that you actually
need to directly #include everything you use (but you really should
do this anyway, otherwise your program won't work with any compiler
other than GCC).  Some background of this can be found at
http://gcc.gnu.org/PR28080

You can reproduce this problem with gcc-snapshot (20070326-1 or higher)
from unstable. (Currently not available for i386, but for amd64, powerpc
and ia64.  I hope to have i386 binaries in the archive in the near
future.)

> Automatic build of rosegarden_1:1.5.1-2 on em64t by sbuild/amd64 0.53
...
> [  1%] Building CXX object 
> RGbuild/CMakeFiles/RosegardenCommon.dir/base/Clipboard.o
> [  1%] Building CXX object 
> RGbuild/CMakeFiles/RosegardenCommon.dir/base/Colour.o
> [  1%] Building CXX object 
> RGbuild/CMakeFiles/RosegardenCommon.dir/base/ColourMap.o
> [  1%] Building CXX object 
> RGbuild/CMakeFiles/RosegardenCommon.dir/base/Composition.o
> /build/tbm/rosegarden-1.5.1/src/base/Composition.cpp: In destructor 'virtual 
> Rosegarden::Composition::~Composition()':
> /build/tbm/rosegarden-1.5.1/src/base/Composition.cpp:214: error: must 
> #include <typeinfo> before using typeid
> make[3]: *** [RGbuild/CMakeFiles/RosegardenCommon.dir/base/Composition.o] 
> Error 1

--- src/sound/AudioFileManager.cpp~     2007-04-27 15:35:26.000000000 +0000
+++ src/sound/AudioFileManager.cpp      2007-04-27 15:35:33.000000000 +0000
@@ -25,6 +25,7 @@
 #include <string>
 #include <dirent.h> // for new recording file
 #include <cstdio>   // sprintf
+#include <cstdlib>
 #include <pthread.h>
 
 #if (__GNUC__ < 3)
--- src/sound/SampleWindow.h~   2007-04-27 15:42:39.000000000 +0000
+++ src/sound/SampleWindow.h    2007-04-27 15:42:49.000000000 +0000
@@ -41,6 +41,7 @@
 #define _SAMPLE_WINDOW_H_
 
 #include <cmath>
+#include <cstdlib>
 #include <iostream>
 #include <map>
 
--- src/sound/DSSIPluginFactory.cpp~    2007-04-27 15:43:03.000000000 +0000
+++ src/sound/DSSIPluginFactory.cpp     2007-04-27 15:43:14.000000000 +0000
@@ -21,6 +21,7 @@
 
 #include "DSSIPluginFactory.h"
 #include <iostream>
+#include <cstdlib>
 
 #ifdef HAVE_DSSI
 
--- src/sound/DSSIPluginInstance.cpp~   2007-04-27 15:49:44.000000000 +0000
+++ src/sound/DSSIPluginInstance.cpp    2007-04-27 15:49:50.000000000 +0000
@@ -21,6 +21,7 @@
 
 #include <iostream>
 #include <cassert>
+#include <cstdlib>
 
 #include "DSSIPluginInstance.h"
 #include "PluginIdentifier.h"
--- src/sound/LADSPAPluginFactory.cpp~  2007-04-27 15:50:13.000000000 +0000
+++ src/sound/LADSPAPluginFactory.cpp   2007-04-27 15:50:19.000000000 +0000
@@ -21,6 +21,7 @@
 
 #include "LADSPAPluginFactory.h"
 #include <iostream>
+#include <cstdlib>
 
 #ifdef HAVE_LADSPA
 
--- src/sound/PeakFile.cpp~     2007-04-27 15:52:07.000000000 +0000
+++ src/sound/PeakFile.cpp      2007-04-27 15:52:15.000000000 +0000
@@ -19,6 +19,7 @@
 */
 
 #include <cmath>
+#include <cstdlib>
 #include <kapplication.h>
 
 #include <qdatetime.h>
--- src/sound/RecordableAudioFile.cpp~  2007-04-27 15:52:37.000000000 +0000
+++ src/sound/RecordableAudioFile.cpp   2007-04-27 15:52:49.000000000 +0000
@@ -21,6 +21,8 @@
 
 #include "RecordableAudioFile.h"
 
+#include <cstdlib>
+
 //#define DEBUG_RECORDABLE 1
 
 namespace Rosegarden
--- src/base/Composition.cpp~   2007-04-27 15:16:44.000000000 +0000
+++ src/base/Composition.cpp    2007-04-27 15:16:52.000000000 +0000
@@ -31,6 +31,7 @@
 #include <iomanip>
 #include <algorithm>
 #include <cmath>
+#include <typeinfo>
 
 #if (__GNUC__ < 3)
 #include <strstream>
--- src/base/Event.cpp~ 2007-04-27 15:18:24.000000000 +0000
+++ src/base/Event.cpp  2007-04-27 15:18:27.000000000 +0000
@@ -442,4 +442,4 @@
     else return a.getSubOrdering() < b.getSubOrdering();
 }
 
-}
\ No newline at end of file
+}
--- src/base/MidiDevice.cpp~    2007-04-27 15:19:30.000000000 +0000
+++ src/base/MidiDevice.cpp     2007-04-27 15:19:39.000000000 +0000
@@ -25,6 +25,7 @@
 #include "ControlParameter.h"
 
 #include <cstdio>
+#include <cstdlib>
 #include <iostream>
 #include <set>
 
--- src/base/Property.cpp~      2007-04-27 15:21:54.000000000 +0000
+++ src/base/Property.cpp       2007-04-27 15:22:07.000000000 +0000
@@ -22,6 +22,7 @@
 
 #include "Property.h"
 #include <cstdio>
+#include <cstdlib>
 #include <string>
 
 namespace Rosegarden 
--- src/base/Segment.cpp~       2007-04-27 15:32:13.000000000 +0000
+++ src/base/Segment.cpp        2007-04-27 15:32:31.000000000 +0000
@@ -30,6 +30,7 @@
 #include <algorithm>
 #include <iterator>
 #include <cstdio>
+#include <typeinfo>
 
 namespace Rosegarden 
 {
--- src/base/SoftSynthDevice.cpp~       2007-04-27 15:33:10.000000000 +0000
+++ src/base/SoftSynthDevice.cpp        2007-04-27 15:33:16.000000000 +0000
@@ -24,6 +24,7 @@
 #include "MidiTypes.h"
 
 #include <cstdio>
+#include <cstdlib>
 
 
 #if (__GNUC__ < 3)
--- src/base/XmlExportable.cpp~ 2007-04-27 15:34:56.000000000 +0000
+++ src/base/XmlExportable.cpp  2007-04-27 15:35:03.000000000 +0000
@@ -20,6 +20,7 @@
 
 #include "XmlExportable.h"
 #include <iostream>
+#include <cstdlib>
 
 namespace Rosegarden
 {
--- src/gui/application/LircClient.cpp~ 2007-04-27 16:02:20.000000000 +0000
+++ src/gui/application/LircClient.cpp  2007-04-27 16:02:37.000000000 +0000
@@ -35,6 +35,7 @@
 #include <qobject.h>
 #include <qsocketnotifier.h>
 #include <fcntl.h>
+#include <cstdlib>
 
 namespace Rosegarden
 {
--- src/gui/application/RosegardenApplication.cpp~      2007-04-27 
16:04:05.000000000 +0000
+++ src/gui/application/RosegardenApplication.cpp       2007-04-27 
16:04:07.000000000 +0000
@@ -142,4 +142,4 @@
 
 }
 
-#include "RosegardenApplication.moc"
\ No newline at end of file
+#include "RosegardenApplication.moc"
--- src/gui/studio/AudioPluginOSCGUI.cpp~       2007-04-27 17:11:24.000000000 
+0000
+++ src/gui/studio/AudioPluginOSCGUI.cpp        2007-04-27 17:11:32.000000000 
+0000
@@ -35,6 +35,7 @@
 #include <qdir.h>
 #include <qfileinfo.h>
 #include <qstring.h>
+#include <algorithm>
 
 
 namespace Rosegarden
--- src/gui/studio/DeviceEditorDialog.cpp~      2007-04-27 17:12:10.000000000 
+0000
+++ src/gui/studio/DeviceEditorDialog.cpp       2007-04-27 17:12:26.000000000 
+0000
@@ -49,6 +49,7 @@
 #include <qtable.h>
 #include <qvbox.h>
 #include <qwidget.h>
+#include <algorithm>
 
 
 namespace Rosegarden
--- src/gui/studio/MidiProgramsEditor.cpp~      2007-04-27 17:14:10.000000000 
+0000
+++ src/gui/studio/MidiProgramsEditor.cpp       2007-04-27 17:14:23.000000000 
+0000
@@ -54,6 +54,7 @@
 #include <qtooltip.h>
 #include <qvgroupbox.h>
 #include <qwidget.h>
+#include <algorithm>
 
 namespace Rosegarden
 {
--- src/gui/dialogs/KeySignatureDialog.cpp~     2007-04-27 16:11:05.000000000 
+0000
+++ src/gui/dialogs/KeySignatureDialog.cpp      2007-04-27 16:11:16.000000000 
+0000
@@ -43,6 +43,7 @@
 #include <qtooltip.h>
 #include <qvbox.h>
 #include <qwidget.h>
+#include <algorithm>
 
 
 namespace Rosegarden
--- src/gui/widgets/HSpinBox.cpp~       2007-04-27 17:15:20.000000000 +0000
+++ src/gui/widgets/HSpinBox.cpp        2007-04-27 17:15:31.000000000 +0000
@@ -27,6 +27,7 @@
 
 #include <qstring.h>
 #include <cmath>
+#include <algorithm>
 
 namespace Rosegarden
 {
--- src/gui/editors/parameters/MIDIInstrumentParameterPanel.cpp~        
2007-04-27 16:53:15.000000000 +0000
+++ src/gui/editors/parameters/MIDIInstrumentParameterPanel.cpp 2007-04-27 
16:53:26.000000000 +0000
@@ -54,6 +54,7 @@
 #include <qsignalmapper.h>
 #include <qstring.h>
 #include <qwidget.h>
+#include <algorithm>
 
 
 namespace Rosegarden
--- src/gui/editors/segment/CompositionModelImpl.cpp~   2007-04-27 
16:58:44.000000000 +0000
+++ src/gui/editors/segment/CompositionModelImpl.cpp    2007-04-27 
16:59:03.000000000 +0000
@@ -23,6 +23,7 @@
 */
 
 #include <cmath>
+#include <algorithm>
 #include "CompositionModelImpl.h"
 
 #include "base/BaseProperties.h"
--- src/gui/editors/segment/CompositionView.cpp~        2007-04-27 
17:00:50.000000000 +0000
+++ src/gui/editors/segment/CompositionView.cpp 2007-04-27 17:00:59.000000000 
+0000
@@ -65,6 +65,7 @@
 #include <qwidget.h>
 #include <kapplication.h>
 #include <kconfig.h>
+#include <algorithm>
 
 
 namespace Rosegarden
--- src/gui/editors/guitar/BarreList.cpp~       2007-04-27 16:17:21.000000000 
+0000
+++ src/gui/editors/guitar/BarreList.cpp        2007-04-27 16:18:04.000000000 
+0000
@@ -1,5 +1,7 @@
 #include "BarreList.h"
 
+#include <algorithm>
+
 namespace Rosegarden
 {
 
--- src/gui/editors/guitar/ChordName.cpp~       2007-04-27 16:17:53.000000000 
+0000
+++ src/gui/editors/guitar/ChordName.cpp        2007-04-27 16:17:59.000000000 
+0000
@@ -1,6 +1,7 @@
 #include "ChordName.h"
 #include "base/Exception.h"
 
+#include <algorithm>
 #include <sstream>
 
 namespace Rosegarden
--- src/gui/editors/notation/NotationView.cpp~  2007-04-27 16:46:22.000000000 
+0000
+++ src/gui/editors/notation/NotationView.cpp   2007-04-27 16:46:38.000000000 
+0000
@@ -205,6 +205,7 @@
 #include <qtimer.h>
 #include <qwidget.h>
 #include <qvalidator.h>
+#include <algorithm>
 
 
 namespace Rosegarden
--- src/gui/editors/notation/NoteFontFactory.cpp~       2007-04-27 
16:50:57.000000000 +0000
+++ src/gui/editors/notation/NoteFontFactory.cpp        2007-04-27 
16:51:05.000000000 +0000
@@ -41,6 +41,7 @@
 #include <qdir.h>
 #include <qstring.h>
 #include <qstringlist.h>
+#include <algorithm>
 
 
 namespace Rosegarden
--- src/gui/editors/eventlist/EventView.cpp~    2007-04-27 16:13:43.000000000 
+0000
+++ src/gui/editors/eventlist/EventView.cpp     2007-04-27 16:14:40.000000000 
+0000
@@ -85,6 +85,7 @@
 #include <qsize.h>
 #include <qstring.h>
 #include <qwidget.h>
+#include <algorithm>
 
 
 namespace Rosegarden
--- src/gui/rulers/ControlRuler.cpp~    2007-04-27 17:06:19.000000000 +0000
+++ src/gui/rulers/ControlRuler.cpp     2007-04-27 17:06:29.000000000 +0000
@@ -49,6 +49,7 @@
 #include <qscrollview.h>
 #include <qstring.h>
 #include <qwidget.h>
+#include <algorithm>
 
 
 namespace Rosegarden
--- src/gui/general/LinedStaff.cpp~     2007-04-27 17:04:57.000000000 +0000
+++ src/gui/general/LinedStaff.cpp      2007-04-27 17:05:05.000000000 +0000
@@ -43,6 +43,7 @@
 #include <qpen.h>
 #include <qrect.h>
 #include <qstring.h>
+#include <algorithm>
 
 
 namespace Rosegarden
--- src/gui/seqmanager/MetronomeMmapper.cpp~    2007-04-27 17:08:44.000000000 
+0000
+++ src/gui/seqmanager/MetronomeMmapper.cpp     2007-04-27 17:08:59.000000000 
+0000
@@ -43,6 +43,7 @@
 #include <kconfig.h>
 #include <kglobal.h>
 #include <qstring.h>
+#include <algorithm>
 
 
 namespace Rosegarden
--- src/gui/seqmanager/SequenceManager.cpp~     2007-04-27 17:09:30.000000000 
+0000
+++ src/gui/seqmanager/SequenceManager.cpp      2007-04-27 17:09:40.000000000 
+0000
@@ -76,6 +76,7 @@
 #include <qstring.h>
 #include <qstringlist.h>
 #include <qtimer.h>
+#include <algorithm>
 
 
 namespace Rosegarden
--- src/gui/configuration/NotationConfigurationPage.cpp~        2007-04-27 
16:08:46.000000000 +0000
+++ src/gui/configuration/NotationConfigurationPage.cpp 2007-04-27 
16:59:09.000000000 +0000
@@ -59,6 +59,7 @@
 #include <qstringlist.h>
 #include <qtabwidget.h>
 #include <qwidget.h>
+#include <algorithm>
 
 
 namespace Rosegarden

-- 
Martin Michlmayr
http://www.cyrius.com/



----- End forwarded message -----

Attachment: signature.asc
Description: Digital signature

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Rosegarden-devel mailing list
[email protected] - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-devel

Reply via email to