compile error in mainLegacy.cpp with sparskit
/opt/local/bin/g++-mp-4.5 -g -O2 -I. -I../Common -I../Interface -I../Numeric -I../contrib/NR -I../contrib/Sparskit -c MainLegacy.cpp In file included from MainLegacy.cpp:14:0: LinAlg.h:66:28: error: variable or field 'LinAlg_CreateSolverNL' declared void LinAlg.h:66:28: error: 'gSolverNL' was not declared in this scope LinAlg.h:66:39: error: 'SolverNL' was not declared in this scope LinAlg.h:66:49: error: expected primary-expression before 'const' LinAlg.h:71:29: error: variable or field 'LinAlg_DestroySolverNL' declared void LinAlg.h:71:29: error: 'gSolverNL' was not declared in this scope LinAlg.h:71:40: error: 'SolverNL' was not declared in this scope LinAlg.h:163:45: error: 'gSolverNL' has not been declared make[1]: *** [MainLegacy.o] Error 1
full log below:
ace35:~/getdp-sparskit > ./configure CC=/opt/local/bin/gcc-mp-4.5 CXX=/opt/local/bin/g++-mp-4.5 F77=/opt/local/bin/gfortran-mp-4.5 FC=/opt/local/bin/gfortran-mp-4.5 --disable-petsc --disable-arpack --enable-sparskit --enable-gsl --with-gsl-prefix=/opt/local checking for gcc... /opt/local/bin/gcc-mp-4.5 checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether /opt/local/bin/gcc-mp-4.5 accepts -g... yes checking for /opt/local/bin/gcc-mp-4.5 option to accept ISO C89... none needed checking whether we are using the GNU C++ compiler... yes checking whether /opt/local/bin/g++-mp-4.5 accepts -g... yes checking whether we are using the GNU Fortran compiler... yes checking whether /opt/local/bin/gfortran-mp-4.5 accepts -g... yes checking how to run the C preprocessor... /opt/local/bin/gcc-mp-4.5 -E checking how to run the C preprocessor... /opt/local/bin/gcc-mp-4.5 -E checking for ranlib... ranlib checking for main in -lm... yes checking for ./contrib/Sparskit/Sparskit.cpp... yes checking whether we are using the GNU Fortran 77 compiler... yes checking whether /opt/local/bin/gfortran-mp-4.5 accepts -g... yes checking for dasum in -lblas... yes checking for dbdsqr in -llapack... yes checking for main in -lgslcblas... no checking for main in -lgsl... no checking for ./contrib/NR/dsvdcmp.cpp... yes configure: WARNING: You are building a non-free version of GetDP, using code copyright configure: WARNING: (C) 1986-92 Numerical Recipes Software J!0. configure: WARNING: To use the GSL instead, run configure again with the --enable-gsl configure: WARNING: option. configure: creating ./config.status config.status: creating variables config.status: creating Common/GetDPConfig.h config.status: Common/GetDPConfig.h is unchanged
GetDP has been configured for Darwin with the following options: Legacy Sparskit
C compiler: /opt/local/bin/gcc-mp-4.5 C++ compiler: /opt/local/bin/g++-mp-4.5 Fortran compiler: /opt/local/bin/gfortran-mp-4.5 Linker: /opt/local/bin/g++-mp-4.5 Optimization flags: -g -O2
Edit 'variables' and 'Common/GetDPConfig.h' to fine-tune the configuration.
ace35:~/getdp-sparskit > make
rm -f Common/GetDPVersion.h
echo "#define GETDP_MAJOR_VERSION 2" > Common/GetDPVersion.h
echo "#define GETDP_MINOR_VERSION 1" >> Common/GetDPVersion.h
echo "#define GETDP_PATCH_VERSION 1" >> Common/GetDPVersion.h
echo "#define GETDP_EXTRA_VERSION """ >> Common/GetDPVersion.h
echo "#define GETDP_VERSION "2.1.1"" >> Common/GetDPVersion.h
echo "#define GETDP_DATE "date
"" >> Common/GetDPVersion.h
echo "#define GETDP_HOST "ace35.local"" >> Common/GetDPVersion.h
echo "#define GETDP_PACKAGER "whoami
"" >> Common/GetDPVersion.h
echo "#define GETDP_OS "Darwin"" >> Common/GetDPVersion.h
echo "#define GETDP_SHORT_LICENSE ""GNU General Public License""" >> Common/GetDPVersion.h
/opt/local/bin/g++-mp-4.5 -g -O2 -I. -c ListUtils.cpp
/opt/local/bin/g++-mp-4.5 -g -O2 -I. -c TreeUtils.cpp
/opt/local/bin/g++-mp-4.5 -g -O2 -I. -c avl.cpp
/opt/local/bin/g++-mp-4.5 -g -O2 -I. -c MallocUtils.cpp
/opt/local/bin/g++-mp-4.5 -g -O2 -I. -c Message.cpp
/opt/local/bin/g++-mp-4.5 -g -O2 -I. -c OS.cpp
libtool -o ../lib/libGetDPCommon.a ListUtils.o TreeUtils.o avl.o MallocUtils.o Message.o OS.o
true ../lib/libGetDPCommon.a
/opt/local/bin/g++-mp-4.5 -g -O2 -I. -I../Common -I../contrib/NR -c Numeric.cpp
/opt/local/bin/g++-mp-4.5 -g -O2 -I. -I../Common -I../contrib/NR -c Adapt.cpp
/opt/local/bin/g++-mp-4.5 -g -O2 -I. -I../Common -I../contrib/NR -c Bessel.cpp
/opt/local/bin/g++-mp-4.5 -g -O2 -I. -I../Common -I../contrib/NR -c Legendre.cpp
/opt/local/bin/g++-mp-4.5 -g -O2 -I. -I../Common -I../contrib/NR -c gsl_brent.cpp
/opt/local/bin/g++-mp-4.5 -g -O2 -I. -I../Common -I../contrib/NR -c gsl_newt.cpp
/opt/local/bin/g++-mp-4.5 -g -O2 -I. -I../Common -I../contrib/NR -c gsl_min.cpp
/opt/local/bin/gfortran-mp-4.5 -c BesselLib.f
libtool -o ../lib/libGetDPNumeric.a Numeric.o Adapt.o Bessel.o Legendre.o gsl_brent.o gsl_newt.o gsl_min.o BesselLib.o
libtool: file: gsl_brent.o has no symbols
libtool: file: gsl_newt.o has no symbols
true ../lib/libGetDPNumeric.a
/opt/local/bin/g++-mp-4.5 -g -O2 -I. -I../Common -I../Legacy -c ProData.cpp
/opt/local/bin/g++-mp-4.5 -g -O2 -I. -I../Common -I../Legacy -c ProDefine.cpp
/opt/local/bin/g++-mp-4.5 -g -O2 -I. -I../Common -I../Legacy -c ProParser.yy.cpp
/opt/local/bin/g++-mp-4.5 -g -O2 -I. -I../Common -I../Legacy -c ProParser.tab.cpp
libtool -o ../lib/libGetDPInterface.a ProData.o ProDefine.o ProParser.yy.o ProParser.tab.o
true ../lib/libGetDPInterface.a
/opt/local/bin/g++-mp-4.5 -g -O2 -I. -I../Common -I../Interface -I../Numeric -I../contrib/NR -I../contrib/Sparskit -c MainLegacy.cpp
In file included from MainLegacy.cpp:14:0:
LinAlg.h:66:28: error: variable or field 'LinAlg_CreateSolverNL' declared void
LinAlg.h:66:28: error: 'gSolverNL' was not declared in this scope
LinAlg.h:66:39: error: 'SolverNL' was not declared in this scope
LinAlg.h:66:49: error: expected primary-expression before 'const'
LinAlg.h:71:29: error: variable or field 'LinAlg_DestroySolverNL' declared void
LinAlg.h:71:29: error: 'gSolverNL' was not declared in this scope
LinAlg.h:71:40: error: 'SolverNL' was not declared in this scope
LinAlg.h:163:45: error: 'gSolverNL' has not been declared
make[1]: *** [MainLegacy.o] Error 1
/opt/local/bin/g++-mp-4.5 -g -O2 -I. -I../Common -I../Interface -I../Legacy -I../contrib -c Main.cpp
libtool -o ../lib/libGetDPMain.a Main.o
true ../lib/libGetDPMain.a
/opt/local/bin/g++-mp-4.5 -g -O2 -I. -I../../Common -c Sparskit.cpp
/opt/local/bin/gfortran-mp-4.5 -g -O2 -I. -I../../Common -DSPARSKIT_FLOAT_ILU -c blas1.f
blas1.f:238.72:
10 assign 30 to next
1
Warning: Deleted feature: ASSIGN statement at (1)
blas1.f:243.19:
20 go to next,(30, 50, 70, 110)
1
Warning: Deleted feature: Assigned GOTO statement at (1)
blas1.f:245.72:
assign 50 to next
1
Warning: Deleted feature: ASSIGN statement at (1) blas1.f:254.72:
assign 70 to next
1
Warning: Deleted feature: ASSIGN statement at (1) blas1.f:260.72:
assign 110 to next
1
Warning: Deleted feature: ASSIGN statement at (1) /opt/local/bin/gfortran-mp-4.5 -g -O2 -I. -I../../Common -DSPARSKIT_FLOAT_ILU -c blassm.f /opt/local/bin/gfortran-mp-4.5 -g -O2 -I. -I../../Common -DSPARSKIT_FLOAT_ILU -c cmkreord.f /opt/local/bin/gfortran-mp-4.5 -g -O2 -I. -I../../Common -DSPARSKIT_FLOAT_ILU -c flu.f /opt/local/bin/gfortran-mp-4.5 -g -O2 -I. -I../../Common -DSPARSKIT_FLOAT_ILU -c formats.f /opt/local/bin/gfortran-mp-4.5 -g -O2 -I. -I../../Common -DSPARSKIT_FLOAT_ILU -c inout.f inout.f:362.72:
assign 101 to ix
1
Warning: Deleted feature: ASSIGN statement at (1) inout.f:364.72:
assign 100 to ix
1
Warning: Deleted feature: ASSIGN statement at (1) inout.f:391.72:
assign 102 to ix
1
Warning: Deleted feature: ASSIGN statement at (1) inout.f:393.72:
assign 103 to ix
1
Warning: Deleted feature: ASSIGN statement at (1) inout.f:395.72:
assign 104 to ix
1
Warning: Deleted feature: ASSIGN statement at (1) inout.f:409.72:
assign 105 to ix
1
Warning: Deleted feature: ASSIGN statement at (1) inout.f:411.72:
assign 106 to ix
1
Warning: Deleted feature: ASSIGN statement at (1) inout.f:413.72:
assign 107 to ix
1
Warning: Deleted feature: ASSIGN statement at (1) inout.f:417.72:
assign 108 to ix
1
Warning: Deleted feature: ASSIGN statement at (1) inout.f:419.72:
assign 109 to ix
1
Warning: Deleted feature: ASSIGN statement at (1) inout.f:421.72:
assign 110 to ix
1
Warning: Deleted feature: ASSIGN statement at (1) inout.f:366.20:
write (ptrfmt,ix) nperli,len
1
Warning: Deleted feature: ASSIGNED variable in FORMAT tag at (1) inout.f:398.22:
write(valfmt,ix) nperli,len,ifmt
1
Warning: Deleted feature: ASSIGNED variable in FORMAT tag at (1) inout.f:425.22:
write(valfmt,ix) nperli,len,ifmt
1
Warning: Deleted feature: ASSIGNED variable in FORMAT tag at (1) inout.f:1311.72:
assign 101 to ix
1
Warning: Deleted feature: ASSIGN statement at (1) inout.f:1313.72:
assign 100 to ix
1
Warning: Deleted feature: ASSIGN statement at (1) inout.f:1334.72:
assign 102 to ix
1
Warning: Deleted feature: ASSIGN statement at (1) inout.f:1336.72:
assign 103 to ix
1
Warning: Deleted feature: ASSIGN statement at (1) inout.f:1338.72:
assign 104 to ix
1
Warning: Deleted feature: ASSIGN statement at (1) inout.f:1352.72:
assign 105 to ix
1
Warning: Deleted feature: ASSIGN statement at (1) inout.f:1354.72:
assign 106 to ix
1
Warning: Deleted feature: ASSIGN statement at (1) inout.f:1356.72:
assign 107 to ix
1
Warning: Deleted feature: ASSIGN statement at (1) inout.f:1360.72:
assign 108 to ix
1
Warning: Deleted feature: ASSIGN statement at (1) inout.f:1362.72:
assign 109 to ix
1
Warning: Deleted feature: ASSIGN statement at (1) inout.f:1364.72:
assign 110 to ix
1
Warning: Deleted feature: ASSIGN statement at (1) inout.f:1315.20:
write (ptrfmt,ix) nperli,len
1
Warning: Deleted feature: ASSIGNED variable in FORMAT tag at (1) inout.f:1341.22:
write(valfmt,ix) nperli,len,ifmt
1
Warning: Deleted feature: ASSIGNED variable in FORMAT tag at (1) inout.f:1368.22:
write(valfmt,ix) nperli,len,ifmt
1
Warning: Deleted feature: ASSIGNED variable in FORMAT tag at (1) /opt/local/bin/gfortran-mp-4.5 -g -O2 -I. -I../../Common -DSPARSKIT_FLOAT_ILU -c iters.f /opt/local/bin/gfortran-mp-4.5 -g -O2 -I. -I../../Common -DSPARSKIT_FLOAT_ILU -c matvec.f /opt/local/bin/gfortran-mp-4.5 -g -O2 -I. -I../../Common -DSPARSKIT_FLOAT_ILU -c reordering.f /opt/local/bin/gfortran-mp-4.5 -g -O2 -I. -I../../Common -DSPARSKIT_FLOAT_ILU -c unary.f /opt/local/bin/gfortran-mp-4.5 -g -O2 -I. -I../../Common -DSPARSKIT_FLOAT_ILU -c ilut.F libtool -o ../../lib/libGetDPSparskit.a Sparskit.o blas1.o blassm.o cmkreord.o flu.o formats.o inout.o iters.o matvec.o reordering.o unary.o ilut.o true ../../lib/libGetDPSparskit.a /opt/local/bin/g++-mp-4.5 -I../../Common -c brent.cpp brent.cpp: In function 'double brent(double, double, double, double ()(double), double, double)': brent.cpp:68:40: warning: deprecated conversion from string constant to 'char*' /opt/local/bin/g++-mp-4.5 -I../../Common -c dpythag.cpp /opt/local/bin/g++-mp-4.5 -I../../Common -c dsvdcmp.cpp dsvdcmp.cpp: In function 'void dsvdcmp(double**, int, int, double*, double**)': dsvdcmp.cpp:129:68: warning: deprecated conversion from string constant to 'char*' /opt/local/bin/g++-mp-4.5 -I../../Common -c fdjac.cpp /opt/local/bin/g++-mp-4.5 -I../../Common -c fmin.cpp /opt/local/bin/g++-mp-4.5 -I../../Common -c lnsrch.cpp lnsrch.cpp: In function 'void lnsrch(int, double*, double, double*, double*, double*, double*, double, int*, double ()(double))': lnsrch.cpp:49:57: warning: deprecated conversion from string constant to 'char*' /opt/local/bin/g++-mp-4.5 -I../../Common -c lubksb.cpp /opt/local/bin/g++-mp-4.5 -I../../Common -c ludcmp.cpp ludcmp.cpp: In function 'void ludcmp(double**, int, int*, double*)': ludcmp.cpp:20:62: warning: deprecated conversion from string constant to 'char*' /opt/local/bin/g++-mp-4.5 -I../../Common -c mnbrak.cpp /opt/local/bin/g++-mp-4.5 -I../../Common -c newt.cpp newt.cpp: In function 'void newt(double*, int, int*, void ()(int, double, double*))': newt.cpp:83:35: warning: deprecated conversion from string constant to 'char*' /opt/local/bin/g++-mp-4.5 -I../../Common -c nrutil.cpp nrutil.cpp: In function 'float* vector(long int, long int)': nrutil.cpp:29:50: warning: deprecated conversion from string constant to 'char*' nrutil.cpp: In function 'int* ivector(long int, long int)': nrutil.cpp:39:51: warning: deprecated conversion from string constant to 'char*' nrutil.cpp: In function 'unsigned char* cvector(long int, long int)': nrutil.cpp:49:51: warning: deprecated conversion from string constant to 'char*' nrutil.cpp: In function 'long unsigned int* lvector(long int, long int)': nrutil.cpp:59:51: warning: deprecated conversion from string constant to 'char*' nrutil.cpp: In function 'double* dvector(long int, long int)': nrutil.cpp:69:51: warning: deprecated conversion from string constant to 'char*' nrutil.cpp: In function 'float** matrix(long int, long int, long int, long int)': nrutil.cpp:81:52: warning: deprecated conversion from string constant to 'char*' nrutil.cpp:87:57: warning: deprecated conversion from string constant to 'char*' nrutil.cpp: In function 'double** dmatrix(long int, long int, long int, long int)': nrutil.cpp:105:52: warning: deprecated conversion from string constant to 'char*' nrutil.cpp:111:57: warning: deprecated conversion from string constant to 'char*' nrutil.cpp: In function 'int** imatrix(long int, long int, long int, long int)': nrutil.cpp:129:52: warning: deprecated conversion from string constant to 'char*' nrutil.cpp:136:57: warning: deprecated conversion from string constant to 'char*' nrutil.cpp: In function 'float** submatrix(float**, long int, long int, long int, long int, long int, long int)': nrutil.cpp:155:53: warning: deprecated conversion from string constant to 'char*' nrutil.cpp: In function 'float** convert_matrix(float*, long int, long int, long int, long int)': nrutil.cpp:177:58: warning: deprecated conversion from string constant to 'char*' nrutil.cpp: In function 'float*** f3tensor(long int, long int, long int, long int, long int, long int)': nrutil.cpp:196:54: warning: deprecated conversion from string constant to 'char*' nrutil.cpp:202:59: warning: deprecated conversion from string constant to 'char*' nrutil.cpp:208:64: warning: deprecated conversion from string constant to 'char*' libtool -o ../../lib/libGetDPNR.a brent.o dpythag.o dsvdcmp.o fdjac.o fmin.o lnsrch.o lubksb.o ludcmp.o mnbrak.o newt.o nrutil.o true ../../lib/libGetDPNR.a /opt/local/bin/g++-mp-4.5 -g -O2 -o bin/getdp Main/Main.o -Llib -lGetDPLegacy -lGetDPInterface -lGetDPLegacy -lGetDPNumeric -lGetDPCommon -lGetDPSparskit -lGetDPNR -lgfortran -lm ld: library not found for -lGetDPLegacy collect2: ld returned 1 exit status make: *** [link] Error 1 ace35:~/getdp-sparskit >