Skip to contentSkip to conversation

CVS does not compile

DISCUSSION Lee Revell 2 participants 3 messages Feb 15, 2005 – Feb 16, 2005

lore
Share & tools
lore

Lee Revell

author
#0 lore raw

make -C /home/rlrevell/kernel-source/linux-2.6.11-rc4-V0.7.39-02 SUBDIRS=/smb/rl
revell/cvs/alsa-default-2/alsa-driver O=/lib/modules/2.6.11-rc4-RT-V0.7.39-02/bu
ild modules
make[1]: Entering directory `/smb/rlrevell/kernel-source/linux-2.6.11-rc4-V0.7.3
9-02'
CC [M] /smb/rlrevell/cvs/alsa-default-2/alsa-driver/acore/hwdep.o
In file included
from /smb/rlrevell/cvs/alsa-default-2/alsa-driver/include/sound/core.h:29,

from /smb/rlrevell/cvs/alsa-default-2/alsa-driver/acore/hwdep.c:28:
include/linux/pm.h:198: error: redefinition of `pm_message_t' /smb/rlrevell/cvs/alsa-default-2/alsa-driver/include/adriver.h:717:
error: `pm_message_t' previously declared here
In file included
from /smb/rlrevell/cvs/alsa-default-2/alsa-driver/include/sound/core.h:29,

from /smb/rlrevell/cvs/alsa-default-2/alsa-driver/acore/hwdep.c:28:
include/linux/pm.h:218:1: warning: "PMSG_FREEZE" redefined
In file included
from /smb/rlrevell/cvs/alsa-default-2/alsa-driver/include/sound/driver.h:42,

from /smb/rlrevell/cvs/alsa-default-2/alsa-driver/acore/hwdep.c:22:
/smb/rlrevell/cvs/alsa-default-2/alsa-driver/include/adriver.h:718:1:
warning: this is the location of the previous definition
In file included
from /smb/rlrevell/cvs/alsa-default-2/alsa-driver/include/sound/core.h:29,

from /smb/rlrevell/cvs/alsa-default-2/alsa-driver/acore/hwdep.c:28:
include/linux/pm.h:219:1: warning: "PMSG_SUSPEND" redefined
In file included
from /smb/rlrevell/cvs/alsa-default-2/alsa-driver/include/sound/driver.h:42,

from /smb/rlrevell/cvs/alsa-default-2/alsa-driver/acore/hwdep.c:22:
/smb/rlrevell/cvs/alsa-default-2/alsa-driver/include/adriver.h:719:1:
warning: this is the location of the previous definition
In file included
from /smb/rlrevell/cvs/alsa-default-2/alsa-driver/include/sound/core.h:29,

from /smb/rlrevell/cvs/alsa-default-2/alsa-driver/acore/hwdep.c:28:
include/linux/pm.h:220:1: warning: "PMSG_ON" redefined
In file included
from /smb/rlrevell/cvs/alsa-default-2/alsa-driver/include/sound/driver.h:42,

from /smb/rlrevell/cvs/alsa-default-2/alsa-driver/acore/hwdep.c:22:
/smb/rlrevell/cvs/alsa-default-2/alsa-driver/include/adriver.h:720:1:
warning: this is the location of the previous definition make[4]: *** [/smb/rlrevell/cvs/alsa-default-2/alsa-driver/acore/hwdep.o] Error 1 make[3]: *** [/smb/rlrevell/cvs/alsa-default-2/alsa-driver/acore] Error 2
make[2]: *** [_module_/smb/rlrevell/cvs/alsa-default-2/alsa-driver] Error 2
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/smb/rlrevell/kernel-source/linux-2.6.11-rc4-V0.7.39-02'
make: *** [compile] Error 2

Lee

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

author
#1 lore raw
Quoted 4 lines · Lee Revell

from /smb/rlrevell/cvs/alsa-default-2/alsa-driver/acore/hwdep.c:28:
include/linux/pm.h:198: error: redefinition of `pm_message_t' /smb/rlrevell/cvs/alsa-default-2/alsa-driver/include/adriver.h:717:
error: `pm_message_t' previously declared here

If I back out this patch it works fine.

Lee

Index: include/adriver.h
===================================================================
RCS file: /cvsroot/alsa/alsa-driver/include/adriver.h,v retrieving revision 1.105
retrieving revision 1.106

adriver.h +2 -1
diff -u -u -r1.105 -r1.106
@@ -712,7 +712,8 @@
 #endif
 
 /* pm_message_t type */
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 11)
+/* #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 11) */
+#ifndef PMSG_FREEZE
 typedef u32 /*__bitwise*/ pm_message_t;
 #define PMSG_FREEZE	3
 #define PMSG_SUSPEND	3

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

#2 lore raw

At Tue, 15 Feb 2005 18:41:33 -0500,

Quoted 8 lines · Lee Revell
Quoted 4 lines · Lee Revell

from /smb/rlrevell/cvs/alsa-default-2/alsa-driver/acore/hwdep.c:28:
include/linux/pm.h:198: error: redefinition of `pm_message_t' /smb/rlrevell/cvs/alsa-default-2/alsa-driver/include/adriver.h:717:
error: `pm_message_t' previously declared here

If I back out this patch it works fine.

Try the attached patch.

Takashi

Index: alsa-driver/include/adriver.h
===================================================================
RCS file: /suse/tiwai/cvs/alsa/alsa-driver/include/adriver.h,v retrieving revision 1.98

include/adriver.h +3 -1
diff -u -r1.98 adriver.h
@@ -712,12 +712,14 @@
 #endif
 
 /* pm_message_t type */
-/* #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 11) */
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 11)
+#include <linux/pm.h>
 #ifndef PMSG_FREEZE
 typedef u32 /*__bitwise*/ pm_message_t;
 #define PMSG_FREEZE	3
 #define PMSG_SUSPEND	3
 #define PMSG_ON		0
 #endif
+#endif
 
 #endif /* __SOUND_LOCAL_DRIVER_H */