/root/ha/hiawatha-7.7/monitor.c:107: undefined reference to `gzclose'
[...]
/root/ha/hiawatha-7.7/xslt.c:365: undefined reference to `xmlReadFile'
[...]
/root/ha/hiawatha-7.7/xslt.c:429: undefined reference to `xsltFreeStylesheet'
You're missing "-lz", "-lxslt", and "-lxml" in your cc command.
Depending on Hiawatha's Makefile, this will solve the issue:
make LDFLAGS="-lz -lxslt -lxml2
You may also need to ass some paths with -L (i.e. -L/usr/lib/libxml2/)
Also take note that CentOS ships with old (*very* old) packages, as in, 4-5-6+ years old, "recent" (In CentOS terms) applications (Such as hiawatha) may not compile ...