ERROR

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
518899
帖子: 35
注册时间: 2012-07-17 21:44

ERROR

#1

帖子 518899 » 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
头像
YeLee
论坛版主
帖子: 26406
注册时间: 2008-08-13 8:48
系统: Fundu i64
来自: 东海硇州,一双管钥。
联系:

Re: ERROR

#2

帖子 YeLee » 2012-09-07 19:30

什么意思?你想说明什么? :em01 :em01 :em01
◎当我站在道德的高度上俯视别人的时候,发现自己是多么渺小。
♥执着但不偏激,反对而不排斥,坚决捍卫矛盾体的存在方式。
★★★天气预报★★★
fcitx-yatable一个可以使用的码表输入法
[教程]几个实例攻克软件编译难关
Gentoo Development Guide
字体相关
tusooa
帖子: 6548
注册时间: 2008-10-31 22:12
系统: 践兔
联系:

Re: ERROR

#3

帖子 tusooa » 2012-09-07 21:27

正常情况下,没必要手动编译内核模块。

代码: 全选

] ls -ld //
回复