Error in the building with the new python scripts(install_ocssw.py)

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
vimal459
Posts: 16
Joined: Tue Mar 13, 2018 12:14 am America/New_York
Answers: 0

Error in the building with the new python scripts(install_ocssw.py)

by vimal459 » Tue Feb 18, 2020 7:12 am America/New_York

Dear George,
As per your suggestion(/https://oceancolor.gsfc.nasa.gov/forum/oceancolor/topic_show.pl?tid=11724%5d), we updated the processor. Its working fine, but we couldn't able to build it. While giving $make cmd in the building folder we get the following error.

[ 19%] Linking C shared library libbilio.so
[ 19%] Built target bilio
[ 19%] Linking C shared library libh5io.so
[ 19%] Built target h5io
[ 19%] Linking CXX shared library libfiletype.so
[ 19%] Built target filetype
[ 19%] Linking CXX executable vcalmerge
CMakeFiles/vcalmerge.dir/read_pixel_anc_file.cpp.o: In function `read_pixel_anc_file':
read_pixel_anc_file.cpp:(.text+0xaa): undefined reference to `netCDF::NcFile::open(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, netCDF::NcFile::FileMode)'
read_pixel_anc_file.cpp:(.text+0x137): undefined reference to `netCDF::NcGroup::getAtt(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, netCDF::NcGroup::Location) const'
read_pixel_anc_file.cpp:(.text+0x14c): undefined reference to `netCDF::NcAtt::getValues(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&) const'
read_pixel_anc_file.cpp:(.text+0x201): undefined reference to `netCDF::NcGroup::getDim(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, netCDF::NcGroup::Location) const'
read_pixel_anc_file.cpp:(.text+0x2aa): undefined reference to `netCDF::NcGroup::getDim(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, netCDF::NcGroup::Location) const'
read_pixel_anc_file.cpp:(.text+0x348): undefined reference to `netCDF::NcGroup::getVar(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, netCDF::NcGroup::Location) const'
read_pixel_anc_file.cpp:(.text+0x3d8): undefined reference to `netCDF::NcGroup::getVar(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, netCDF::NcGroup::Location) const'
read_pixel_anc_file.cpp:(.text+0x46a): undefined reference to `netCDF::NcGroup::getVar(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, netCDF::NcGroup::Location) const'
read_pixel_anc_file.cpp:(.text+0x4f1): undefined reference to `netCDF::NcGroup::getVar(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, netCDF::NcGroup::Location) const'
read_pixel_anc_file.cpp:(.text+0x5be): undefined reference to `netCDF::NcGroup::getVar(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, netCDF::NcGroup::Location) const'
CMakeFiles/vcalmerge.dir/read_pixel_anc_file.cpp.o:read_pixel_anc_file.cpp:(.text+0x639): more undefined references to `netCDF::NcGroup::getVar(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, netCDF::NcGroup::Location) const' follow
CMakeFiles/vcalmerge.dir/polcor_hawkeye.cpp.o: In function `polcor_hawkeye':
polcor_hawkeye.cpp:(.text+0x2e6): undefined reference to `netCDF::NcFile::NcFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, netCDF::NcFile::FileMode)'
polcor_hawkeye.cpp:(.text+0x354): undefined reference to `netCDF::NcGroup::getVar(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, netCDF::NcGroup::Location) const'
polcor_hawkeye.cpp:(.text+0x44d): undefined reference to `netCDF::NcGroup::getVar(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, netCDF::NcGroup::Location) const'
CMakeFiles/vcalmerge.dir/lonlat2pixline.cpp.o: In function `lonlat2pixline':
lonlat2pixline.cpp:(.text+0x22bc): undefined reference to `netCDF::NcFile::open(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, netCDF::NcFile::FileMode)'
lonlat2pixline.cpp:(.text+0x2315): undefined reference to `netCDF::NcGroup::getVar(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, netCDF::NcGroup::Location) const'
lonlat2pixline.cpp:(.text+0x2373): undefined reference to `netCDF::NcGroup::getVar(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, netCDF::NcGroup::Location) const'
lonlat2pixline.cpp:(.text+0x23cc): undefined reference to `netCDF::NcVar::getAtt(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const'
lonlat2pixline.cpp:(.text+0x2443): undefined reference to `netCDF::NcVar::getAtt(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const'
CMakeFiles/vcalmerge.dir/get_mld.cpp.o: In function `get_coords(netCDF::NcFile*, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >)':
get_mld.cpp:(.text+0x8ec): undefined reference to `netCDF::NcGroup::getCoordVar(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, netCDF::NcDim&, netCDF::NcVar&, netCDF::NcGroup::Location) const'
CMakeFiles/vcalmerge.dir/get_mld.cpp.o: In function `init_mld_nc(char*, mld_info_struct*)':
get_mld.cpp:(.text+0xc84): undefined reference to `netCDF::NcFile::NcFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, netCDF::NcFile::FileMode)'
get_mld.cpp:(.text+0xcfd): undefined reference to `netCDF::NcGroup::getVar(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, netCDF::NcGroup::Location) const'
CMakeFiles/vcalmerge.dir/l1_seabass.cpp.o: In function `_GLOBAL__sub_I_open_seabass':
l1_seabass.cpp:(.text.startup+0x106): undefined reference to `boost::system::generic_category()'
l1_seabass.cpp:(.text.startup+0x10b): undefined reference to `boost::system::generic_category()'
l1_seabass.cpp:(.text.startup+0x110): undefined reference to `boost::system::system_category()'
collect2: error: ld returned 1 exit status
src/l2gen/CMakeFiles/vcalmerge.dir/build.make:5172: recipe for target 'src/l2gen/vcalmerge' failed
make[2]: *** [src/l2gen/vcalmerge] Error 1
CMakeFiles/Makefile2:2790: recipe for target 'src/l2gen/CMakeFiles/vcalmerge.dir/all' failed
make[1]: *** [src/l2gen/CMakeFiles/vcalmerge.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2

Kindly help me to rectify this issue.

Tags:

OB SeaDAS - dshea
Subject Matter Expert
Subject Matter Expert
Posts: 259
Joined: Thu Mar 05, 2009 10:25 am America/New_York
Answers: 0
Been thanked: 2 times

Error in the building with the new python scripts(install_ocssw.py)

by OB SeaDAS - dshea » Tue Feb 18, 2020 8:53 am America/New_York

Did you rebuild the 3rd party libraries in $OCSSWROOT/opt/src first?

don

vimal459
Posts: 16
Joined: Tue Mar 13, 2018 12:14 am America/New_York
Answers: 0

Error in the building with the new python scripts(install_ocssw.py)

by vimal459 » Tue Feb 18, 2020 9:12 am America/New_York

ya! after rebuild now its working fine. Thanks for your kind reply

Vimal

Post Reply