Package: libcorelinux Version: 0.4.32-7.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 There are also some other problem, such as using cout without namespace std. You can reproduce this problem with gcc-snapshot from unstable. > Automatic build of libcorelinux_0.4.32-7.2 on coconut0 by sbuild/ia64 0.49 ... > ../../../../src/classlibs/corelinux/Memory.cpp:147: warning: deprecated > conversion from string constant to 'corelinux::Char*' > ../../../../src/classlibs/corelinux/Memory.cpp:147: warning: deprecated > conversion from string constant to 'corelinux::Char*' > ../../../../src/classlibs/corelinux/Memory.cpp: In static member function > 'static corelinux::MemoryStorage* > corelinux::Memory::createStorage(corelinux::Size, corelinux::Int)': > ../../../../src/classlibs/corelinux/Memory.cpp:176: error: 'srand' was not > declared in this scope > ../../../../src/classlibs/corelinux/Memory.cpp:178: error: 'rand' was not > declared in this scope > make[2]: *** [Memory.lo] Error 1 --- corelinux/Bridge.hpp~ 2007-04-02 11:07:40.000000000 +0000 +++ corelinux/Bridge.hpp 2007-04-02 11:08:16.000000000 +0000 @@ -89,7 +89,7 @@ @return true if equal, false otherwise */ - bool operator==( const Bridge & ) const + bool operator==( const Bridge & aRef) const { return (this == &aRef); } @@ -100,7 +100,7 @@ @return false if equal, true otherwise */ - bool operator!=( const Bridge & ) const + bool operator!=( const Bridge & aRef) const { return !(*this == aRef); } --- src/classlibs/corelinux/Memory.cpp~ 2007-04-02 10:42:41.000000000 +0000 +++ src/classlibs/corelinux/Memory.cpp 2007-04-02 10:43:14.000000000 +0000 @@ -41,6 +41,7 @@ #include <sys/shm.h> #include <errno.h> #include <stdio.h> + #include <stdlib.h> } namespace corelinux --- src/classlibs/corelinux/SemaphoreGroup.cpp~ 2007-04-02 10:45:00.000000000 +0000 +++ src/classlibs/corelinux/SemaphoreGroup.cpp 2007-04-02 10:45:09.000000000 +0000 @@ -38,6 +38,7 @@ #include <sys/sem.h> #include <errno.h> #include <stdio.h> + #include <stdlib.h> } namespace corelinux --- src/testdrivers/ex2/examp2.cpp~ 2007-04-02 10:46:37.000000000 +0000 +++ src/testdrivers/ex2/examp2.cpp 2007-04-02 11:02:15.000000000 +0000 @@ -32,6 +32,7 @@ using namespace corelinux; +using namespace std; #include <iostream> #include <exception> --- src/testdrivers/ex3/examp3.cpp~ 2007-04-02 10:54:55.000000000 +0000 +++ src/testdrivers/ex3/examp3.cpp 2007-04-02 10:57:35.000000000 +0000 @@ -36,6 +36,8 @@ #include <iostream> #include <exception> +using namespace std; + // // In module function prototypes // --- src/testdrivers/ex4/examp4.cpp~ 2007-04-02 10:58:10.000000000 +0000 +++ src/testdrivers/ex4/examp4.cpp 2007-04-02 10:58:18.000000000 +0000 @@ -47,6 +47,8 @@ #include <iostream> #include <exception> +using namespace std; + // // In module function prototypes // --- src/testdrivers/ex5/examp5.cpp~ 2007-04-02 10:58:47.000000000 +0000 +++ src/testdrivers/ex5/examp5.cpp 2007-04-02 10:58:53.000000000 +0000 @@ -35,6 +35,7 @@ #include <exception> using namespace corelinux; +using namespace std; CORELINUX_LIST( Int , IntList ); CORELINUX_VECTOR( Real , RealVector ); --- src/testdrivers/ex6/EquipmentComposite.cpp~ 2007-04-02 10:59:17.000000000 +0000 +++ src/testdrivers/ex6/EquipmentComposite.cpp 2007-04-02 11:04:01.000000000 +0000 @@ -44,6 +44,7 @@ #endif using namespace corelinux; +using namespace std; // // We firewall each of the composite collections as the --- src/testdrivers/ex7/include/BannerComponent.hpp~ 2007-04-02 10:59:39.000000000 +0000 +++ src/testdrivers/ex7/include/BannerComponent.hpp 2007-04-02 11:00:21.000000000 +0000 @@ -28,6 +28,8 @@ #include <string> #include <iostream> +using namespace std; + /** A BannerComponent is a base component that displays its Banner. You can must set the banner during construction --- src/testdrivers/ex8/include/Dictionary.hpp~ 2007-04-02 11:04:15.000000000 +0000 +++ src/testdrivers/ex8/include/Dictionary.hpp 2007-04-02 11:04:40.000000000 +0000 @@ -35,6 +35,8 @@ #include <string> +using namespace std; + CORELINUX_MAP( DwordIdentifier, string, less<DwordIdentifier>, NameMap ) ; /** --- src/testdrivers/ex8/include/Modeler.hpp~ 2007-04-02 11:04:57.000000000 +0000 +++ src/testdrivers/ex8/include/Modeler.hpp 2007-04-02 11:05:04.000000000 +0000 @@ -37,6 +37,8 @@ #include <Object.hpp> #endif +using namespace std; + CORELINUX_VECTOR( DwordIdentifier , IdVector ) ; CORELINUX_MAP( DwordIdentifier, IdVector, less<DwordIdentifier>, IdMap ) ; --- src/testdrivers/ex8/include/ObjectModel.hpp~ 2007-04-02 11:06:03.000000000 +0000 +++ src/testdrivers/ex8/include/ObjectModel.hpp 2007-04-02 11:06:12.000000000 +0000 @@ -35,6 +35,8 @@ #include <iostream> +using namespace std; + DECLARE_CLASS( Dictionary ); DECLARE_CLASS( Modeler ); --- src/testdrivers/ex8/ObjectFactory.cpp~ 2007-04-02 11:05:38.000000000 +0000 +++ src/testdrivers/ex8/ObjectFactory.cpp 2007-04-02 11:05:42.000000000 +0000 @@ -31,6 +31,7 @@ #endif using namespace corelinux; +using namespace std; CORELINUX_MAP( DwordIdentifier, ObjectPtr, less<DwordIdentifier> , ObjectMap ); --- src/testdrivers/ex11/include/MazeBuilderFactory.hpp~ 2007-04-02 11:07:12.000000000 +0000 +++ src/testdrivers/ex11/include/MazeBuilderFactory.hpp 2007-04-02 11:07:18.000000000 +0000 @@ -42,6 +42,8 @@ #include <NameIdentifier.hpp> #endif +using namespace std; + // // We use a map for storing our allocators. We could have fire-walled this // as well. --- src/testdrivers/ex11/include/Maze.hpp~ 2007-04-02 11:08:30.000000000 +0000 +++ src/testdrivers/ex11/include/Maze.hpp 2007-04-02 11:08:36.000000000 +0000 @@ -34,6 +34,7 @@ #include <Room.hpp> #endif +using namespace std; CORELINUX_MAP( RoomNumber, RoomPtr, less<RoomNumber> , RoomMap ); --- src/testdrivers/ex12/examp12.cpp~ 2007-04-02 11:08:55.000000000 +0000 +++ src/testdrivers/ex12/examp12.cpp 2007-04-02 11:08:59.000000000 +0000 @@ -52,6 +52,7 @@ #include <RestrictedAccountProxy.hpp> using namespace corelinux; +using namespace std; #include <iostream> #include <exception> --- src/testdrivers/ex13/examp13.cpp~ 2007-04-02 11:09:33.000000000 +0000 +++ src/testdrivers/ex13/examp13.cpp 2007-04-02 11:09:36.000000000 +0000 @@ -52,6 +52,7 @@ #include <corelinux/MutexSemaphoreGroup.hpp> using namespace corelinux; +using namespace std; #include <iostream> #include <exception> --- src/testdrivers/ex14/examp14.cpp~ 2007-04-02 11:10:28.000000000 +0000 +++ src/testdrivers/ex14/examp14.cpp 2007-04-02 11:10:34.000000000 +0000 @@ -49,6 +49,7 @@ #include <GatewaySemaphore.hpp> using namespace corelinux; +using namespace std; #include <iostream> #include <exception> --- src/testdrivers/ex15/examp15.cpp~ 2007-04-02 11:10:53.000000000 +0000 +++ src/testdrivers/ex15/examp15.cpp 2007-04-02 11:10:58.000000000 +0000 @@ -39,6 +39,7 @@ #include <ArgumentContext.hpp> using namespace corelinux; +using namespace std; #include <iostream> #include <exception> --- src/testdrivers/ex16/examp16.cpp~ 2007-04-02 11:11:53.000000000 +0000 +++ src/testdrivers/ex16/examp16.cpp 2007-04-02 11:11:57.000000000 +0000 @@ -35,6 +35,7 @@ #include <Memory.hpp> using namespace corelinux; +using namespace std; #include <iostream> #include <exception> --- src/testdrivers/ex17/examp17.cpp~ 2007-04-02 11:12:11.000000000 +0000 +++ src/testdrivers/ex17/examp17.cpp 2007-04-02 11:12:15.000000000 +0000 @@ -32,6 +32,7 @@ #include <HandlerHelpHandler.hpp> using namespace corelinux; +using namespace std; #include <iostream> #include <exception> --- src/testdrivers/ex17/RequestHelpHandler.cpp~ 2007-04-02 11:12:37.000000000 +0000 +++ src/testdrivers/ex17/RequestHelpHandler.cpp 2007-04-02 11:13:26.000000000 +0000 @@ -26,7 +26,10 @@ #include <RequestHelpHandler.hpp> #endif +#include <iostream> + using namespace corelinux; +using namespace std; // Default constructor --- src/testdrivers/ex17/HandlerHelpHandler.cpp~ 2007-04-02 11:13:38.000000000 +0000 +++ src/testdrivers/ex17/HandlerHelpHandler.cpp 2007-04-02 11:14:09.000000000 +0000 @@ -26,7 +26,10 @@ #include <HandlerHelpHandler.hpp> #endif +#include <iostream> + using namespace corelinux; +using namespace std; // Default constructor --- src/testdrivers/ex18/examp18.cpp~ 2007-04-02 11:14:16.000000000 +0000 +++ src/testdrivers/ex18/examp18.cpp 2007-04-02 11:14:21.000000000 +0000 @@ -43,6 +43,7 @@ #include <RestoreCaseCommand.hpp> using namespace corelinux; +using namespace std; #include <iostream> #include <exception> --- src/testdrivers/ex18/UpperCaseCommand.cpp~ 2007-04-02 11:14:34.000000000 +0000 +++ src/testdrivers/ex18/UpperCaseCommand.cpp 2007-04-02 11:14:45.000000000 +0000 @@ -31,6 +31,8 @@ #include <RestoreCaseCommand.hpp> #endif +#include <cctype> + using namespace corelinux; // Default constructor --- src/testdrivers/ex19/include/ListMediator.hpp~ 2007-04-02 11:15:23.000000000 +0000 +++ src/testdrivers/ex19/include/ListMediator.hpp 2007-04-02 11:15:28.000000000 +0000 @@ -41,6 +41,8 @@ #include <corelinux/Set.hpp> #endif +using namespace std; + DECLARE_CLASS( ListColleague ); // Adds to list, notifies of List Change // Notified of edit change --- src/testdrivers/ex19/include/ListColleague.hpp~ 2007-04-02 11:15:50.000000000 +0000 +++ src/testdrivers/ex19/include/ListColleague.hpp 2007-04-02 11:16:41.000000000 +0000 @@ -33,6 +33,10 @@ #include <corelinux/Vector.hpp> #endif +#include <string> + +using namespace std; + DECLARE_CLASS( ListMediator ); DECLARE_CLASS( ListColleague ); --- src/testdrivers/ex19/include/ListMementos.hpp~ 2007-04-02 11:16:59.000000000 +0000 +++ src/testdrivers/ex19/include/ListMementos.hpp 2007-04-02 11:17:10.000000000 +0000 @@ -33,6 +33,10 @@ #include <corelinux/Memento.hpp> #endif +#include <string> + +using namespace std; + DECLARE_CLASS( ChangedListMemento ); CORELINUX_VECTOR( string , ListEntries ); --- src/testdrivers/ex19/include/SelectColleague.hpp~ 2007-04-02 11:17:53.000000000 +0000 +++ src/testdrivers/ex19/include/SelectColleague.hpp 2007-04-02 11:18:04.000000000 +0000 @@ -33,6 +33,10 @@ #include <corelinux/Vector.hpp> #endif +#include <string> + +using namespace std; + DECLARE_CLASS( ListMediator ); DECLARE_CLASS( SelectColleague ); --- src/testdrivers/ex19/examp19.cpp~ 2007-04-02 11:15:04.000000000 +0000 +++ src/testdrivers/ex19/examp19.cpp 2007-04-02 11:15:12.000000000 +0000 @@ -63,6 +63,8 @@ #include <iostream> #include <exception> +using namespace std; + // // In module function prototypes // --- src/testdrivers/ex19/EditColleague.cpp~ 2007-04-02 11:17:19.000000000 +0000 +++ src/testdrivers/ex19/EditColleague.cpp 2007-04-02 11:17:41.000000000 +0000 @@ -34,11 +34,14 @@ #include <ListMementos.hpp> #endif +#include <iostream> + // Buffer space for cin.getline static char gBuffer[1024]; using namespace corelinux; +using namespace std; // Constructor --- src/testdrivers/ex19/SelectColleague.cpp~ 2007-04-02 11:18:13.000000000 +0000 +++ src/testdrivers/ex19/SelectColleague.cpp 2007-04-02 11:18:27.000000000 +0000 @@ -34,7 +34,10 @@ #include <ListMementos.hpp> #endif +#include <iostream> + using namespace corelinux; +using namespace std; // Constructor --- src/testdrivers/ex20/include/SubjectObserver.hpp~ 2007-04-02 11:19:34.000000000 +0000 +++ src/testdrivers/ex20/include/SubjectObserver.hpp 2007-04-02 11:19:46.000000000 +0000 @@ -37,6 +37,8 @@ #include <corelinux/Map.hpp> #endif +using namespace std; + DECLARE_CLASS( SubjectObserver ); /** --- src/testdrivers/ex20/SubjectObserver.cpp~ 2007-04-02 11:18:53.000000000 +0000 +++ src/testdrivers/ex20/SubjectObserver.cpp 2007-04-02 11:19:09.000000000 +0000 @@ -35,6 +35,7 @@ #endif using namespace corelinux; +using namespace std; // Default constructor --- src/testdrivers/ex20/Edit.cpp~ 2007-04-02 11:19:58.000000000 +0000 +++ src/testdrivers/ex20/Edit.cpp 2007-04-02 11:20:16.000000000 +0000 @@ -34,11 +34,14 @@ #include <Mementos.hpp> #endif +#include <iostream> + // Buffer space for cin.getline static char gBuffer[1024]; using namespace corelinux; +using namespace std; // Constructor --- src/testdrivers/ex20/Select.cpp~ 2007-04-02 11:20:24.000000000 +0000 +++ src/testdrivers/ex20/Select.cpp 2007-04-02 11:20:34.000000000 +0000 @@ -34,7 +34,10 @@ #include <Mementos.hpp> #endif +#include <iostream> + using namespace corelinux; +using namespace std; // Constructor --- src/testdrivers/ex21/examp21c.cpp~ 2007-04-02 10:51:45.000000000 +0000 +++ src/testdrivers/ex21/examp21c.cpp 2007-04-02 11:21:26.000000000 +0000 @@ -51,6 +51,7 @@ // using namespace corelinux; +using namespace std; void handleAssertion( AssertionCref ); void handleException( ExceptionCref ); --- src/testdrivers/ex21/examp21s.cpp~ 2007-04-02 11:20:47.000000000 +0000 +++ src/testdrivers/ex21/examp21s.cpp 2007-04-02 11:20:57.000000000 +0000 @@ -52,6 +52,7 @@ // using namespace corelinux; +using namespace std; void handleAssertion( AssertionCref ); void handleException( ExceptionCref ); --- src/testdrivers/ex22/examp22.cpp~ 2007-04-02 11:21:41.000000000 +0000 +++ src/testdrivers/ex22/examp22.cpp 2007-04-02 11:21:46.000000000 +0000 @@ -50,6 +50,7 @@ #endif using namespace corelinux; +using namespace std; #include <iostream> #include <exception> --- src/utils/csamon/csamon.cpp~ 2007-04-02 11:22:19.000000000 +0000 +++ src/utils/csamon/csamon.cpp 2007-04-02 11:22:28.000000000 +0000 @@ -38,6 +38,7 @@ #include <exception> using namespace corelinux; +using namespace std; // // In module function prototypes -- Martin Michlmayr http://www.cyrius.com/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

