I receive following error when make Magicks
/var/www/vhosts/host.org/Magics-2.22.7-Source/src/terralib/kernel/yyTemporal.cpp: In function âint yyparse(std::string&)â:/var/www/vhosts/host.org/Magics-2.22.7-Source/src/terralib/kernel/yyTemporal.cpp:363: warning: deprecated conversion from string constant to âchar*â/var/www/vhosts/host.org/Magics-2.22.7-Source/src/terralib/kernel/yyTemporal.cpp:486: warning: deprecated conversion from string constant to âchar*âLinking CXX shared library ../lib/libMagPlus.so/usr/bin/ld: /usr/local/lib/libnetcdf_c++.a(netcdf.o): relocation R_X86_64_32S against `vtable for NcTypedComponent' can not be used when making a shared object; recompile with -fPIC/usr/local/lib/libnetcdf_c++.a: could not read symbols: Bad valuecollect2: ld returned 1 exit statusmake[2]: *** [lib/libMagPlus.so] Error 1make[1]: *** [src/CMakeFiles/MagPlusShared.dir/all] Error 2make: *** [all] Error 2
Any idea what that could be?
Jarno Schipper
Jarno
the error is because your netcdf library has not been built with "-fPIC" and therefore cannot be used by the Magics shared library.
You need to rebuild netcdf.
In general you should not comment on these pages to raise a build issue.
You should send an email to software.support@ecmwf.int or raise the issue in JIRA via https://jira.ecmwf.int/browse/SUP
Umberto
2 Comments
Jarno Schipper
I receive following error when make Magicks
/var/www/vhosts/host.org/Magics-2.22.7-Source/src/terralib/kernel/yyTemporal.cpp: In function âint yyparse(std::string&)â:
/var/www/vhosts/host.org/Magics-2.22.7-Source/src/terralib/kernel/yyTemporal.cpp:363: warning: deprecated conversion from string constant to âchar*â
/var/www/vhosts/host.org/Magics-2.22.7-Source/src/terralib/kernel/yyTemporal.cpp:486: warning: deprecated conversion from string constant to âchar*â
Linking CXX shared library ../lib/libMagPlus.so
/usr/bin/ld: /usr/local/lib/libnetcdf_c++.a(netcdf.o): relocation R_X86_64_32S against `vtable for NcTypedComponent' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libnetcdf_c++.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [lib/libMagPlus.so] Error 1
make[1]: *** [src/CMakeFiles/MagPlusShared.dir/all] Error 2
make: *** [all] Error 2
Any idea what that could be?
Jarno Schipper
Umberto Modigliani
Jarno
the error is because your netcdf library has not been built with "-fPIC" and therefore cannot be used by the Magics shared library.
You need to rebuild netcdf.
In general you should not comment on these pages to raise a build issue.
You should send an email to software.support@ecmwf.int or raise the issue in JIRA via https://jira.ecmwf.int/browse/SUP
Umberto