Apply patches 1-6,8-9 (not 7) to the original freewais-sf-1.0 source
tree. You may or may not want to apply all of them. Patches available
in the pub/wais directory on ftp://ls6-www.informatik.uni-dortumund.de