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

20040128: netCDF-3.5.0 on RH9



>From: "Wenwu Xia" <address@hidden>
>Organization: CIMMS/NSSL
>Keywords: 200401281517.i0SFHCp2005874 netCDF C++

Wenwu,

>My name is Wenwu Xia, and I am working in CIMMS/NSSL, Norman, OK. I 
>installed netCDF-3.5.0 package into Linux box with no problem, but I am 
>having some problem when trying to install it into RH9. Please check the 
>attached config.log file.
>
>I appreciate very much for your help.

Since the problems you report all seem to be related to building the
C++ interface, I will assume that the problem is in the use of newer
versions of gcc (g++) while building the C++ interface.  More recent
beta releases of the netCDF address this problem.  I, therefore, recommend
that you try using the latest beta, netcdf-3.5.1-beta13.tar.Z.
You can get this beta using anonymous FTP on our FTP server,
ftp.unidata.ucar.edu.  The distribution is located in the pub/netcdf
directory.

>Best regard,

Cheers,

Tom Yoksas

>Wenwu Xia
>CIMMS/NSSL
>Norman, OK
>(405)366-0528
>--------------010201080907080907080702
>Content-Type: text/plain;
> name="config.log"
>Content-Transfer-Encoding: 7bit
>Content-Disposition: inline;
> filename="config.log"
>
>This file contains any messages produced by compilers while
>running configure, to aid debugging if configure makes a mistake.
>
>configure:928: checking for top-level source-directory
>configure:938: checking for m4 preprocessor
>configure:945: checking for m4
>configure:1012: checking m4 flags
>configure:1040: checking for xlc
>configure:1040: checking for c89
>configure:1085: checking C compiler "c89"
>configure:1094: c89 -c -O -DNDEBUG conftest.c 1>&5
>configure:1121: checking how to make dependencies
>configure:1189: checking for CC
>configure:1189: checking for cxx
>configure:1189: checking for c++
>configure:1225: checking C++ compiler "c++"
>configure:1243: c++ -o conftest  -DNDEBUG  conftest.C  1>&5
>In file included from /usr/include/c++/3.2.2/backward/iostream.h:31,
>                 from configure:1235:
>/usr/include/c++/3.2.2/backward/backward_warning.h:32:2: warning: #warning Thi
> s file includes at least one deprecated or antiquated header. Please consider
>  using one of the 32 headers found in section 17.4.1.2 of the C++ standard. E
> xamples include substituting the <X> header for the <X.h> header for C++ incl
> udes, or <sstream> instead of the deprecated header <strstream.h>. To disable
>  this warning use -Wno-deprecated.
>In file included from /usr/include/c++/3.2.2/cstdlib:52,
>                 from /usr/include/c++/3.2.2/bits/stl_algobase.h:67,
>                 from /usr/include/c++/3.2.2/memory:54,
>                 from /usr/include/c++/3.2.2/string:48,
>                 from /usr/include/c++/3.2.2/bits/localefwd.h:49,
>                 from /usr/include/c++/3.2.2/ios:48,
>                 from /usr/include/c++/3.2.2/ostream:45,
>                 from /usr/include/c++/3.2.2/iostream:45,
>                 from /usr/include/c++/3.2.2/backward/iostream.h:32,
>                 from configure:1235:
>/usr/include/stdlib.h:612: declaration of `void exit(int) throw ()' throws 
>   different exceptions
>configure:1232: than previous declaration `void exit(int)'
>configure: failed program was:
>#line 1230 "configure"
>#include "confdefs.h"
>#ifdef __cplusplus
>extern "C" void exit(int);
>#endif
>
>                               #include <iostream.h>
>                               int main() {
>                                   cout << "";
>                                   return 0;
>                               }
>                           
>configure:1189: checking for g++
>configure:1225: checking C++ compiler "g++"
>configure:1243: g++ -o conftest  -DNDEBUG  conftest.C  1>&5
>In file included from /usr/include/c++/3.2.2/backward/iostream.h:31,
>                 from configure:1235:
>/usr/include/c++/3.2.2/backward/backward_warning.h:32:2: warning: #warning Thi
> s file includes at least one deprecated or antiquated header. Please consider
>  using one of the 32 headers found in section 17.4.1.2 of the C++ standard. E
> xamples include substituting the <X> header for the <X.h> header for C++ incl
> udes, or <sstream> instead of the deprecated header <strstream.h>. To disable
>  this warning use -Wno-deprecated.
>In file included from /usr/include/c++/3.2.2/cstdlib:52,
>                 from /usr/include/c++/3.2.2/bits/stl_algobase.h:67,
>                 from /usr/include/c++/3.2.2/memory:54,
>                 from /usr/include/c++/3.2.2/string:48,
>                 from /usr/include/c++/3.2.2/bits/localefwd.h:49,
>                 from /usr/include/c++/3.2.2/ios:48,
>                 from /usr/include/c++/3.2.2/ostream:45,
>                 from /usr/include/c++/3.2.2/iostream:45,
>                 from /usr/include/c++/3.2.2/backward/iostream.h:32,
>                 from configure:1235:
>/usr/include/stdlib.h:612: declaration of `void exit(int) throw ()' throws 
>   different exceptions
>configure:1232: than previous declaration `void exit(int)'
>configure: failed program was:
>#line 1230 "configure"
>#include "confdefs.h"
>#ifdef __cplusplus
>extern "C" void exit(int);
>#endif
>
>                               #include <iostream.h>
>                               int main() {
>                                   cout << "";
>                                   return 0;
>                               }
>                           
>configure:1189: checking for gcc
>configure:1225: checking C++ compiler "gcc"
>configure:1243: gcc -o conftest  -DNDEBUG  conftest.C  1>&5
>In file included from /usr/include/c++/3.2.2/backward/iostream.h:31,
>                 from configure:1235:
>/usr/include/c++/3.2.2/backward/backward_warning.h:32:2: warning: #warning Thi
> s file includes at least one deprecated or antiquated header. Please consider
>  using one of the 32 headers found in section 17.4.1.2 of the C++ standard. E
> xamples include substituting the <X> header for the <X.h> header for C++ incl
> udes, or <sstream> instead of the deprecated header <strstream.h>. To disable
>  this warning use -Wno-deprecated.
>In file included from /usr/include/c++/3.2.2/cstdlib:52,
>                 from /usr/include/c++/3.2.2/bits/stl_algobase.h:67,
>                 from /usr/include/c++/3.2.2/memory:54,
>                 from /usr/include/c++/3.2.2/string:48,
>                 from /usr/include/c++/3.2.2/bits/localefwd.h:49,
>                 from /usr/include/c++/3.2.2/ios:48,
>                 from /usr/include/c++/3.2.2/ostream:45,
>                 from /usr/include/c++/3.2.2/iostream:45,
>                 from /usr/include/c++/3.2.2/backward/iostream.h:32,
>                 from configure:1235:
>/usr/include/stdlib.h:612: declaration of `void exit(int) throw ()' throws 
>   different exceptions
>configure:1232: than previous declaration `void exit(int)'
>configure: failed program was:
>#line 1230 "configure"
>#include "confdefs.h"
>#ifdef __cplusplus
>extern "C" void exit(int);
>#endif
>
>                               #include <iostream.h>
>                               int main() {
>                                   cout << "";
>                                   return 0;
>                               }
>                           
>configure:1294: checking how to run the C preprocessor
>configure:1315: c89 -E -DNDEBUG conftest.c >/dev/null 2>conftest.out
>configure:1475: checking for f77
>configure:1516: f77 -c  conftest.f
>configure:1548: checking for Fortran .F compiler
>configure:1558: checking if Fortran-77 compiler handles *.F files
>configure:1569: f77 -o conftest  conftest.F 
>configure:1638: checking "f77" as Fortran-90 compiler
>configure:1640: f77 -o conftest  conftest.f90 
>/usr/bin/ld:conftest.f90: file format not recognized; treating as linker scrip
> t
>/usr/bin/ld:conftest.f90:1: parse error
>collect2: ld returned 1 exit status
>configure:1669: checking for xlf90
>configure:1669: checking for f90
>configure:1751: checking for nm utility
>configure:1758: checking for nm
>configure:1825: checking nm flags
>configure:1841: checking for C-equivalent to Fortran routine "SUB"
>configure:1847: f77 -c  conftest.f
>configure:1876: checking for Fortran "byte"
>configure:1883: f77 -c  conftest.f
>configure:1900: checking for Fortran "integer*2"
>configure:1907: f77 -c  conftest.f
>configure:1933: checking if Fortran "byte" is C "signed char"
>configure:1942: c89 -c -DNDEBUG -O conftest.c
>configure:1944: f77  -c conftestf.f
>configure:1946: f77 -o conftest   conftestf.o conftest.o 
>configure:1948: ./conftest
>configure:1981: checking if Fortran "byte" is C "short"
>configure:1990: c89 -c -DNDEBUG -O conftest.c
>configure:1992: f77  -c conftestf.f
>configure:1994: f77 -o conftest   conftestf.o conftest.o 
>configure:1996: ./conftest
>configure:2029: checking if Fortran "byte" is C "int"
>configure:2038: c89 -c -DNDEBUG -O conftest.c
>configure:2040: f77  -c conftestf.f
>configure:2042: f77 -o conftest   conftestf.o conftest.o 
>configure:2044: ./conftest
>configure:2077: checking if Fortran "byte" is C "long"
>configure:2086: c89 -c -DNDEBUG -O conftest.c
>configure:2088: f77  -c conftestf.f
>configure:2090: f77 -o conftest   conftestf.o conftest.o 
>configure:2092: ./conftest
>configure:2129: checking if Fortran "integer*2" is C "short"
>configure:2138: c89 -c -DNDEBUG -O conftest.c
>configure:2140: f77  -c conftestf.f
>configure:2142: f77 -o conftest   conftestf.o conftest.o 
>configure:2144: ./conftest
>configure:2177: checking if Fortran "integer*2" is C "int"
>configure:2186: c89 -c -DNDEBUG -O conftest.c
>configure:2188: f77  -c conftestf.f
>configure:2190: f77 -o conftest   conftestf.o conftest.o 
>configure:2192: ./conftest
>configure:2225: checking if Fortran "integer*2" is C "long"
>configure:2234: c89 -c -DNDEBUG -O conftest.c
>configure:2236: f77  -c conftestf.f
>configure:2238: f77 -o conftest   conftestf.o conftest.o 
>configure:2240: ./conftest
>configure:2275: checking if Fortran "integer" is C "int"
>configure:2284: c89 -c -DNDEBUG -O conftest.c
>configure:2286: f77  -c conftestf.f
>configure:2288: f77 -o conftest   conftestf.o conftest.o 
>configure:2290: ./conftest
>configure:2323: checking if Fortran "real" is C "float"
>configure:2332: c89 -c -DNDEBUG -O conftest.c
>configure:2334: f77  -c conftestf.f
>configure:2336: f77 -o conftest   conftestf.o conftest.o 
>configure:2338: ./conftest
>configure:2371: checking if Fortran "doubleprecision" is C "double"
>configure:2380: c89 -c -DNDEBUG -O conftest.c
>configure:2382: f77  -c conftestf.f
>configure:2384: f77 -o conftest   conftestf.o conftest.o 
>configure:2386: ./conftest
>configure:2413: checking for Fortran-equivalent to netCDF "byte"
>configure:2420: f77 -c  conftest.f
>configure:2435: checking for Fortran-equivalent to netCDF "short"
>configure:2442: f77 -c  conftest.f
>configure:2462: checking for math library
>configure:2466: checking for tanh in -lc
>configure:2485: c89 -o conftest -O -DNDEBUG  conftest.c -lc   1>&5
>/tmp/ccIlFeAi.o(.text+0xa): In function `main':
>: undefined reference to `tanh'
>collect2: ld returned 1 exit status
>configure: failed program was:
>#line 2474 "configure"
>#include "confdefs.h"
>/* Override any gcc2 internal prototype to avoid an error.  */
>/* We use char because int might match the return type of a gcc2
>    builtin and then its argument prototype would still apply.  */
>char tanh();
>
>int main() {
>tanh()
>; return 0; }
>configure:2504: checking for tanh in -lm
>configure:2523: c89 -o conftest -O -DNDEBUG  conftest.c -lm   1>&5
>configure:2555: checking for ar utility
>configure:2562: checking for ar
>configure:2629: checking ar flags
>configure:2638: checking for nm utility
>configure:2680: checking for nm
>configure:2712: checking nm flags
>configure:2722: checking for ranlib
>configure:2751: checking for stdlib.h
>configure:2761: c89 -E -DNDEBUG conftest.c >/dev/null 2>conftest.out
>configure:2788: checking for sys/types.h
>configure:2798: c89 -E -DNDEBUG conftest.c >/dev/null 2>conftest.out
>configure:2824: checking for strerror
>configure:2852: c89 -o conftest -O -DNDEBUG  conftest.c  1>&5
>configure:2877: checking for working ftruncate()
>configure:2930: c89 -o conftest -O -DNDEBUG  conftest.c  1>&5
>/tmp/cc6koIhD.o(.text+0x15): In function `main':
>: the use of `tmpnam' is dangerous, better use `mkstemp'
>configure:2952: checking for working alloca.h
>configure:2964: c89 -o conftest -O -DNDEBUG  conftest.c  1>&5
>configure:2985: checking for alloca
>configure:3018: c89 -o conftest -O -DNDEBUG  conftest.c  1>&5
>configure:3184: checking for st_blksize in struct stat
>configure:3197: c89 -c -O -DNDEBUG conftest.c 1>&5
>configure:3219: checking for IEEE floating point format
>configure:3257: c89 -o conftest -O -DNDEBUG  conftest.c  1>&5
>configure:3278: checking for ANSI C header files
>configure:3291: c89 -E -DNDEBUG conftest.c >/dev/null 2>conftest.out
>configure:3358: c89 -o conftest -O -DNDEBUG  conftest.c  1>&5
>configure:3382: checking for size_t
>configure:3415: checking for off_t
>configure:3448: checking for ssize_t
>configure:3481: checking for ptrdiff_t
>configure:3514: checking for uchar
>configure:3547: checking whether char is unsigned
>configure:3586: c89 -o conftest -O -DNDEBUG  conftest.c  1>&5
>configure: failed program was:
>#line 3576 "configure"
>#include "confdefs.h"
>/* volatile prevents gcc2 from optimizing the test away on sparcs.  */
>#if !defined(__STDC__) || __STDC__ != 1
>#define volatile
>#endif
>main() {
>  volatile char c = 255; exit(c < 0);
>}
>configure:3610: checking whether byte ordering is bigendian
>configure:3628: c89 -c -O -DNDEBUG conftest.c 1>&5
>configure: In function `main':
>configure:3623: `bogus' undeclared (first use in this function)
>configure:3623: (Each undeclared identifier is reported only once
>configure:3623: for each function it appears in.)
>configure:3623: parse error before "endian"
>configure: failed program was:
>#line 3617 "configure"
>#include "confdefs.h"
>#include <sys/types.h>
>#include <sys/param.h>
>int main() {
>
>#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
> bogus endian macros
>#endif
>; return 0; }
>configure:3676: c89 -o conftest -O -DNDEBUG  conftest.c  1>&5
>configure:3700: checking size of short
>configure:3719: c89 -o conftest -O -DNDEBUG  conftest.c  1>&5
>configure:3739: checking size of int
>configure:3758: c89 -o conftest -O -DNDEBUG  conftest.c  1>&5
>configure:3778: checking size of long
>configure:3797: c89 -o conftest -O -DNDEBUG  conftest.c  1>&5
>configure:3817: checking size of float
>configure:3836: c89 -o conftest -O -DNDEBUG  conftest.c  1>&5
>configure:3856: checking size of double
>configure:3875: c89 -o conftest -O -DNDEBUG  conftest.c  1>&5
>configure:3895: checking size of off_t
>configure:3918: c89 -o conftest -O -DNDEBUG  conftest.c  1>&5
>configure:3938: checking size of size_t
>configure:3961: c89 -o conftest -O -DNDEBUG  conftest.c  1>&5
>configure:4062: checking for manual-page index command
>configure:4066: checking binary distribution directory
>
>--------------010201080907080907080702--
>
--
NOTE: All email exchanges with Unidata User Support are recorded in the
Unidata inquiry tracking system and then made publically available
through the web.  If you do not want to have your interactions made
available in this way, you must let us know in each email you send to us.

>From address@hidden Fri Jan 30 10:02:22 2004

Hi Tom,

Thank you very much for your assistance and the new version of netcdf 
package works fine on RH9.

Wenwu Xia