Skip to contentSkip to conversation

2.1-rc3 on ppcEmbedded...mpc5200

Xenomai-help teo 2 participants 2 messages Feb 21, 2006 – Feb 22, 2006

lore
Share & tools
lore

teo

author
#0 lore raw

Hello,
I'm trying Xenomai latest release on kernel 2.4.25 of ppc_devel for MPC5200. After patch, I have encountered this error in kernel linking:

/kernel/xenomai/skins/posix/xeno_posix.o(.text+0xed9c): In function close': /opt/ELDK/ppc_6xx/usr/src/sirLinuxXEN/linuxppc_2.4.25-xenomai/kernel/xenomai/skins/posix/shm.c:262: multiple definition of close'
arch/ppc/kernel/kernel.o(.text+0x2c30):arch/ppc/kernel/entry.S: first defined here
make: *** [vmlinux] Error 1/

In file misc.S in arch/ppc/kernel there is ...SYSCALL(close)...
and it's define close global symbol as in posix/shm.c

Is it possible to chage name of close in shm.c ?

thanx in advance...
Matteo Facchinetti

#1 lore raw
Quoted 13 lines · teo

Hello,
I'm trying Xenomai latest release on kernel 2.4.25 of ppc_devel for MPC5200.
After patch, I have encountered this error in kernel linking:

/kernel/xenomai/skins/posix/xeno_posix.o(.text+0xed9c): In function
`close':
/opt/ELDK/ppc_6xx/usr/src/sirLinuxXEN/linuxppc_2.4.25-xenomai/kernel/xenomai/skins/posix/shm.c:262:
multiple definition of `close' arch/ppc/kernel/kernel.o(.text+0x2c30):arch/ppc/kernel/entry.S: first
defined here
make: *** [vmlinux] Error 1/

Quoted 5 lines

In file misc.S in arch/ppc/kernel there is ...SYSCALL(close)...
and it's define close global symbol as in posix/shm.c

Is it possible to chage name of close in shm.c ?

Thanks for reporting, I am afraid we will have to rename "close" using a macro, the way we did it for sem_init.

Signature · 1 line
					    Gilles Chanteperdrix.