On Wed, 2011-03-23 at 15:11 -0500, Jeff Weber wrote:
> I am unable to build the xenomai head. "make modules" gives
> 
> 
>   CHK     include/linux/version.h
>   CHK     include/generated/utsrelease.h
>   CALL    scripts/checksyscalls.sh
>   CC [M]  kernel/xenomai/nucleus/registry.o
> kernel/xenomai/nucleus/registry.c:226:8: warning: type defaults to
> ‘int’ in declaration of ‘DECLARE_MUTEX’
> kernel/xenomai/nucleus/registry.c:226:1: warning: parameter names
> (without types) in function declaration
> kernel/xenomai/nucleus/registry.c: In function
> ‘registry_proc_callback’:
> kernel/xenomai/nucleus/registry.c:250:8: error: ‘export_mutex’
> undeclared (first use in this function)
> kernel/xenomai/nucleus/registry.c:250:8: note: each undeclared
> identifier is reported only once for each function it appears in
> kernel/xenomai/nucleus/registry.c: At top level:
> kernel/xenomai/nucleus/registry.c:226:8: warning: ‘DECLARE_MUTEX’
> declared ‘static’ but never defined
> make[3]: *** [kernel/xenomai/nucleus/registry.o] Error 1
> make[2]: *** [kernel/xenomai/nucleus] Error 2
> make[1]: *** [kernel/xenomai] Error 2
> make: *** [kernel] Error 2
> make: *** Waiting for unfinished jobs....
> 

DECLARE_MUTEX vanished away in 2.6.37; the required compat wrapper was
merged into 2.5.x, but not to 2.6.x yet.

diff --git a/include/asm-generic/wrappers.h
b/include/asm-generic/wrappers.h
index e5b8c89..4f99fd5 100644
--- a/include/asm-generic/wrappers.h
+++ b/include/asm-generic/wrappers.h
@@ -622,4 +622,9 @@ static inline void wrap_proc_dir_entry_owner(struct
proc_dir_entry *entry)
 #define unlocked_ioctl ioctl
 #endif
 
+#ifndef DEFINE_SEMAPHORE
+/* Legacy DECLARE_MUTEX vanished in 2.6.37 */
+#define DEFINE_SEMAPHORE(sem) DECLARE_MUTEX(sem)
+#endif
+
 #endif /* _XENO_ASM_GENERIC_WRAPPERS_H */

> 
> this config:
> linux=/usr/src/linux-2.6.37.3
> xenomai= xenomai-head
> adeos=adeos-ipipe-2.6.37-x86-2.9-00.patch
> arch=x86 32-bit on SMP
> 
> 
> I recently successfully build the same config using the released
> xenomai-2.5.6 with no problems.
> I'm  not yet experienced in git, but I obtained the xenomai-head
> branch by:
> 
> 
> git clone git://xenomai.org/xenomai-head.git
> 
> 
> Did I fetch the branch wrong, or does the xenomai-head branch
> currently not build?
> I need the CLOCK_HOST_REALTIME feature.
> 
> 
> TIA,
> Jeff
> 
> 
> 
> 
> 
> _______________________________________________
> Xenomai-help mailing list
> [email protected]
> https://mail.gna.org/listinfo/xenomai-help

-- 
Philippe.



_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to