[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
problem compiling netcdf-3.6.2 with gcc-4.3.2
From: |
Sergei Steshenko |
Subject: |
problem compiling netcdf-3.6.2 with gcc-4.3.2 |
Date: |
Sat, 18 Oct 2008 02:36:28 -0700 (PDT) |
Hello All,
well, the problem is not an octave one, but folks here may already know the
solution.
While trying to compile all octave dependencies with gcc-4.3.2 I've
encountered this problem during compilation of netcdf-3.6.2:
241 libtool: compile: /home/sergei/AFSWD/install/gcc-4.3.2/bin/g++
-DHAVE_CONFIG_H -I. -I. -I.. -I../fortran -DDEBUG -I../libsrc
-I/home/sergei/AFSWD/install/autoconf-2.63/include
-I/home/sergei/AFSWD/install/autogen-5.8.7/include
-I/home/sergei/AFSWD/install/bash-3.0/include
-I/home/sergei/AFSWD/install/bison-2.3/include
-I/home/sergei/AFSWD/install/dejagnu-1.4.4/include
-I/home/sergei/AFSWD/install/expect-5.44.1/include
-I/home/sergei/AFSWD/install/flex-2.5.35/include
-I/home/sergei/AFSWD/install/gcc-4.3.2/include
-I/home/sergei/AFSWD/install/gmp-4.2.2/include
-I/home/sergei/AFSWD/install/gperf-3.0.3/include
-I/home/sergei/AFSWD/install/guile-1.8.5/include
-I/home/sergei/AFSWD/install/libtool-1.5.26/include
-I/home/sergei/AFSWD/install/m4-1.4.12/include
-I/home/sergei/AFSWD/install/make-3.80/include
-I/home/sergei/AFSWD/install/mpfr-2.3.2/include
-I/home/sergei/AFSWD/install/ncurses-5.6/include
-I/home/sergei/AFSWD/install/readline-5.1/include
-I/home/sergei/AFSWD/install/tcl-8.4.19/include
-I/home/sergei/AFSWD/install/texinfo-4.13/include
-I/home/sergei/AFSWD/install/tk-8.4.19/include -march=native -mtune=native
-mfpmath=sse,387 -MT ncvalues.lo -MD -MP -MF .deps/ncvalues.Tpo -c ncvalues.cpp
-fPIC -DPIC -o .libs/ncvalues.o
242 ncvalues.cpp: In member function 'virtual char*
NcValues_ncbyte::as_string(long int) const':
243 ncvalues.cpp:238: error: 'strncpy' was not declared in this scope
244 ncvalues.cpp: In member function 'virtual char*
NcValues_char::as_string(long int) const':
245 ncvalues.cpp:246: error: 'strncpy' was not declared in this scope
246 make[2]: *** [ncvalues.lo] Error 1
247 make[2]: Leaving directory `/home/sergei/AFSWD/build/netcdf-3.6.2/cxx'
248 make[1]: *** [all-recursive] Error 1
249 make[1]: Leaving directory `/home/sergei/AFSWD/build/netcdf-3.6.2'
250 make: *** [all] Error 2
.
The same netcdf-3.6.2 compiles just fine with gcc-4.2.4.
Is anybody aware of a quick fix ?
It's not critical for me, I'm going to revert to gcc-4.2.4 meanwhile.
Thanks,
Sergei.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
- problem compiling netcdf-3.6.2 with gcc-4.3.2,
Sergei Steshenko <=