A problem with ptrdiff_t

William Gropp gropp at mcs.anl.gov
Tue Dec 12 15:52:46 CST 2006


In trying to build the most recent version from CVS on my Mac, using  
MPICH2, I get:

groppmac:~/projects/software/parallel-netcdf gropp$ make

Making `all' in directory /Users/gropp/projects/software/parallel- 
netcdf/src

cd lib && make
/Users/gropp/tmp/mpi2-inst/bin/mpicc -c -g -O2 -I.    mpinetcdf.c
In file included from nc.h:14,
                  from mpinetcdf.c:8:
/usr/lib/gcc/i686-apple-darwin8/4.0.1/include/stddef.h:152: error:  
two or more data types in declaration specifiers
mpinetcdf.c:7802: warning: no previous prototype for 'ncmpii_postwrite'
mpinetcdf.c:7819: warning: no previous prototype for 'ncmpii_postread'
mpinetcdf.c:7860: warning: no previous prototype for 'ncmpii_postmwrite'
mpinetcdf.c:7877: warning: no previous prototype for 'ncmpii_postmread'
mpinetcdf.c:7901: warning: no previous prototype for  
'ncmpii_postprocess'
mpinetcdf.c: In function 'ncmpi_iput_var1':
mpinetcdf.c:8210: warning: unused variable 'mpistatus'
make[3]: *** [mpinetcdf.o] Error 1
make[2]: *** [all] Error 2
make[1]: *** [subdir_target] Error 1
make: *** [src/lib/all] Error 2
groppmac:~/projects/software/parallel-netcdf gropp$

The offending line in stddef is a typedef for ptrdiff_t ; there must  
be conflicting definitions in the ncconfig.h file .

Bill




More information about the parallel-netcdf mailing list