! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Power-manager (trunk) build error (FYI)
Status:
CLOSED: INVALID
Product:
Xfce4-power-manager
Component:
General

Comments

Description Masato Hashimoto 2009-01-13 07:00:59 CET
In my environment, building power-manager is failed.

Error messages:
====
xfpm-enum-types.c: In function 'xfpm_cpu_governor_get_type':
xfpm-enum-types.c:87: error: 'USERSPACE' undeclared (first use in this function)
xfpm-enum-types.c:87: error: (Each undeclared identifier is reported only once
xfpm-enum-types.c:87: error: for each function it appears in.)
make[2]: *** [xfce4_power_manager-xfpm-enum-types.o] Error 1
make[2]: Leaving directory `/media/sda1/svn/xfce/goodies/xfce4-power-manager/trunk/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/media/sda1/svn/xfce/goodies/xfce4-power-manager/trunk'
make: *** [all] Error 2
===

I modified as follows and seems to solved the problem.

Index: src/xfpm-enums.h
===================================================================
--- xfpm-enums.h	(revision 6447)
+++ xfpm-enums.h	(working copy)
@@ -52,7 +52,8 @@
     POWERSAVE               = (1<<1),
     ONDEMAND                = (1<<2),
     PERFORMANCE             = (1<<3),
-    CONSERVATIVE            = (1<<4)
+    CONSERVATIVE            = (1<<4),
+    USERSPACE               = (1<<5)
     
 } XfpmCpuGovernor;
 
I don't know that this problem occurs only in my environment or not and my modifying is appropriate or not.

Build Date & Platforms:
 Build 2009-01-12 on Arch Linux (gcc 4.3.2)
Comment 1 Ali Abdallah editbugs 2009-01-13 07:34:45 CET
(In reply to comment #0)

The Userspace governor is removed long time ago, i guess you xfpm-enum-type.h has to be regenerated, you can delete it or just "make distclean".

Please let me know id you still have this kind of problems.
Comment 2 Masato Hashimoto 2009-01-13 08:17:25 CET
(In reply to comment #1)

I reverted xfpm-enums.h and ran "make distclean", then build is completed.
I have no any other problems about power-manager.

Thank you for advise.
Comment 3 Ali Abdallah editbugs 2009-01-13 08:20:33 CET
You are welcome.
Comment 4 Ali Abdallah editbugs 2009-07-02 14:06:35 CEST
Closing old bugs to keep things organized.

Bug #4800

Reported by:
Masato Hashimoto
Reported on: 2009-01-13
Last modified on: 2009-07-14

People

Assignee:
Ali Abdallah
CC List:
0 users

Version

Version:
Unspecified

Attachments

Additional information