Error while compiling Octave with GCC

Deadly 提交于 2020-04-30 07:24:47

问题


While trying to compile Octave 4.0.3 using gcc 4.2.8 I get the following error

make[2]: Entering directory `/local/home/qa/joseph/app_porting/octave-porting/try_gcc_5.4.0/build_octave/src'
  GEN      mkoctfile.cc
  CXX      mkoctfile.o
  CXXLD    mkoctfile
  CC       octave-display-available.o
  GEN      main.cc
  CXX      octave-main.o
  CXXLD    octave
  CXX      main-cli.o
  CXXLD    octave-cli
../libinterp/.libs/liboctinterp.so: error: undefined reference to 'gzungetc'
../libinterp/.libs/liboctinterp.so: error: undefined reference to 'gzwrite'
../libinterp/.libs/liboctinterp.so: error: undefined reference to 'gzread'
../libinterp/.libs/liboctinterp.so: error: undefined reference to 'gzgetc'
../libinterp/.libs/liboctinterp.so: error: undefined reference to 'gzflush'
../libinterp/.libs/liboctinterp.so: error: undefined reference to 'gzputc'
../libinterp/.libs/liboctinterp.so: error: undefined reference to 'gzclose'
../libinterp/.libs/liboctinterp.so: error: undefined reference to 'gztell'
../libinterp/.libs/liboctinterp.so: error: undefined reference to 'gzseek'
../libinterp/.libs/liboctinterp.so: error: undefined reference to 'gzdopen'
../libinterp/.libs/liboctinterp.so: error: undefined reference to 'compress'
../libinterp/.libs/liboctinterp.so: error: undefined reference to 'uncompress'
../libinterp/.libs/liboctinterp.so: error: undefined reference to 'gzsetparams'
../libinterp/.libs/liboctinterp.so: error: undefined reference to 'gzopen'
collect2: error: ld returned 1 exit status
make[2]: *** [octave-cli] Error 1
make[2]: Leaving directory `/local/home/qa/joseph/app_porting/octave-porting/try_gcc_5.4.0/build_octave/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/local/home/qa/joseph/app_porting/octave-porting/try_gcc_5.4.0/build_octave'
make: *** [all] Error 2

Am I missing any dependencies here? I have tried installing the following dependencies libpng-dev,zlib1g-dev but the error persists.

来源:https://stackoverflow.com/questions/39228019/error-while-compiling-octave-with-gcc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!