Perrine Martignoni wrote:
> All compile fine.
> But now I have a problem when I launch my application on my board :
> 
> can't resolve symbol '__real_sem_init'
> I don't see the reason.
> 

Same program as you posted earlier?

I compiled it here with

#> arm-linux-gcc `.../xeno-config --posix-cflags --posix-ldflags` \
-o posix-demo posix-demo.c

The generated binary shows no trace of __real_whatever:

#> objdump -R posix-demo

posix-demo:     file format elf32-littlearm

DYNAMIC RELOCATION RECORDS
OFFSET   TYPE              VALUE
00011274 R_ARM_COPY        stderr
000111fc R_ARM_JUMP_SLOT   __wrap_pthread_mutex_unlock
00011200 R_ARM_JUMP_SLOT   printf
00011204 R_ARM_JUMP_SLOT   sigemptyset
00011208 R_ARM_JUMP_SLOT   strerror
0001120c R_ARM_JUMP_SLOT   pthread_attr_init
00011210 R_ARM_JUMP_SLOT   pthread_exit
00011214 R_ARM_JUMP_SLOT   puts
00011218 R_ARM_JUMP_SLOT   sleep
0001121c R_ARM_JUMP_SLOT   sigaddset
00011220 R_ARM_JUMP_SLOT   abort
00011224 R_ARM_JUMP_SLOT   __wrap_pthread_setschedparam
00011228 R_ARM_JUMP_SLOT   __wrap_pthread_mutex_lock
0001122c R_ARM_JUMP_SLOT   fprintf
00011230 R_ARM_JUMP_SLOT   pthread_attr_setinheritsched
00011234 R_ARM_JUMP_SLOT   signal
00011238 R_ARM_JUMP_SLOT   pthread_attr_setstacksize
0001123c R_ARM_JUMP_SLOT   pthread_sigmask
00011240 R_ARM_JUMP_SLOT   __wrap_pthread_mutex_init
00011244 R_ARM_JUMP_SLOT   __wrap_pthread_create
00011248 R_ARM_JUMP_SLOT   pthread_self
0001124c R_ARM_JUMP_SLOT   pthread_attr_setschedpolicy
00011250 R_ARM_JUMP_SLOT   __uClibc_start_main
00011254 R_ARM_JUMP_SLOT   pthread_attr_setschedparam
00011258 R_ARM_JUMP_SLOT   pthread_attr_setdetachstate
0001125c R_ARM_JUMP_SLOT   pthread_join
00011260 R_ARM_JUMP_SLOT   mlockall
00011264 R_ARM_JUMP_SLOT   __wrap_pthread_mutex_destroy

Can you confirm the issue with this procedure? Also make sure that your
rebuild and re-installed the Xenomai user space part cleanly ("make
clean; make install").

Jan

Attachment: signature.asc
Description: OpenPGP digital signature

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

Reply via email to