[Rtai] newbie doubts

Venkatesh Rao venkateshnrao at gmail.com
Thu Feb 19 08:55:08 CET 2009


i am really new to linux and thus RTAI

i am tryin to run the following program:

/* led1.c, an LXRT LED blinker */

#include<pthread.h>
#include<rtai.h>
#include<rtai_lxrt.h>
#include<sys/mman.h>
#include<sys/io.h>

// delay in nanoseconds
#define TICKS 500000000

main()
{
        RT_TASK *task;
        int priority = 0, i;
        int stack_size = 4096;
        int msg_size = 0; // use default

        // get enough privilege to
        // access the I/O ports.

        iopl(3);

        task = rt_task_init_sched(nam2num("main"),priority, stack_size,
msg_size);
        if(task == 0) exit(1);
        rt_set_oneshot_mode();
        start_rt_timer(0);
        mlockall(MCL_CURRENT|MCL_FUTURE);
        rt_make_hard_real_time();

        for(i = 0; i < 10; i++) {
                outb(0xff, 0x378);
        rt_printk("1");
                rt_sleep(nano2count(TICKS));
                outb(0x0, 0x378);
        rt_printk("0");
                rt_sleep(nano2count(TICKS));
        }
        // back to non-rt land!
        rt_make_soft_real_time();
        stop_rt_timer();
        rt_task_delete(task);
        return 0;
}


i compile it as folllows:

gcc -I /usr/realtime/include -L /usr/realtime/bin/ -o a4 a4.c -lpthread
-llxrt


errors:

[root at localhost 1223]# gcc -I /usr/realtime/include -L /usr/realtime/bin/ -o
a4 a4.c -lpthread -llxrt
In file included from a4.c:5:
/usr/realtime/include/rtai_lxrt.h: In function 'rt_get_adr':
/usr/realtime/include/rtai_lxrt.h:598: warning: 'rtai_lxrt' is static but
used in inline function 'rt_get_adr' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_get_name':
/usr/realtime/include/rtai_lxrt.h:612: warning: 'rtai_lxrt' is static but
used in inline function 'rt_get_name' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_task_init_schmod':
/usr/realtime/include/rtai_lxrt.h:631: warning: 'rtai_lxrt' is static but
used in inline function 'rt_task_init_schmod' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_thread_create':
/usr/realtime/include/rtai_lxrt.h:657: warning: 'rtai_lxrt' is static but
used in inline function 'rt_thread_create' which is not static
/usr/realtime/include/rtai_lxrt.h:658: warning: 'rtai_lxrt' is static but
used in inline function 'rt_thread_create' which is not static
/usr/realtime/include/rtai_lxrt.h:664: warning: 'rtai_lxrt' is static but
used in inline function 'rt_thread_create' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_set_linux_syscall_mode':
/usr/realtime/include/rtai_lxrt.h:720: warning: 'rtai_lxrt' is static but
used in inline function 'rt_set_linux_syscall_mode' which is not static
/usr/realtime/include/rtai_lxrt.h: In function
'rt_sync_async_linux_syscall_server_create':
/usr/realtime/include/rtai_lxrt.h:725: warning: 'rtai_lxrt' is static but
used in inline function 'rt_sync_async_linux_syscall_server_create' which is
not static
/usr/realtime/include/rtai_lxrt.h:731: warning: 'linux_syscall_server_fun'
is static but used in inline function
'rt_sync_async_linux_syscall_server_create' which is not static
/usr/realtime/include/rtai_lxrt.h:732: warning: 'rtai_lxrt' is static but
used in inline function 'rt_sync_async_linux_syscall_server_create' which is
not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_set_sched_policy':
/usr/realtime/include/rtai_lxrt.h:798: warning: 'rtai_lxrt' is static but
used in inline function 'rt_set_sched_policy' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_change_prio':
/usr/realtime/include/rtai_lxrt.h:804: warning: 'rtai_lxrt' is static but
used in inline function 'rt_change_prio' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_make_soft_real_time':
/usr/realtime/include/rtai_lxrt.h:822: warning: 'rtai_lxrt' is static but
used in inline function 'rt_make_soft_real_time' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_task_delete':
/usr/realtime/include/rtai_lxrt.h:829: warning: 'rtai_lxrt' is static but
used in inline function 'rt_task_delete' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_task_yield':
/usr/realtime/include/rtai_lxrt.h:837: warning: 'rtai_lxrt' is static but
used in inline function 'rt_task_yield' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_task_suspend':
/usr/realtime/include/rtai_lxrt.h:843: warning: 'rtai_lxrt' is static but
used in inline function 'rt_task_suspend' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_task_suspend_if':
/usr/realtime/include/rtai_lxrt.h:849: warning: 'rtai_lxrt' is static but
used in inline function 'rt_task_suspend_if' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_task_suspend_until':
/usr/realtime/include/rtai_lxrt.h:855: warning: 'rtai_lxrt' is static but
used in inline function 'rt_task_suspend_until' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_task_suspend_timed':
/usr/realtime/include/rtai_lxrt.h:861: warning: 'rtai_lxrt' is static but
used in inline function 'rt_task_suspend_timed' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_task_resume':
/usr/realtime/include/rtai_lxrt.h:867: warning: 'rtai_lxrt' is static but
used in inline function 'rt_task_resume' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_sched_lock':
/usr/realtime/include/rtai_lxrt.h:873: warning: 'rtai_lxrt' is static but
used in inline function 'rt_sched_lock' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_sched_unlock':
/usr/realtime/include/rtai_lxrt.h:879: warning: 'rtai_lxrt' is static but
used in inline function 'rt_sched_unlock' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_pend_linux_irq':
/usr/realtime/include/rtai_lxrt.h:885: warning: 'rtai_lxrt' is static but
used in inline function 'rt_pend_linux_irq' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_irq_wait':
/usr/realtime/include/rtai_lxrt.h:891: warning: 'rtai_lxrt' is static but
used in inline function 'rt_irq_wait' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_irq_wait_if':
/usr/realtime/include/rtai_lxrt.h:897: warning: 'rtai_lxrt' is static but
used in inline function 'rt_irq_wait_if' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_irq_wait_until':
/usr/realtime/include/rtai_lxrt.h:903: warning: 'rtai_lxrt' is static but
used in inline function 'rt_irq_wait_until' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_irq_wait_timed':
/usr/realtime/include/rtai_lxrt.h:909: warning: 'rtai_lxrt' is static but
used in inline function 'rt_irq_wait_timed' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_irq_signal':
/usr/realtime/include/rtai_lxrt.h:915: warning: 'rtai_lxrt' is static but
used in inline function 'rt_irq_signal' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_request_irq_task':
/usr/realtime/include/rtai_lxrt.h:921: warning: 'rtai_lxrt' is static but
used in inline function 'rt_request_irq_task' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_release_irq_task':
/usr/realtime/include/rtai_lxrt.h:928: warning: 'rtai_lxrt' is static but
used in inline function 'rt_release_irq_task' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_task_make_periodic':
/usr/realtime/include/rtai_lxrt.h:934: warning: 'rtai_lxrt' is static but
used in inline function 'rt_task_make_periodic' which is not static
/usr/realtime/include/rtai_lxrt.h: In function
'rt_task_make_periodic_relative_ns':
/usr/realtime/include/rtai_lxrt.h:940: warning: 'rtai_lxrt' is static but
used in inline function 'rt_task_make_periodic_relative_ns' which is not
static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_task_wait_period':
/usr/realtime/include/rtai_lxrt.h:946: warning: 'rtai_lxrt' is static but
used in inline function 'rt_task_wait_period' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_sleep':
/usr/realtime/include/rtai_lxrt.h:952: warning: 'rtai_lxrt' is static but
used in inline function 'rt_sleep' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_sleep_until':
/usr/realtime/include/rtai_lxrt.h:958: warning: 'rtai_lxrt' is static but
used in inline function 'rt_sleep_until' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_is_hard_timer_running':
/usr/realtime/include/rtai_lxrt.h:964: warning: 'rtai_lxrt' is static but
used in inline function 'rt_is_hard_timer_running' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'start_rt_timer':
/usr/realtime/include/rtai_lxrt.h:972: warning: 'rtai_lxrt' is static but
used in inline function 'start_rt_timer' which is not static
/usr/realtime/include/rtai_lxrt.h:973: warning: 'rtai_lxrt' is static but
used in inline function 'start_rt_timer' which is not static
/usr/realtime/include/rtai_lxrt.h:976: warning: 'rtai_lxrt' is static but
used in inline function 'start_rt_timer' which is not static
/usr/realtime/include/rtai_lxrt.h:978: warning: 'rtai_lxrt' is static but
used in inline function 'start_rt_timer' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'stop_rt_timer':
/usr/realtime/include/rtai_lxrt.h:986: warning: 'rtai_lxrt' is static but
used in inline function 'stop_rt_timer' which is not static
/usr/realtime/include/rtai_lxrt.h:987: warning: 'rtai_lxrt' is static but
used in inline function 'stop_rt_timer' which is not static
/usr/realtime/include/rtai_lxrt.h:989: warning: 'rtai_lxrt' is static but
used in inline function 'stop_rt_timer' which is not static
/usr/realtime/include/rtai_lxrt.h:991: warning: 'rtai_lxrt' is static but
used in inline function 'stop_rt_timer' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_request_rtc':
/usr/realtime/include/rtai_lxrt.h:998: warning: 'rtai_lxrt' is static but
used in inline function 'rt_request_rtc' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_release_rtc':
/usr/realtime/include/rtai_lxrt.h:1004: warning: 'rtai_lxrt' is static but
used in inline function 'rt_release_rtc' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_get_time':
/usr/realtime/include/rtai_lxrt.h:1010: warning: 'rtai_lxrt' is static but
used in inline function 'rt_get_time' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_get_real_time':
/usr/realtime/include/rtai_lxrt.h:1016: warning: 'rtai_lxrt' is static but
used in inline function 'rt_get_real_time' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_get_real_time_ns':
/usr/realtime/include/rtai_lxrt.h:1022: warning: 'rtai_lxrt' is static but
used in inline function 'rt_get_real_time_ns' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'count2nano':
/usr/realtime/include/rtai_lxrt.h:1028: warning: 'rtai_lxrt' is static but
used in inline function 'count2nano' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'nano2count':
/usr/realtime/include/rtai_lxrt.h:1034: warning: 'rtai_lxrt' is static but
used in inline function 'nano2count' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_busy_sleep':
/usr/realtime/include/rtai_lxrt.h:1040: warning: 'rtai_lxrt' is static but
used in inline function 'rt_busy_sleep' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_set_periodic_mode':
/usr/realtime/include/rtai_lxrt.h:1046: warning: 'rtai_lxrt' is static but
used in inline function 'rt_set_periodic_mode' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_set_oneshot_mode':
/usr/realtime/include/rtai_lxrt.h:1052: warning: 'rtai_lxrt' is static but
used in inline function 'rt_set_oneshot_mode' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_task_signal_handler':
/usr/realtime/include/rtai_lxrt.h:1058: warning: 'rtai_lxrt' is static but
used in inline function 'rt_task_signal_handler' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_task_use_fpu':
/usr/realtime/include/rtai_lxrt.h:1064: warning: 'rtai_lxrt' is static but
used in inline function 'rt_task_use_fpu' which is not static
/usr/realtime/include/rtai_lxrt.h:1065: warning: 'rtai_lxrt' is static but
used in inline function 'rt_task_use_fpu' which is not static
/usr/realtime/include/rtai_lxrt.h:1070: warning: 'rtai_lxrt' is static but
used in inline function 'rt_task_use_fpu' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_buddy_task_use_fpu':
/usr/realtime/include/rtai_lxrt.h:1078: warning: 'rtai_lxrt' is static but
used in inline function 'rt_buddy_task_use_fpu' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_get_priorities':
/usr/realtime/include/rtai_lxrt.h:1091: warning: 'rtai_lxrt' is static but
used in inline function 'rt_get_priorities' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_hard_timer_tick':
/usr/realtime/include/rtai_lxrt.h:1097: warning: 'rtai_lxrt' is static but
used in inline function 'rt_hard_timer_tick' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_get_time_ns':
/usr/realtime/include/rtai_lxrt.h:1103: warning: 'rtai_lxrt' is static but
used in inline function 'rt_get_time_ns' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_get_cpu_time_ns':
/usr/realtime/include/rtai_lxrt.h:1109: warning: 'rtai_lxrt' is static but
used in inline function 'rt_get_cpu_time_ns' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_set_runnable_on_cpus':
/usr/realtime/include/rtai_lxrt.h:1121: warning: 'rtai_lxrt' is static but
used in inline function 'rt_set_runnable_on_cpus' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_set_runnable_on_cpuid':
/usr/realtime/include/rtai_lxrt.h:1127: warning: 'rtai_lxrt' is static but
used in inline function 'rt_set_runnable_on_cpuid' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_get_timer_cpu':
/usr/realtime/include/rtai_lxrt.h:1133: warning: 'rtai_lxrt' is static but
used in inline function 'rt_get_timer_cpu' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'start_rt_apic_timers':
/usr/realtime/include/rtai_lxrt.h:1139: warning: 'rtai_lxrt' is static but
used in inline function 'start_rt_apic_timers' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_hard_timer_tick_cpuid':
/usr/realtime/include/rtai_lxrt.h:1145: warning: 'rtai_lxrt' is static but
used in inline function 'rt_hard_timer_tick_cpuid' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'count2nano_cpuid':
/usr/realtime/include/rtai_lxrt.h:1151: warning: 'rtai_lxrt' is static but
used in inline function 'count2nano_cpuid' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'nano2count_cpuid':
/usr/realtime/include/rtai_lxrt.h:1157: warning: 'rtai_lxrt' is static but
used in inline function 'nano2count_cpuid' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_get_time_cpuid':
/usr/realtime/include/rtai_lxrt.h:1163: warning: 'rtai_lxrt' is static but
used in inline function 'rt_get_time_cpuid' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_get_time_ns_cpuid':
/usr/realtime/include/rtai_lxrt.h:1169: warning: 'rtai_lxrt' is static but
used in inline function 'rt_get_time_ns_cpuid' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_boom':
/usr/realtime/include/rtai_lxrt.h:1175: warning: 'rtai_lxrt' is static but
used in inline function 'rt_boom' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_mmgr_stats':
/usr/realtime/include/rtai_lxrt.h:1181: warning: 'rtai_lxrt' is static but
used in inline function 'rt_mmgr_stats' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_stomp':
/usr/realtime/include/rtai_lxrt.h:1187: warning: 'rtai_lxrt' is static but
used in inline function 'rt_stomp' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_get_linux_signal':
/usr/realtime/include/rtai_lxrt.h:1193: warning: 'rtai_lxrt' is static but
used in inline function 'rt_get_linux_signal' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_get_errno':
/usr/realtime/include/rtai_lxrt.h:1199: warning: 'rtai_lxrt' is static but
used in inline function 'rt_get_errno' which is not static
/usr/realtime/include/rtai_lxrt.h: In function
'rt_set_linux_signal_handler':
/usr/realtime/include/rtai_lxrt.h:1205: warning: 'rtai_lxrt' is static but
used in inline function 'rt_set_linux_signal_handler' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rtai_print_to_screen':
/usr/realtime/include/rtai_lxrt.h:1218: warning: 'rtai_lxrt' is static but
used in inline function 'rtai_print_to_screen' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_printk':
/usr/realtime/include/rtai_lxrt.h:1231: warning: 'rtai_lxrt' is static but
used in inline function 'rt_printk' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_usp_signal_handler':
/usr/realtime/include/rtai_lxrt.h:1238: warning: 'rtai_lxrt' is static but
used in inline function 'rt_usp_signal_handler' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_get_usp_flags':
/usr/realtime/include/rtai_lxrt.h:1244: warning: 'rtai_lxrt' is static but
used in inline function 'rt_get_usp_flags' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_get_usp_flags_mask':
/usr/realtime/include/rtai_lxrt.h:1250: warning: 'rtai_lxrt' is static but
used in inline function 'rt_get_usp_flags_mask' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_set_usp_flags':
/usr/realtime/include/rtai_lxrt.h:1256: warning: 'rtai_lxrt' is static but
used in inline function 'rt_set_usp_flags' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_set_usp_flags_mask':
/usr/realtime/include/rtai_lxrt.h:1262: warning: 'rtai_lxrt' is static but
used in inline function 'rt_set_usp_flags_mask' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_force_task_soft':
/usr/realtime/include/rtai_lxrt.h:1268: warning: 'rtai_lxrt' is static but
used in inline function 'rt_force_task_soft' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_agent':
/usr/realtime/include/rtai_lxrt.h:1274: warning: 'rtai_lxrt' is static but
used in inline function 'rt_agent' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_gettid':
/usr/realtime/include/rtai_lxrt.h:1282: warning: 'rtai_lxrt' is static but
used in inline function 'rt_gettid' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_make_hard_real_time':
/usr/realtime/include/rtai_lxrt.h:1310: warning: 'rtai_lxrt' is static but
used in inline function 'rt_make_hard_real_time' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_allow_nonroot_hrt':
/usr/realtime/include/rtai_lxrt.h:1324: warning: 'rtai_lxrt' is static but
used in inline function 'rt_allow_nonroot_hrt' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_is_hard_real_time':
/usr/realtime/include/rtai_lxrt.h:1330: warning: 'rtai_lxrt' is static but
used in inline function 'rt_is_hard_real_time' which is not static
/usr/realtime/include/rtai_lxrt.h: In function
'rt_task_set_resume_end_times':
/usr/realtime/include/rtai_lxrt.h:1338: warning: 'rtai_lxrt' is static but
used in inline function 'rt_task_set_resume_end_times' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_set_resume_time':
/usr/realtime/include/rtai_lxrt.h:1344: warning: 'rtai_lxrt' is static but
used in inline function 'rt_set_resume_time' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_set_period':
/usr/realtime/include/rtai_lxrt.h:1350: warning: 'rtai_lxrt' is static but
used in inline function 'rt_set_period' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_spv_RMS':
/usr/realtime/include/rtai_lxrt.h:1356: warning: 'rtai_lxrt' is static but
used in inline function 'rt_spv_RMS' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_task_masked_unblock':
/usr/realtime/include/rtai_lxrt.h:1362: warning: 'rtai_lxrt' is static but
used in inline function 'rt_task_masked_unblock' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_get_exectime':
/usr/realtime/include/rtai_lxrt.h:1371: warning: 'rtai_lxrt' is static but
used in inline function 'rt_get_exectime' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'rt_gettimeorig':
/usr/realtime/include/rtai_lxrt.h:1379: warning: 'rtai_lxrt' is static but
used in inline function 'rt_gettimeorig' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'ftask_init':
/usr/realtime/include/rtai_lxrt.h:1386: warning: 'rtai_lxrt' is static but
used in inline function 'ftask_init' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'start_ftimer':
/usr/realtime/include/rtai_lxrt.h:1393: warning: 'rtai_lxrt' is static but
used in inline function 'start_ftimer' which is not static
/usr/realtime/include/rtai_lxrt.h:1395: warning: 'rtai_lxrt' is static but
used in inline function 'start_ftimer' which is not static
/usr/realtime/include/rtai_lxrt.h:1397: warning: 'rtai_lxrt' is static but
used in inline function 'start_ftimer' which is not static
/usr/realtime/include/rtai_lxrt.h:1398: warning: 'rtai_lxrt' is static but
used in inline function 'start_ftimer' which is not static
/usr/realtime/include/rtai_lxrt.h: In function 'stop_ftimer':
/usr/realtime/include/rtai_lxrt.h:1404: warning: 'rtai_lxrt' is static but
used in inline function 'stop_ftimer' which is not static
/usr/realtime/include/rtai_lxrt.h:1405: warning: 'rtai_lxrt' is static but
used in inline function 'stop_ftimer' which is not static
a4.c: In function 'main':
a4.c:24: warning: assignment makes pointer from integer without a cast
/usr/bin/ld: cannot find -llxrt
collect2: ld returned 1 exit status


i tried browsing the CVS repository but i find it difficult to understand.

i need to browse simpler programs i feel....a simple program with a thread
that print "something" and "another thing" with some delay ....  kindly
guide me.....i am ready to put in efforts just dont see a direction

one more error i keep getting is

*error while loading shared libraries: liblxrt.so.1: cannot open
**shared object file: No such file or directory*

i need to add some PATH some linker error to resolve but cant understand
where to do what

kindly guide me
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.rtai.org/pipermail/rtai/attachments/20090219/2dd12017/attachment-0001.htm 


More information about the Rtai mailing list