注册 登录
电子工程世界-论坛 返回首页 EEWORLD首页 频道 EE大学堂 下载中心 Datasheet 专题
ren364940161的个人空间 https://home.eeworld.com.cn/space-uid-282794.html [收藏] [复制] [分享] [RSS]
日志

libnl-3.2.21 compile error

已有 2792 次阅读2013-4-4 14:36 |个人分类:linux|

evn:
      ubuntu 10.04
      arm-none-linux-gnueabi-gcc
      gcc version 4.6.1 (Sourcery CodeBench Lite 2011.09-70)

part of the log:
In file included from route/link/can.c:32:
../include/netlink/route/link/can.h:33: warning: 'struct can_berr_counter' declared inside parameter list
../include/netlink/route/link/can.h:33: warning: its scope is only this definition or declaration, which is probably not what you want
route/link/can.c:54: error: field 'ci_berr_counter' has incomplete type
route/link/can.c:69: error: 'IFLA_CAN_BERR_COUNTER' undeclared here (not in a function)
route/link/can.c:69: error: array index in initializer not of integer type
route/link/can.c:69: error: (near initialization for 'can_policy')
route/link/can.c:69: error: invalid application of 'sizeof' to incomplete type 'struct can_berr_counter'  
route/link/can.c:450: error: conflicting types for 'rtnl_link_can_berr'
../include/netlink/route/link/can.h:33: note: previous declaration of 'rtnl_link_can_berr' was here
route/link/can.c: In function 'rtnl_link_can_berr':
route/link/can.c:459: error: dereferencing pointer to incomplete type
route/link/can.c: At top level:
route/link/can.c:736: error: 'CAN_CTRLMODE_ONE_SHOT' undeclared here (not in a function)
route/link/can.c:737: error: 'CAN_CTRLMODE_BERR_REPORTING' undeclared here (not in a function)

solution:
       cp (PATH of the compile)//include/linux/can/netlink.h   libnl/include/linux/can/netlink.h

   
评论 (0 个评论)

facelist doodle 涂鸦板

您需要登录后才可以评论 登录 | 注册

热门文章