Undefined symbols on rt_create_handler

José Antonio Sánchez getaceres at gmail.com
Thu Oct 7 16:15:59 CEST 2004


I'm using FIFOs to comunicate a realtime process with a user land process.
I'm using all kind of fifo calls in the realtime process and all goes
well until I add this:

rtf_create_handler(1,change_data);

Then I get that ouput when I try to compile it:
gcc -I. -I/usr/realtime/include -O2
-I/usr/src/kernel-source-2.6.7/include -Wall -Wstrict-prototypes -pipe
-o example example.c -L/usr/realtime/lib -lpthread -lm -llxrt
example.c: En la función `main':
example.c:119: aviso: implicit declaration of function `rtf_create_handler'
example.c: En la función `change_data':
example.c:212: aviso: return se crea un entero desde un puntero sin
una conversión
/tmp/ccjPtnHB.o(.text+0x443): En la función `main':
: undefined reference to `rtf_create_handler'
collect2: ld devolvió el estado de salida 1
make: *** [example] Error 1

I get an implicit declaration of rtf_create_handler, but not of
rtf_create, rtf_put, or rtf_get that are as well on the code. Why? Why
specially this function is undefined? I looked at the rtai_fifos.h and
it's there.

I remember that when I was compiling RTAI (3.1 final) I got some
strange warnings like that:

*** Warning: "rt_sem_delete"
[/home/jose/rtai_3.1/rtai-3.1/rtai-addons/serial/rtai_serial.ko]
undefined!
*** Warning: "rt_task_resume"
[/home/jose/rtai_3.1/rtai-3.1/rtai-addons/serial/rtai_serial.ko]
undefined!
*** Warning: "rt_release_irq"
[/home/jose/rtai_3.1/rtai-3.1/rtai-addons/serial/rtai_serial.ko]
undefined!
*** Warning: "rt_sem_init"
[/home/jose/rtai_3.1/rtai-3.1/rtai-addons/serial/rtai_serial.ko]
undefined!
*** Warning: "rt_request_irq"
[/home/jose/rtai_3.1/rtai-3.1/rtai-addons/serial/rtai_serial.ko]
undefined!
*** Warning: "rt_sem_signal"
[/home/jose/rtai_3.1/rtai-3.1/rtai-addons/serial/rtai_serial.ko]
undefined!
*** Warning: "set_rt_fun_ext_index"
[/home/jose/rtai_3.1/rtai-3.1/rtai-addons/serial/rtai_serial.ko]
undefined!
*** Warning: "rt_task_suspend"
[/home/jose/rtai_3.1/rtai-3.1/rtai-addons/serial/rtai_serial.ko]
undefined!
*** Warning: "rt_disable_irq"
[/home/jose/rtai_3.1/rtai-3.1/rtai-addons/serial/rtai_serial.ko]
undefined!
*** Warning: "rt_sem_wait_timed"
[/home/jose/rtai_3.1/rtai-3.1/rtai-addons/serial/rtai_serial.ko]
undefined!
*** Warning: "rt_enable_irq"
[/home/jose/rtai_3.1/rtai-3.1/rtai-addons/serial/rtai_serial.ko]
undefined!
*** Warning: "rtai_domain"
[/home/jose/rtai_3.1/rtai-3.1/rtai-addons/serial/rtai_serial.ko]
undefined!
*** Warning: "reset_rt_fun_ext_index"
[/home/jose/rtai_3.1/rtai-3.1/rtai-addons/serial/rtai_serial.ko]
undefined!

And that was on every function of every module that I compiled, but as
a warning, it compiled and I installed it.
Could that be the problem? I don't know what to do.




More information about the Rtai mailing list