errors in AIX build

Rob Latham robl at mcs.anl.gov
Wed Feb 17 16:49:07 CST 2010


On Mon, Feb 15, 2010 at 09:31:25AM -0700, Jim Edwards wrote:
> In the src/libf/Makefile.in  you use a -e option to echo.   This option is
> not recognized in AIX.

Hi Jim.  Thanks for reporting this.  What seems to happen, at least on
linux,  is that the shell uses a built-in 'echo' command, instead of
/bin/echo.   If you replace the 'echo' commands in
src/libf/Makefile.in with /bin/echo, does that work?

> In file src/lib/mpinetcdf.c  the macro here
> 
>     return "version = " PNETCDF_VERSION "of 02 November 2009";
> 
> is not replaced correctly by cpp,  I think something like this would be
> better...
> 
>   return sprintf("version =
> %d.%d.%d",PNETCDF_VERSION_MAJOR,PNETCDF_VERSION_MINOR,
> PNETCDF_VERSION_SUB);}

that would be more clear, it's true.  PNETCDF_VERSION is not
available outside of the pnetcdf build environment.  configure defines
that macro in src/lib/ncconfig.h.   The PNETCDF{_MAJOR,_MINOR,_SUB,_PRE} 
macros are defined in the (now generated) pnetcdf.h header file.  

Any chance you've got a stale pnetcdf.h floating around?

==rob

-- 
Rob Latham
Mathematics and Computer Science Division
Argonne National Lab, IL USA


More information about the parallel-netcdf mailing list