ERROR
发表于 : 2012-09-07 19:13
administrator@ubuntu:~$ comp --install ethercat.comp
make -C /usr/src/linux-headers-2.6.32-122-rtai SUBDIRS=`pwd` CC=gcc V=0 -o /Module.symvers modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.32-122-rtai'
CC [M] /tmp/tmpHNy01z/ethercat.o
ethercat.comp:37: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘master_status’
ethercat.comp:44:30: error: ethercat_cstruct.c: No such file or directory
ethercat.comp:49: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘domain1_pdo_regs’
ethercat.comp: In function ‘extra_setup’:
ethercat.comp:71: error: ‘ec_slave_t’ undeclared (first use in this function)
ethercat.comp:71: error: (Each undeclared identifier is reported only once
ethercat.comp:71: error: for each function it appears in.)
ethercat.comp:71: error: ‘slave’ undeclared (first use in this function)
ethercat.comp:82: warning: passing argument 2 of ‘ecrt_master_callbacks’ from incompatible pointer type
/opt/etherlab/include/ecrt.h:529: note: expected ‘void (*)(void *)’ but argument is of type ‘int (*)(void *)’
ethercat.comp:95: error: implicit declaration of function ‘ecrt_domain_register_pdo_list’
ethercat.comp:95: error: ‘domain1_pdo_regs’ undeclared (first use in this function)
ethercat.comp: In function ‘update’:
ethercat.comp:163: error: implicit declaration of function ‘ecrt_master_get_status’
ethercat.comp:163: error: ‘master_status’ undeclared (first use in this function)
ethercat.comp:166: error: ‘old_status’ undeclared (first use in this function)
make[2]: *** [/tmp/tmpHNy01z/ethercat.o] Error 1
make[1]: *** [_module_/tmp/tmpHNy01z] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-122-rtai'
make: *** [modules] Error 2
make -C /usr/src/linux-headers-2.6.32-122-rtai SUBDIRS=`pwd` CC=gcc V=0 -o /Module.symvers modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.32-122-rtai'
CC [M] /tmp/tmpHNy01z/ethercat.o
ethercat.comp:37: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘master_status’
ethercat.comp:44:30: error: ethercat_cstruct.c: No such file or directory
ethercat.comp:49: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘domain1_pdo_regs’
ethercat.comp: In function ‘extra_setup’:
ethercat.comp:71: error: ‘ec_slave_t’ undeclared (first use in this function)
ethercat.comp:71: error: (Each undeclared identifier is reported only once
ethercat.comp:71: error: for each function it appears in.)
ethercat.comp:71: error: ‘slave’ undeclared (first use in this function)
ethercat.comp:82: warning: passing argument 2 of ‘ecrt_master_callbacks’ from incompatible pointer type
/opt/etherlab/include/ecrt.h:529: note: expected ‘void (*)(void *)’ but argument is of type ‘int (*)(void *)’
ethercat.comp:95: error: implicit declaration of function ‘ecrt_domain_register_pdo_list’
ethercat.comp:95: error: ‘domain1_pdo_regs’ undeclared (first use in this function)
ethercat.comp: In function ‘update’:
ethercat.comp:163: error: implicit declaration of function ‘ecrt_master_get_status’
ethercat.comp:163: error: ‘master_status’ undeclared (first use in this function)
ethercat.comp:166: error: ‘old_status’ undeclared (first use in this function)
make[2]: *** [/tmp/tmpHNy01z/ethercat.o] Error 1
make[1]: *** [_module_/tmp/tmpHNy01z] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-122-rtai'
make: *** [modules] Error 2