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

[netCDF #CSW-380765]: netcdf Sun make check fails



Hi Chris,

Your make_check.log shows some warnings we don't see in exactly the
test program that causes a failure on your Solaris platform, in
running "make check" for the ncdump directory:

cc -DHAVE_CONFIG_H -I. -I. -I.. -I../fortran  -I../libsrc -I../libsrc    -g -c
-o rewrite-scalar.o rewrite-scalar.c
"rewrite-scalar.c", line 20: warning: end-of-loop code not reached
"rewrite-scalar.c", line 21: warning: end-of-loop code not reached
"rewrite-scalar.c", line 22: warning: end-of-loop code not reached
"rewrite-scalar.c", line 23: warning: end-of-loop code not reached

I'm guessing maybe your copy of the ncdump/rewrite-scalar.c file got
corrupted or overwritten somehow.  Could you compare it with the
attached version of the file or replace it and try again to see if
that makes a difference?

Thanks.

--Russ




Russ Rew                                         UCAR Unidata Program
address@hidden                     http://www.unidata.ucar.edu



Ticket Details
===================
Ticket ID: CSW-380765
Department: Support netCDF
Priority: Normal
Status: Closed
/*********************************************************************
 * This is part of the Unidata netCDF package.
 * Copyright 2006, UCAR/Unidata
 * See COPYRIGHT file for copying and redistribution conditions.
 *
 * This program is part of the testing of file lengths done by the
 * test script tst_lentghs.sh.
 *
 * $Id: rewrite-scalar.c,v 1.2 2007/10/30 10:05:03 ed Exp $
 *********************************************************************/

#include <config.h>
#include <stdio.h>
#include <netcdf.h>

#define ERR do {fflush(stdout); fprintf(stderr, "Error, %s, line: %d\n", 
__FILE__, __LINE__); return(1);} while (0)

int
main(int ac, char *av[]) {
    int ncid, varid, data[] = {42};
#ifdef USE_PARALLEL
   MPI_Init(&ac, &av);
#endif
    if (nc_open(av[1], NC_WRITE, &ncid)) ERR;
    if (nc_inq_varid(ncid, av[2], &varid)) ERR;
    if (nc_put_var_int(ncid, varid, data)) ERR;
    if (nc_close(ncid)) ERR;

#ifdef USE_PARALLEL
   MPI_Finalize();
#endif   
    return 0;
}