It seems that the MA library expects a different size of integer than what it is given. As the code normally compiles with 64-bit integers you will have to manually specify that it should use 32-bit integers. To do this do:
export USE_64TO32=yes
and replace the compilation commands with
make realclean
make nwchem_config NWCHEM_MODULES=all
make 64_to_32
make
with these settings and commands the code should compile correctly.