CMAQv5.3.1 Installation Error related to HDF5

I am getting this error possibly related to HDF5 (I compile it before netCDF) when trying to compile CMAQv5.3.1:

and this error continues till the end of the log file:

What could possibly be done to fix this?

Follow the I/O API installation instructions about configuring netDF:

Or else you’re on your own with regard to fixing all of the related build-systems.