CLAVRx编译错误! cx_hdf_read_mod.f90 :(。text + 0x21e):对'sffattr_'的未定义引用

时间:2019-07-28 07:35:49

标签: fortran

我正在尝试编译CLAVRx,但是遇到了一些问题。

操作系统:Centos6 编译package:devtool-set7

首先,安装svn并获取Clavrx安装脚本。

scl enable devtoolset-7 bash
export FC=gfortran
svn checkout -q https://svn.ssec.wisc.edu/repos/clavrx_scripts/trunk scripts_trunk
 cp scripts_trunk/install_clavrx_trunk.sh ./
 rm -rf scripts_trunk

编译hdf4,hdf5和netcdf库后,在install_clavrx_trunk.sh中编辑hdf4_gcc hdf5_gcc netcdf_gcc变量,然后执行:

./install_clavrx_trunk.sh
Use of uninitialized value $ENV{"HOST"} in concatenation (.) or string at ./configure line 13.
Make include file is /root/clavrx_trunk/build/Makefile.
Fortran compiler (FC) is set to gfortran
Make include file is /root/clavrx_trunk/cx_sds_io/Release_gfortran/makefile.init
The CX_SDS_IO GFORTRAN source code is configured for build on this system.
Make include file is /root/clavrx_trunk/cx_dncomp/Release_gfortran/makefile.init
The CX_DNCOMP GFORTRAN source code is configured for build on this system.
Make include file is /root/clavrx_trunk/muri/Release_gfortran/makefile.init
The MURI GFORTRAN source code is configured for build on this system.
Make include file is /root/clavrx_trunk/cx_sds_io/Release_ifort/makefile.init
The CX_SDS_IO IFORT source code is configured for build on this system.
Make include file is /root/clavrx_trunk/cx_dncomp/Release_ifort/makefile.init
The CX_DNCOMP IFORT source code is configured for build on this system.
Make include file is /root/clavrx_trunk/muri/Release_ifort/makefile.init
The MURI IFORT source code is configured for build on this system.
Use of uninitialized value $opt{"libhim_gcc"} in concatenation (.) or string at ./configure line 120.
Use of uninitialized value $opt{"libhim_ifort"} in concatenation (.) or string at ./configure line 128.
The CLAVR-x source code is configured for build on this system.
 Configuration successful  
 Compilation starts in 6 seconds...  


 fortran compiler FC is set to gfortran 
Checking if environmental Fortran compiler variable FC gfortran is equal to chosen ARCH gfortran
FC and chosen ARCH are corresponding !
rm -f *.o *.mod version.inc
make clean -C ../cx_sds_io/Release_ifort/
make[1]: Entering directory `/root/clavrx_trunk/cx_sds_io/Release_ifort'
rm -rf  ./src/cx_h5_read_mod.o ./src/cx_hdf_read_mod.o ./src/cx_hdf_write_mod.o ./src/cx_ncdf_read_mod.o ./src/cx_sds_io_mod.o ./src/cx_sds_test.o ./src/cx_sds_type_definitions_mod.o ./src/cx_sds_wri
te_mod.o ./src/readh5dataset.o  cx_sds_io 
make[1]: Leaving directory `/root/clavrx_trunk/cx_sds_io/Release_ifort'
make clean -C ../cx_dncomp/Release_ifort/
make[1]: Entering directory `/root/clavrx_trunk/cx_dncomp/Release_ifort'
rm -rf  ./src/M_kracken.o ./src/dcomp_array_loop_sub.o ./src/dcomp_forward_mod.o ./src/dcomp_lut_mod.o ./src/dcomp_lut_sds_mod.o ./src/dcomp_math_tools_mod.o ./src/dcomp_one_pixel_run_program.o ./src
/dcomp_pixel_input__define_mod.o ./src/dcomp_retrieval_mod.o ./src/dcomp_science_tools_mod.o ./src/dncomp_interface_def_mod.o ./src/dncomp_precip_mod.o ./src/dncomp_trans_atmos_mod.o ./src/file_tools.o ./src/nlcomp_array_loop_sub.o ./src/nlcomp_forward_mod.o ./src/nlcomp_retrieval_mod.o ./src/sensorname_from_wmoid.o  cx_dncomp 
make[1]: Leaving directory `/root/clavrx_trunk/cx_dncomp/Release_ifort'
make clean -C ../cx_sds_io/Release_gfortran/
make[1]: Entering directory `/root/clavrx_trunk/cx_sds_io/Release_gfortran'
rm -rf  ./src/cx_h5_read_mod.o ./src/cx_hdf_read_mod.o ./src/cx_hdf_write_mod.o ./src/cx_ncdf_read_mod.o ./src/cx_sds_io_mod.o ./src/cx_sds_test.o ./src/cx_sds_type_definitions_mod.o ./src/cx_sds_wri
te_mod.o ./src/readh5dataset.o  cx_sds_io 
make[1]: Leaving directory `/root/clavrx_trunk/cx_sds_io/Release_gfortran'
make clean -C ../cx_dncomp/Release_gfortran/
make[1]: Entering directory `/root/clavrx_trunk/cx_dncomp/Release_gfortran'
rm -rf  ./src/M_kracken.o ./src/dcomp_array_loop_sub.o ./src/dcomp_forward_mod.o ./src/dcomp_lut_mod.o ./src/dcomp_lut_sds_mod.o ./src/dcomp_math_tools_mod.o ./src/dcomp_one_pixel_run_program.o ./src
/dcomp_pixel_input__define_mod.o ./src/dcomp_retrieval_mod.o ./src/dcomp_science_tools_mod.o ./src/dncomp_interface_def_mod.o ./src/dncomp_precip_mod.o ./src/dncomp_trans_atmos_mod.o ./src/file_tools.o ./src/nlcomp_array_loop_sub.o ./src/nlcomp_forward_mod.o ./src/nlcomp_retrieval_mod.o ./src/sensorname_from_wmoid.o  cx_dncomp 
make[1]: Leaving directory `/root/clavrx_trunk/cx_dncomp/Release_gfortran'
make clean -C ../cx_sds_io/Release_gfortran/
make[1]: Entering directory `/root/clavrx_trunk/cx_sds_io/Release_gfortran'
rm -rf  ./src/cx_h5_read_mod.o ./src/cx_hdf_read_mod.o ./src/cx_hdf_write_mod.o ./src/cx_ncdf_read_mod.o ./src/cx_sds_io_mod.o ./src/cx_sds_test.o ./src/cx_sds_type_definitions_mod.o ./src/cx_sds_wri
te_mod.o ./src/readh5dataset.o  cx_sds_io 
make[1]: Leaving directory `/root/clavrx_trunk/cx_sds_io/Release_gfortran'
make clean -C ../muri/Release_gfortran/   
make[1]: Entering directory `/root/clavrx_trunk/muri/Release_gfortran'
rm -rf  ./src/aw_lib_array.o ./src/lib_array.o ./src/muri_array_loop_sub.o ./src/muri_definitions_mod.o ./src/muri_forward_mod.o ./src/muri_interface_mod.o ./src/muri_lut_mod.o ./src/muri_one_pixel_r
un.o ./src/muri_retrieval_mod.o  MURI 
make[1]: Leaving directory `/root/clavrx_trunk/muri/Release_gfortran'
make clean -C ../cx_sds_io/Release_ifort/
make[1]: Entering directory `/root/clavrx_trunk/cx_sds_io/Release_ifort'
rm -rf  ./src/cx_h5_read_mod.o ./src/cx_hdf_read_mod.o ./src/cx_hdf_write_mod.o ./src/cx_ncdf_read_mod.o ./src/cx_sds_io_mod.o ./src/cx_sds_test.o ./src/cx_sds_type_definitions_mod.o ./src/cx_sds_wri
te_mod.o ./src/readh5dataset.o  cx_sds_io 
make[1]: Leaving directory `/root/clavrx_trunk/cx_sds_io/Release_ifort'
make clean -C ../muri/Release_ifort/    
make[1]: Entering directory `/root/clavrx_trunk/muri/Release_ifort'
rm -rf  ./src/aw_lib_array.o ./src/lib_array.o ./src/muri_array_loop_sub.o ./src/muri_definitions_mod.o ./src/muri_forward_mod.o ./src/muri_interface_mod.o ./src/muri_lut_mod.o ./src/muri_one_pixel_r
un.o ./src/muri_retrieval_mod.o  MURI 
make[1]: Leaving directory `/root/clavrx_trunk/muri/Release_ifort'
rm ../clavrx_bin/clavrxorb ../clavrx_bin/comp_asc_des_level2b ../clavrx_bin/drive_subset_level2b 
rm: cannot remove `../clavrx_bin/clavrxorb': No such file or directory
rm: cannot remove `../clavrx_bin/comp_asc_des_level2b': No such file or directory
rm: cannot remove `../clavrx_bin/drive_subset_level2b': No such file or directory
make: [distclean] Error 1 (ignored)
Checking if environmental Fortran compiler variable FC gfortran is equal to chosen ARCH gfortran
FC and chosen ARCH are corresponding !
make all -C ../cx_sds_io/Release_gfortran/
make[1]: Entering directory `/root/clavrx_trunk/cx_sds_io/Release_gfortran'
Building file: ../src/cx_sds_type_definitions_mod.f90
Invoking: GNU Fortran Compiler
gfortran -I"/usr/local//include" -I"/usr/local//include/" -I"/usr/local///include/" -O2  -c -o "src/cx_sds_type_definitions_mod.o" "../src/cx_sds_type_definitions_mod.f90"
Finished building: ../src/cx_sds_type_definitions_mod.f90

Building file: ../src/readh5dataset.f90
Invoking: GNU Fortran Compiler
gfortran -I"/usr/local//include" -I"/usr/local//include/" -I"/usr/local///include/" -O2  -c -o "src/readh5dataset.o" "../src/readh5dataset.f90"
Finished building: ../src/readh5dataset.f90

Building file: ../src/cx_h5_read_mod.f90
Invoking: GNU Fortran Compiler
gfortran -I"/usr/local//include" -I"/usr/local//include/" -I"/usr/local///include/" -O2  -c -o "src/cx_h5_read_mod.o" "../src/cx_h5_read_mod.f90"
Finished building: ../src/cx_h5_read_mod.f90

Building file: ../src/cx_hdf_read_mod.f90
Invoking: GNU Fortran Compiler
gfortran -I"/usr/local//include" -I"/usr/local//include/" -I"/usr/local///include/" -O2  -c -o "src/cx_hdf_read_mod.o" "../src/cx_hdf_read_mod.f90"
Finished building: ../src/cx_hdf_read_mod.f90

Building file: ../src/cx_hdf_write_mod.f90
Invoking: GNU Fortran Compiler
gfortran -I"/usr/local//include" -I"/usr/local//include/" -I"/usr/local///include/" -O2  -c -o "src/cx_hdf_write_mod.o" "../src/cx_hdf_write_mod.f90"
Finished building: ../src/cx_hdf_write_mod.f90

Building file: ../src/cx_ncdf_read_mod.f90
Invoking: GNU Fortran Compiler
gfortran -I"/usr/local//include" -I"/usr/local//include/" -I"/usr/local///include/" -O2  -c -o "src/cx_ncdf_read_mod.o" "../src/cx_ncdf_read_mod.f90"
Finished building: ../src/cx_ncdf_read_mod.f90

Building file: ../src/cx_sds_io_mod.f90
Invoking: GNU Fortran Compiler
gfortran -I"/usr/local//include" -I"/usr/local//include/" -I"/usr/local///include/" -O2  -c -o "src/cx_sds_io_mod.o" "../src/cx_sds_io_mod.f90"
Finished building: ../src/cx_sds_io_mod.f90

Building file: ../src/cx_sds_test.f90
Invoking: GNU Fortran Compiler
gfortran -I"/usr/local//include" -I"/usr/local//include/" -I"/usr/local///include/" -O2  -c -o "src/cx_sds_test.o" "../src/cx_sds_test.f90"
Finished building: ../src/cx_sds_test.f90

Building file: ../src/cx_sds_write_mod.f90
Invoking: GNU Fortran Compiler
gfortran -I"/usr/local//include" -I"/usr/local//include/" -I"/usr/local///include/" -O2  -c -o "src/cx_sds_write_mod.o" "../src/cx_sds_write_mod.f90"
Finished building: ../src/cx_sds_write_mod.f90

Building target: cx_sds_io
Invoking: MacOS X Fortran Linker
gfortran -L"/usr/local//lib/" -L"/root/CLAVRx_2_0/ShellB3//lib" -L"/usr/local//lib/" -o "cx_sds_io"  ./src/cx_h5_read_mod.o ./src/cx_hdf_read_mod.o ./src/cx_hdf_write_mod.o ./src/cx_ncdf_read_mod.o .
/src/cx_sds_io_mod.o ./src/cx_sds_test.o ./src/cx_sds_type_definitions_mod.o ./src/cx_sds_write_mod.o ./src/readh5dataset.o   -lmfhdf -lz -ldf -lhdf5_fortran -lhdf5   -lnetcdf -ljpeg  -lnetcdff./src/cx_hdf_read_mod.o: In function `__cx_hdf_read_mod_MOD_hdf_get_obj_att':
cx_hdf_read_mod.f90:(.text+0x21e): undefined reference to `sffattr_'
cx_hdf_read_mod.f90:(.text+0x238): undefined reference to `heprnt_'
cx_hdf_read_mod.f90:(.text+0x170e): undefined reference to `sfgainfo_'
cx_hdf_read_mod.f90:(.text+0x1889): undefined reference to `sfrcatt_'
cx_hdf_read_mod.f90:(.text+0x1b4e): undefined reference to `sfrcatt_'
./src/cx_hdf_read_mod.o: In function `__cx_hdf_read_mod_MOD_hdf_get_file_sds':
cx_hdf_read_mod.f90:(.text+0x1e04): undefined reference to `sfstart_'
cx_hdf_read_mod.f90:(.text+0x1e2d): undefined reference to `sffinfo_'
cx_hdf_read_mod.f90:(.text+0x1e81): undefined reference to `sfend_'
cx_hdf_read_mod.f90:(.text+0x1e91): undefined reference to `heprnt_'
cx_hdf_read_mod.f90:(.text+0x1ea8): undefined reference to `heprnt_'
cx_hdf_read_mod.f90:(.text+0x1ebd): undefined reference to `heprnt_'
cx_hdf_read_mod.f90:(.text+0x1fda): undefined reference to `sfn2index_'
cx_hdf_read_mod.f90:(.text+0x1ffe): undefined reference to `heprnt_'
cx_hdf_read_mod.f90:(.text+0x2017): undefined reference to `sfend_'
cx_hdf_read_mod.f90:(.text+0x22f6): undefined reference to `sfselect_'
cx_hdf_read_mod.f90:(.text+0x2373): undefined reference to `sfginfo_'
cx_hdf_read_mod.f90:(.text+0x23c9): undefined reference to `sfgcal_'
cx_hdf_read_mod.f90:(.text+0x2676): undefined reference to `sfend_'
cx_hdf_read_mod.f90:(.text+0x2690): undefined reference to `heprnt_'
cx_hdf_read_mod.f90:(.text+0x276a): undefined reference to `sfrdata_'
cx_hdf_read_mod.f90:(.text+0x2f5d): undefined reference to `sfendacc_'
cx_hdf_read_mod.f90:(.text+0x32ac): undefined reference to `sfrdata_'
cx_hdf_read_mod.f90:(.text+0x32c3): undefined reference to `heprnt_'
cx_hdf_read_mod.f90:(.text+0x3b35): undefined reference to `sfrdata_'
cx_hdf_read_mod.f90:(.text+0x42aa): undefined reference to `heprnt_'
cx_hdf_read_mod.f90:(.text+0x42e0): undefined reference to `sfrdata_'
cx_hdf_read_mod.f90:(.text+0x42fe): undefined reference to `heprnt_'
./src/cx_hdf_read_mod.o: In function `__cx_hdf_read_mod_MOD_hdf_get_file_att':
cx_hdf_read_mod.f90:(.text+0x67fa): undefined reference to `sfstart_'
cx_hdf_read_mod.f90:(.text+0x681a): undefined reference to `sffinfo_'
cx_hdf_read_mod.f90:(.text+0x6d37): undefined reference to `sfend_'
cx_hdf_read_mod.f90:(.text+0x6d5d): undefined reference to `heprnt_'
cx_hdf_read_mod.f90:(.text+0x6d75): undefined reference to `heprnt_'
./src/cx_hdf_read_mod.o: In function `__cx_hdf_read_mod_MOD_hdf_get_finfo':
cx_hdf_read_mod.f90:(.text+0x6da8): undefined reference to `sfstart_'
cx_hdf_read_mod.f90:(.text+0x6dc6): undefined reference to `sffinfo_'
cx_hdf_read_mod.f90:(.text+0x6e6d): undefined reference to `sfginfo_'
cx_hdf_read_mod.f90:(.text+0x6e93): undefined reference to `sfselect_'
cx_hdf_read_mod.f90:(.text+0x6eac): undefined reference to `heprnt_'
cx_hdf_read_mod.f90:(.text+0x6eb8): undefined reference to `sfend_'
cx_hdf_read_mod.f90:(.text+0x6ee5): undefined reference to `heprnt_'
cx_hdf_read_mod.f90:(.text+0x6f9e): undefined reference to `sfgainfo_'
./src/cx_hdf_write_mod.o: In function `__cx_hdf_write_mod_MOD_close_file':
cx_hdf_write_mod.f90:(.text+0xe): undefined reference to `sfend_'
./src/cx_hdf_write_mod.o: In function `__cx_hdf_write_mod_MOD_write_sds_2d_dt4':
cx_hdf_write_mod.f90:(.text+0x158): undefined reference to `sfwdata_'
./src/cx_hdf_write_mod.o: In function `__cx_hdf_write_mod_MOD_write_sds_2d_dt2':
cx_hdf_write_mod.f90:(.text+0x258): undefined reference to `sfwdata_'
./src/cx_hdf_write_mod.o: In function `__cx_hdf_write_mod_MOD_write_sds_2d_dt1':
cx_hdf_write_mod.f90:(.text+0x358): undefined reference to `sfwdata_'
./src/cx_hdf_write_mod.o: In function `__cx_hdf_write_mod_MOD_write_sds_1d_dt4':
cx_hdf_write_mod.f90:(.text+0x42f): undefined reference to `sfwdata_'
./src/cx_hdf_write_mod.o: In function `__cx_hdf_write_mod_MOD_write_sds_1d_dt3':
cx_hdf_write_mod.f90:(.text+0x4ff): undefined reference to `sfwdata_'
./src/cx_hdf_write_mod.o:cx_hdf_write_mod.f90:(.text+0x5cf): more undefined references to `sfwdata_' follow
./src/cx_hdf_write_mod.o: In function `__cx_hdf_write_mod_MOD_compress_sds':
cx_hdf_write_mod.f90:(.text+0x65b): undefined reference to `sfschnk_'
./src/cx_hdf_write_mod.o: In function `__cx_hdf_write_mod_MOD_create_sds_2d':
cx_hdf_write_mod.f90:(.text+0x745): undefined reference to `sfcreate_'
./src/cx_hdf_write_mod.o: In function `__cx_hdf_write_mod_MOD_create_sds_1d':
cx_hdf_write_mod.f90:(.text+0x802): undefined reference to `sfcreate_'
./src/cx_hdf_write_mod.o: In function `__cx_hdf_write_mod_MOD_add_att_real':
cx_hdf_write_mod.f90:(.text+0x857): undefined reference to `sfsnatt_'
./src/cx_hdf_write_mod.o: In function `__cx_hdf_write_mod_MOD_add_att_int2':
cx_hdf_write_mod.f90:(.text+0x887): undefined reference to `sfsnatt_'
./src/cx_hdf_write_mod.o: In function `__cx_hdf_write_mod_MOD_add_att_int':
cx_hdf_write_mod.f90:(.text+0x8b7): undefined reference to `sfsnatt_'
./src/cx_hdf_write_mod.o: In function `__cx_hdf_write_mod_MOD_add_att_int1':
cx_hdf_write_mod.f90:(.text+0x8e7): undefined reference to `sfsnatt_'
./src/cx_hdf_write_mod.o: In function `__cx_hdf_write_mod_MOD_add_att_char':
cx_hdf_write_mod.f90:(.text+0x95c): undefined reference to `sfscatt_'
./src/cx_hdf_write_mod.o: In function `__cx_hdf_write_mod_MOD_copy_global_attributes':
cx_hdf_write_mod.f90:(.text+0xa3e): undefined reference to `sffinfo_'
cx_hdf_write_mod.f90:(.text+0xa82): undefined reference to `sfgainfo_'
cx_hdf_write_mod.f90:(.text+0xc41): undefined reference to `sfrnatt_'
cx_hdf_write_mod.f90:(.text+0xc9c): undefined reference to `sfsnatt_'
cx_hdf_write_mod.f90:(.text+0xcb9): undefined reference to `sfrnatt_'
cx_hdf_write_mod.f90:(.text+0xcf2): undefined reference to `sfsnatt_'
cx_hdf_write_mod.f90:(.text+0xd11): undefined reference to `sfrnatt_'
cx_hdf_write_mod.f90:(.text+0xd4a): undefined reference to `sfsnatt_'
cx_hdf_write_mod.f90:(.text+0xd69): undefined reference to `sfrnatt_'
cx_hdf_write_mod.f90:(.text+0xda2): undefined reference to `sfsnatt_'
cx_hdf_write_mod.f90:(.text+0xdc1): undefined reference to `sfrnatt_'
cx_hdf_write_mod.f90:(.text+0xdfa): undefined reference to `sfsnatt_'
./src/cx_hdf_write_mod.o: In function `__cx_hdf_write_mod_MOD_close_sds':
cx_hdf_write_mod.f90:(.text+0xa3): undefined reference to `sfendacc_'
./src/cx_hdf_write_mod.o: In function `__cx_hdf_write_mod_MOD_hdf_file_open':
cx_hdf_write_mod.f90:(.text+0x9c2): undefined reference to `sfstart_'
collect2: error: ld returned 1 exit status
make[1]: *** [cx_sds_io] Error 1

0 个答案:

没有答案