Can't use 'defined(@array)' (Maybe you should just omit the defined()?) at kernel/timeconst.pl
来源:互联网 发布:淘宝办泰国签证靠谱吗 编辑:程序博客网 时间:2024/06/16 11:42
http://blog.csdn.NET/q1302182594/article/details/52579187
0 开发环境
Ubuntu16.04.1(64bit)
Linux-2.6.39.4
1 错误描述
使用ubuntu14.04(64bit)编译linux2.6.39.4并没有出现什么错误,但是使用ubuntu16.04.1(64bit)编译Linux-2.6.39.4时,却提示如题错误。
2 解决方法
见参考资料[1]。
参考资料
[1]编译kernel perl版本bug
Can't use 'defined(@array)' (Maybe you should just omit the defined()?) at kernel/timeconst.pl line 373.
其实,提示的错误信息已经明确告诉你了,你应该省略defined()
.
这里,我们打开 kernel/timeconst.pl
@val = @{$canned_values{$hz}};
if (defined(@val)) {
@val = compute_values($hz);
}
output($hz, @val);
将if (defined(@val))
改为if (@val)
,再次编译就可以通过了。
查了一下更新,发现其中有一项是perl版本升级到了 v5.22.1
,然后查了perl官方文档,发现官网因为一个bug,该版本将defined(@array)
去掉了。可以直接使用数组判断非空。
阅读全文
0 0
- Can't use 'defined(@array)' (Maybe you should just omit the defined()?) at kernel/timeconst.pl
- (Maybe you should just omit the defined()?) at kernel/timeconst.pl line
- Can't use 'defined(@array)' (Maybe you should just omit the defined()?)
- Can't use 'defined(@array)' (Maybe you should just omit the defined()?)(编译内核时候的错误)
- kernel编译报Can't use 'defined(@array)'问题
- Ubuntu16.04编译make内核出错Can't use 'defined(@array)'
- 在Ubuntu 下编译Liunx内核出现 Can't use 'defined(@array)' 错误的解决办法
- 在Ubuntu 64位环境下编译Liunx内核出现 Can't use 'defined(@array)' 错误的解决办法
- 在Ubuntu 64位环境下编译Liunx内核出现 Can't use 'defined(@array)' 错误的解决办法
- 在Ubuntu 64位环境下编译Liunx内核出现 Can't use 'defined(@array)' 错误的解决办法
- 在Ubuntu 64位环境下编译Liunx内核出现 Can't use 'defined(@array)' 错误的解决办法
- 在Ubuntu 64位环境下编译Liunx内核出现 Can't use 'defined(@array)' 错误的解决办法
- kernel/timeconst.pl line 373.
- can't get git rev, you should add git to system path or just input test value, such as 'testTinkerId
- “App” is damaged and can’t be opened. You should move it to the Trash.
- 170.A constraint in a table is defined with the INITIALLY IMMEDIATE clause. You executed the ALTER T
- Can't dispatch DDM chunk 52454151: no handler defined
- creat the publisher and use self-defined message
- 负载均衡简单解释
- 百度的面试题
- Filter共性问题
- Java多线程中的volatile关键字
- 数据结构实验之排序三:bucket sort
- Can't use 'defined(@array)' (Maybe you should just omit the defined()?) at kernel/timeconst.pl
- 安卓混合开发——Android原生和H5数据交互,详细Demo
- Spring mvc 原理浅析
- 浅谈实人认证程序实现?
- kafka详解:Kafka的设计思想、理念
- python常用运维脚本实例
- 人机猜拳(顺序:一-->二-->三-->四)
- An overview on domain adaptation in neural machine translation
- 网址