使用github上widroa的openwrt编译固件
遇见如下错误
Unescaped left brace in regex is deprecated, passed through in regex;marked by <– HERE in m/\${ <– HERE ([^ \t=:+{}]+)}/ at /usr/local/bin/automake line xxx
百度下了,确实有不少人遇见这个错误,
错误的原因的perl的版本不兼容的问题
解决方法
修改build_dir/host/automake-1.15/bin/automake.in
修改3883行为3884行
1 2 3 4 5 6 7 |
3880 sub substitute_ac_subst_variables 3881 { 3882 my ($text) = @_; 3883 # $text =~ s/\${([^ \t=:+{}]+)}/substitute_ac_subst_variables_worker ($1)/ge; 3884 $text =~ s/\$[{]([^ \t=:+{}]+)}/substitute_ac_subst_variables_worker ($1)/ge; 3885 return $text; 3886 } |