Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /home/andypugh/linuxcnc-dev/src/hal/drivers/mesa-hostmot2/setsserial.o: In function `cleanup_module':
- (.text+0x24): multiple definition of `cleanup_module'
- /home/andypugh/linuxcnc-dev/src/hal/drivers/mesa-hostmot2/hostmot2.o:(.text+0x2b0): first defined here
- /home/andypugh/linuxcnc-dev/src/hal/drivers/mesa-hostmot2/setsserial.o: In function `init_module':
- (.text+0x0): multiple definition of `init_module'
- /home/andypugh/linuxcnc-dev/src/hal/drivers/mesa-hostmot2/hostmot2.o:(.text+0x2d3): first defined here
- <this is the code, there isn't a lot of it yet>
- #include <linux/slab.h>
- #include <linux/ctype.h>
- #include "rtapi.h"
- #include "rtapi_app.h"
- #include "rtapi_string.h"
- #include "rtapi_math.h"
- #include "hal.h"
- #include "hostmot2.h"
- static int comp_id;
- char *cmd[30];
- int cnt;
- RTAPI_MP_ARRAY_STRING(cmd, cnt, "smart-serial remote flashing commands" );
- MODULE_INFO(linuxcnc, "component:setsserial:");
- MODULE_INFO(linuxcnc, "author:andy pugh");
- MODULE_INFO(linuxcnc, "license:GPL");
- MODULE_LICENSE("GPL");
- void rtapi_app_exit(void) {
- hal_exit(comp_id);
- }
- int rtapi_app_main(void) {
- int r = 0;
- comp_id = hal_init("setsserial");
- if(comp_id < 0) return comp_id;
- hal_exit(comp_id);
- return r;
- }
Advertisement
Add Comment
Please, Sign In to add comment