Hi,

>It seems really odd that the rtapi module is loaded, but all the rtapi 
>symbols are undefined.
I just export these symbols in file src/rtapi/rtl_rtapi.c  
and seems that emc2 can work on my rtlinux-3.2-rc1 based box more or less.
here is my nano patch of emc2.1.4,

Thanks John Kasunich!

diff -uBr src/rtapi/rtl_rtapi.c src-export/rtapi/rtl_rtapi.c
--- src/rtapi/rtl_rtapi.c       2007-01-13 23:11:17.000000000 +0800
+++ src-export/rtapi/rtl_rtapi.c        2007-04-23 15:39:02.000000000 +0800
@@ -502,7 +502,7 @@
     return rtapi_msg_handler;
 }

-rtapi_msg_handler_t rtapi_set_msg_handler(rtapi_msg_handler_t handler) {
+void rtapi_set_msg_handler(rtapi_msg_handler_t handler) {
     if(handler == NULL) rtapi_msg_handler = default_rtapi_msg_handler;
     else rtapi_msg_handler = handler;
 }
@@ -1739,3 +1739,29 @@
 {
     return inb(port);
 }
+
+/*export necessary function symbol*/
+EXPORT_SYMBOL(rtapi_init);
+EXPORT_SYMBOL(rtapi_exit);
+EXPORT_SYMBOL(rtapi_task_new);
+EXPORT_SYMBOL(rtapi_prio_next_lower);
+EXPORT_SYMBOL(rtapi_prio_highest);
+EXPORT_SYMBOL(rtapi_vsnprintf);
+EXPORT_SYMBOL(rtapi_wait);
+EXPORT_SYMBOL(rtapi_task_pause);
+EXPORT_SYMBOL(rtapi_clock_set_period);
+EXPORT_SYMBOL(rtapi_print_msg);
+EXPORT_SYMBOL(rtapi_shmem_getptr);
+EXPORT_SYMBOL(rtapi_get_clocks);
+EXPORT_SYMBOL(rtapi_shmem_delete);
+EXPORT_SYMBOL(rtapi_task_delete);
+EXPORT_SYMBOL(rtapi_shmem_new);
+EXPORT_SYMBOL(rtapi_snprintf);
+EXPORT_SYMBOL(rtapi_task_start);
+
+EXPORT_SYMBOL(rtapi_set_msg_handler);
+EXPORT_SYMBOL(rtapi_get_msg_handler);
+EXPORT_SYMBOL(rtapi_set_msg_level);
+EXPORT_SYMBOL(rtapi_get_msg_level);
+EXPORT_SYMBOL(rtapi_get_time);
+EXPORT_SYMBOL(rtapi_print);

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to