Package: powersave
Version: 0.14.0-6
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.

> Automatic build of powersave_0.14.0-6 on coconut0 by sbuild/ia64 0.49
...
> g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../libpower -I/usr/include/dbus-1.0 
> -I/usr/lib/dbus-1.0/include   -I/usr/include/dbus-1.0 
> -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 
> -I/usr/lib/glib-2.0/include     -Wall  -DPOWERSAVE_DEBUG -DUSE_SYSLOG -g 
> -Wall -O2 -c -o cpufreq_interface.o cpufreq_interface.cpp
> cpufreq_interface.cpp: In static member function 'static unsigned int 
> CPUFreq_Interface::read_value(const char*)':
> cpufreq_interface.cpp:180: error: 'atoi' was not declared in this scope
> make[3]: *** [cpufreq_interface.o] Error 1

--- daemon/cpufreq_interface.cpp~       2007-04-02 21:11:22.000000000 +0000
+++ daemon/cpufreq_interface.cpp        2007-04-02 21:11:29.000000000 +0000
@@ -22,6 +22,7 @@
  *                                                                         *
  ***************************************************************************/
 
+#include <cstdlib>
 #include <sstream>
 
 #include "powerlib.h"
--- daemon/cpu.cpp~     2007-04-02 21:14:06.000000000 +0000
+++ daemon/cpu.cpp      2007-04-02 21:14:12.000000000 +0000
@@ -1,6 +1,7 @@
 #include "cpu.h"
 #include "cpufreq_interface.h"
 
+#include <cstdlib>
 #include <sstream>
 
 CPU::CPU(int id) : _cpu_base(id)
--- daemon/event.cpp~   2007-04-02 21:15:03.000000000 +0000
+++ daemon/event.cpp    2007-04-02 21:15:27.000000000 +0000
@@ -22,6 +22,7 @@
  *                                                                         *
  ***************************************************************************/
 
+#include <algorithm>
 #include <sys/wait.h>
 #include <sys/time.h>
 
--- daemon/powersaved.cpp~      2007-04-02 21:15:44.000000000 +0000
+++ daemon/powersaved.cpp       2007-04-02 21:15:50.000000000 +0000
@@ -26,6 +26,7 @@
 #include <getopt.h>
 #include <sys/wait.h>
 #include <sys/fcntl.h>
+#include <cstdlib>
 #include <fstream>
 
 #include "config_pm.h"
--- daemon/event_management.h~  2007-04-02 21:16:41.000000000 +0000
+++ daemon/event_management.h   2007-04-02 21:16:49.000000000 +0000
@@ -24,6 +24,7 @@
 #define EVENT_MANAGEMENT_H
 
 #include <list>
+#include <string>
 
 class Event;
 
--- daemon/pm_interface.cpp~    2007-04-02 21:17:37.000000000 +0000
+++ daemon/pm_interface.cpp     2007-04-02 21:17:52.000000000 +0000
@@ -25,6 +25,7 @@
 #include "config.h"
 #include <sys/wait.h>
 #include <sys/time.h>
+#include <cstdlib>
 
 #include "event_management.h"
 #include "main_loop.h"
--- daemon/main_loop.cpp~       2007-04-02 21:18:03.000000000 +0000
+++ daemon/main_loop.cpp        2007-04-02 21:18:10.000000000 +0000
@@ -22,6 +22,7 @@
  *                                                                         *
  ***************************************************************************/
 
+#include <cstdlib>
 #include <signal.h>
 #include <sched.h>
 #include <errno.h>
--- daemon/device_management.cpp~       2007-04-02 21:18:19.000000000 +0000
+++ daemon/device_management.cpp        2007-04-02 21:18:24.000000000 +0000
@@ -26,6 +26,7 @@
 #include "device_management.h"
 #include "pm_interface.h"
 #include "globals.h"
+#include <algorithm>
 
 using namespace std;
 
--- daemon/cpufreq_management.cpp~      2007-04-02 21:18:32.000000000 +0000
+++ daemon/cpufreq_management.cpp       2007-04-02 21:18:40.000000000 +0000
@@ -27,6 +27,7 @@
 #include "globals.h"
 #include "event_management.h"
 #include "cpu.h"
+#include <algorithm>
 
 #include <cpufreq.h>
 

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


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to