nas fails to build with gcc 4.0.0. The problem lies in server/dia/auutil.c, on line 176, where there is a call to freeFlow() with type static void. This gives an invalid storage class error, which is solved by removing the static qualifier. I'll attach a patch that does that, and an ebuild to apply the patch.
Created attachment 57737 [details, diff] nas-1.7-gcc4.patch
Created attachment 57738 [details] ebuild that applies the patch
Thanks for your patch, Kristiaan. This is in portage.