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

[netCDF #HQL-848389]: linux compile failure (NETCDF 4.1.2, 32 & 64 bit)



> A curious compile error with the today's 4.1.2 tar ball.  Saw it in the
> FAQ associated with a MINGW build, but this is the same error on Linux:
> 
> ...
> /bin/sh ../libtool  --tag=CC   --mode=compile /opt/gcc-4.3.2/bin/gcc -m32
> -D__LINUX__ -D__X86_LINUX__ -D__X86_LINUX2_NA__ -DHAVE_CONFIG_H -I. -I..
> -I../fortran  -I../include   -I/proj/sw/zlib/1.2.5-01/x86_linux_na/include
> -I/proj/sw/hdf5/1.8.6-03/x86_linux_na/include  -DNDEBUG
> -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES=1 -D_XOPEN_SOURCE=1 -march=i686 -O3
> -DQT_NO_DEBUG  -DEXA_CURRENT_YEAR=2011   -I.  -MT libnetcdf3_la-putget.lo
> -MD -MP -MF .deps/libnetcdf3_la-putget.Tpo -c -o libnetcdf3_la-putget.lo
> `test -f 'putget.c' || echo './'`putget.c
> libtool: compile:  /opt/gcc-4.3.2/bin/gcc -m32 -D__LINUX__ -D__X86_LINUX__
> -D__X86_LINUX2_NA__ -DHAVE_CONFIG_H -I. -I.. -I../fortran -I../include
> -I/proj/sw/zlib/1.2.5-01/x86_linux_na/include
> -I/proj/sw/hdf5/1.8.6-03/x86_linux_na/include -DNDEBUG
> -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES=1 -D_XOPEN_SOURCE=1 -march=i686 -O3
> -DQT_NO_DEBUG -DEXA_CURRENT_YEAR=2011 -I. -MT libnetcdf3_la-putget.lo -MD
> -MP -MF .deps/libnetcdf3_la-putget.Tpo -c putget.c  -fPIC -DPIC -o
> .libs/libnetcdf3_la-putget.o
> putget.c:3108: error: expected declaration specifiers or '...' before 'uint'
> putget.c: In function 'getNCvx_schar_uint':
> putget.c:3130: error: 'value' undeclared (first use in this function)
> putget.c:3130: error: (Each undeclared identifier is reported only once
> putget.c:3130: error: for each function it appears in.)
> putget.c: At top level:
> putget.c:3469: error: expected declaration specifiers or '...' before 'uint'
> putget.c: In function 'getNCvx_short_uint':
> putget.c:3491: error: 'value' undeclared (first use in this function)
> putget.c: At top level:
> putget.c:3830: error: expected declaration specifiers or '...' before 'uint'
> putget.c: In function 'getNCvx_int_uint':
> putget.c:3852: error: 'value' undeclared (first use in this function)
> ...
> 
> Not instantly obvious what's going on.  Guidance please?  Thanks...
> -jrm
> 
> James Mason
> Exa Corporation
> Burlington, MA
> 
> 
> 
> 

Is this a clean build? That is, unpacked from tarball? Or did you already build 
in this directory?

Thanks,

Ed

Ticket Details
===================
Ticket ID: HQL-848389
Department: Support netCDF
Priority: Normal
Status: Closed