移植wu-ftpd编译错误的解决方法

来源:互联网 发布:淘宝卖家一年的收入 编辑:程序博客网 时间:2024/06/06 18:15

bison -y ftpcmd.y
ftpcmd.y:197.9: syntax error, unexpected =
ftpcmd.y:205.9: syntax error, unexpected =
ftpcmd.y:228.17-18: $2 of `cmd' has no declared type
ftpcmd.y:260.17-18: $2 of `cmd' has no declared type
ftpcmd.y:271.17-18: $2 of `cmd' has no declared type

 

bison版本太新到 src目录执行:   
  cp   ftpcmd.y   ftpcmd.y.orig  
  sed   -e   "s/=[   "$'/t'"][   "$'/t'"]*{/'='   {/"   ftpcmd.y.orig   >   ftpcmd.y

 

 

再make 即ok