The error message is in fact this:
Code:
mod_php4.c:956: `NULL' undeclared here (not in a function)
NULL is probably most common, standard value used, so the error is really strange. Have you compiled anything on that machine before? I'm asking, because your compiler install may not be full.