All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] mutex_init() error when build
@ 2006-05-15  9:50 Li Yi (Adam)
  2006-05-15 11:25 ` Philippe Gerum
  0 siblings, 1 reply; 4+ messages in thread
From: Li Yi (Adam) @ 2006-05-15  9:50 UTC (permalink / raw)
  To: Xenomai-help

[-- Attachment #1: Type: text/plain, Size: 1285 bytes --]

Hi,

I am using Xenomai-2.1.0 on Blackfin uClinux. When enabling "POSIX"
interface and build the kernel, I got error message:

"make
make ARCH=blackfin CROSS_COMPILE=bfin-uclinux- -C linux-2.6.x  || exit 1
make[1]: Entering directory
`/home/adam/workspace/kernel/adeos/uClinux-dist_0425/linux-2.6.x'
  CHK     include/linux/version.h
  CHK     include/linux/compile.h
  CHK     usr/initramfs_list
  CC      kernel/xenomai/skins/posix/syscall.o
kernel/xenomai/skins/posix/syscall.c:810: error: conflicting types for
'__mutex_init'
include/linux/mutex.h:94: error: previous declaration of '__mutex_init' was
here
kernel/xenomai/skins/posix/syscall.c:810: error: conflicting types for
'__mutex_init'
include/linux/mutex.h:94: error: previous declaration of '__mutex_init' was
here
make[5]: *** [kernel/xenomai/skins/posix/syscall.o] Error 1
make[4]: *** [kernel/xenomai/skins/posix] Error 2
make[3]: *** [kernel/xenomai/skins] Error 2
make[2]: *** [kernel/xenomai] Error 2
make[1]: *** [kernel] Error 2
"

include/linux/mutex.h:

extern void fastcall __mutex_init(struct mutex *lock, const char *name);

The function definition is different. I tried to add "static" in syscall.c:
__mutex_init(), still cannot work. Could you please help?

Thanks,
-Yi

[-- Attachment #2: Type: text/html, Size: 1540 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Xenomai-help] mutex_init() error when build
  2006-05-15  9:50 [Xenomai-help] mutex_init() error when build Li Yi (Adam)
@ 2006-05-15 11:25 ` Philippe Gerum
  2006-05-15 11:43   ` Philippe Gerum
  2006-05-15 11:49   ` Gilles Chanteperdrix
  0 siblings, 2 replies; 4+ messages in thread
From: Philippe Gerum @ 2006-05-15 11:25 UTC (permalink / raw)
  To: Li Yi (Adam); +Cc: Xenomai-help

Li Yi (Adam) wrote:
> Hi,
> 
> I am using Xenomai-2.1.0 on Blackfin uClinux. When enabling "POSIX" 
> interface and build the kernel, I got error message:
> 

It's a known issue involving a naming conflict between 2.6.16 and Xeno 
2.1.x. This has been fixed in 2.2, but we will likely have to backport 
this fix.

> "make
> make ARCH=blackfin CROSS_COMPILE=bfin-uclinux- -C linux-2.6.x  || exit 1
> make[1]: Entering directory 
> `/home/adam/workspace/kernel/adeos/uClinux-dist_0425/linux-2.6.x'
>   CHK     include/linux/version.h
>   CHK     include/linux/compile.h
>   CHK     usr/initramfs_list
>   CC      kernel/xenomai/skins/posix/syscall.o
> kernel/xenomai/skins/posix/syscall.c:810: error: conflicting types for 
> '__mutex_init'
> include/linux/mutex.h:94: error: previous declaration of '__mutex_init' 
> was here
> kernel/xenomai/skins/posix/syscall.c:810: error: conflicting types for 
> '__mutex_init'
> include/linux/mutex.h:94: error: previous declaration of '__mutex_init' 
> was here
> make[5]: *** [kernel/xenomai/skins/posix/syscall.o] Error 1
> make[4]: *** [kernel/xenomai/skins/posix] Error 2
> make[3]: *** [kernel/xenomai/skins] Error 2
> make[2]: *** [kernel/xenomai] Error 2
> make[1]: *** [kernel] Error 2
> "
> 
> include/linux/mutex.h:
> 
> extern void fastcall __mutex_init(struct mutex *lock, const char *name);
> 
> The function definition is different. I tried to add "static" in 
> syscall.c: __mutex_init(), still cannot work. Could you please help?
> 
> Thanks,
> -Yi
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help


-- 

Philippe.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Xenomai-help] mutex_init() error when build
  2006-05-15 11:25 ` Philippe Gerum
@ 2006-05-15 11:43   ` Philippe Gerum
  2006-05-15 11:49   ` Gilles Chanteperdrix
  1 sibling, 0 replies; 4+ messages in thread
From: Philippe Gerum @ 2006-05-15 11:43 UTC (permalink / raw)
  To: Philippe Gerum; +Cc: Xenomai-help

Philippe Gerum wrote:
> Li Yi (Adam) wrote:
> 
>> Hi,
>>
>> I am using Xenomai-2.1.0 on Blackfin uClinux. When enabling "POSIX" 
>> interface and build the kernel, I got error message:
>>
> 
> It's a known issue involving a naming conflict between 2.6.16 and Xeno 
> 2.1.x. This has been fixed in 2.2, but we will likely have to backport 
> this fix.

This has already been fixed in 2.1.1. Please upgrade.

> 
>> "make
>> make ARCH=blackfin CROSS_COMPILE=bfin-uclinux- -C linux-2.6.x  || exit 1
>> make[1]: Entering directory 
>> `/home/adam/workspace/kernel/adeos/uClinux-dist_0425/linux-2.6.x'
>>   CHK     include/linux/version.h
>>   CHK     include/linux/compile.h
>>   CHK     usr/initramfs_list
>>   CC      kernel/xenomai/skins/posix/syscall.o
>> kernel/xenomai/skins/posix/syscall.c:810: error: conflicting types for 
>> '__mutex_init'
>> include/linux/mutex.h:94: error: previous declaration of 
>> '__mutex_init' was here
>> kernel/xenomai/skins/posix/syscall.c:810: error: conflicting types for 
>> '__mutex_init'
>> include/linux/mutex.h:94: error: previous declaration of 
>> '__mutex_init' was here
>> make[5]: *** [kernel/xenomai/skins/posix/syscall.o] Error 1
>> make[4]: *** [kernel/xenomai/skins/posix] Error 2
>> make[3]: *** [kernel/xenomai/skins] Error 2
>> make[2]: *** [kernel/xenomai] Error 2
>> make[1]: *** [kernel] Error 2
>> "
>>
>> include/linux/mutex.h:
>>
>> extern void fastcall __mutex_init(struct mutex *lock, const char *name);
>>
>> The function definition is different. I tried to add "static" in 
>> syscall.c: __mutex_init(), still cannot work. Could you please help?
>>
>> Thanks,
>> -Yi
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Xenomai-help mailing list
>> Xenomai-help@domain.hid
>> https://mail.gna.org/listinfo/xenomai-help
> 
> 
> 


-- 

Philippe.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Xenomai-help] mutex_init() error when build
  2006-05-15 11:25 ` Philippe Gerum
  2006-05-15 11:43   ` Philippe Gerum
@ 2006-05-15 11:49   ` Gilles Chanteperdrix
  1 sibling, 0 replies; 4+ messages in thread
From: Gilles Chanteperdrix @ 2006-05-15 11:49 UTC (permalink / raw)
  To: Philippe Gerum; +Cc: Xenomai-help

Philippe Gerum wrote:
 > Li Yi (Adam) wrote:
 > > Hi,
 > > 
 > > I am using Xenomai-2.1.0 on Blackfin uClinux. When enabling "POSIX" 
 > > interface and build the kernel, I got error message:
 > > 
 > 
 > It's a known issue involving a naming conflict between 2.6.16 and Xeno 
 > 2.1.x. This has been fixed in 2.2, but we will likely have to backport 
 > this fix.

The fix was backported, commit 772, and is included in release v2.1.1:
http://download.gna.org/xenomai/stable/xenomai-2.1.1.tar.bz2

-- 


					    Gilles Chanteperdrix.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-05-15 11:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-15  9:50 [Xenomai-help] mutex_init() error when build Li Yi (Adam)
2006-05-15 11:25 ` Philippe Gerum
2006-05-15 11:43   ` Philippe Gerum
2006-05-15 11:49   ` Gilles Chanteperdrix

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.