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

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

你可能感兴趣的:(cmd)