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