You need the following tools to build groff directly from CVS:
the netpbm package
texinfo 4.6 (4.7 doesn't work due to bugs in texinfo)
bison >= 1.875b or byacc
ghostscript