Here is a patch to OpenAFS that makes the FreeBSD 5.2 client work. It also breaks the 4.x client. I will commit this to OpenAFS if I can get it to work on 4.x. Garrett Wollman did all the work, I just cleaned it up a bit and fixed it so it would still build (but not necessarily run) on OpenBSD and 4.x. http://www.citi.umich.edu/u/rees/fbsd.diff