[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #UZA-429567]: netCDF 3.6.1, how to build the C++ API under AIX



> Dear netCDF support,
> 
> all documented builds of netCDF 3.6.1 under AIX seem to skip the installation
> of the C++ API.  Indeed compilation of the API fails when the default
> configure/make steps are taken.  Apparently enhanced support for large
> files was introduced with netCDF 3.6.1, but configure was not modified
> accordingly for AIX.  This is very simple to solve.
> 
> After running the configure script a small edit of the macros.make file
> is needed to succesfully build the C++ API, namely, for a 32 bit build
> the parameter "-D_LARGE_FILES" must be added to both CFLAGS and CXXFLAGS.
> The same holds for a 64 bit build, but "-q64" must also be added to CXXFLAGS.
> 
> Namely, the two lines in macros.make should look like (for 64 bits):
> 
> CFLAGS          =  -q64 -D_LARGE_FILES
> CXXFLAGS        =  -q64 -D_LARGE_FILES
> 
> I include a copy of the modified environment file (macros.make) that I have
> used to build the 64 bit version of netCDF 3.6.1 (including the C++ API) on
> the AIX 5.2 system at CSCS, and the output of "./configure", "make" and "make
> check". The 32 bit case is identical.
> 
> Hope this helps,
> best regards,
> --
> Dr. Francesco Benvenuto
> Centro Svizzero di Calcolo Scientifico                Tel: +41-91-610 8202
> Galleria 2, Via Cantonale                             Fax: +41-91-610 8282
> CH-6928 Manno (TI) - Switzerland
> 
> 

Howdy Dr. Benvenuto!

Yes, you are quite correct and this problem will be fixed in the next 3.6.2 
beta release and all subsequent releases.

Thanks!

Ed Hartnett

Ticket Details
===================
Ticket ID: UZA-429567
Department: Support netCDF
Priority: Urgent
Status: Closed