Menu

#3 compile error message

open
nobody
5
2006-03-13
2006-03-13
Anonymous
No

mkoctfile -v op_com.o octplot_command.o -o
octplot_command.oct
x86_64-pc-linux-gnu-g++ -shared -Wl,-Bsymbolic -o
octplot_command.oct op_com.o octplot_command.o
-L/usr/lib64/octave-2.1.69 -loctinterp -loctave -lcruft
-lz -lfftw3 -lreadline -lncurses -ldl -lm
-L/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3
-L/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/lib
-L/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../lib64
-L/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../..
-L/lib/../lib64 -L/usr/lib/../lib64 -lz -lfrtbegin
-lg2c -lm -lgcc_s
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld:
op_com.o: relocation R_X86_64_32 against `a local
symbol' can not be used when making a shared object;
recompile with -fPIC
op_com.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [octplot_command.oct] Error 1

Discussion

  • Scott Dylewski

    Scott Dylewski - 2006-10-12

    Logged In: YES
    user_id=954317

    I'm getting a similar error when compiling under fedora 5:

    [root@playa octplot-0.3.9]# ./configure
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking whether make sets $(MAKE)... (cached) yes
    checking for ranlib... ranlib
    checking whether ln -s works... yes
    checking for rm... rm
    checking for gcc... gcc
    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 gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking for style of include used by make... GNU
    checking dependency style of gcc... gcc3
    checking for g++... g++
    checking whether we are using the GNU C++ compiler... yes
    checking whether g++ accepts -g... yes
    checking dependency style of g++... gcc3
    checking how to run the C preprocessor... gcc -E
    checking for grep that handles long lines and -e... /bin/grep
    checking for egrep... /bin/grep -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking ieeefp.h usability... no
    checking ieeefp.h presence... no
    checking for ieeefp.h... no
    checking for mkoctfile... mkoctfile
    /usr/bin/ld: cannot find -lfrtbegin
    collect2: ld returned 1 exit status
    configure: error: Could not run mkoctfile

     
  • Scott Dylewski

    Scott Dylewski - 2006-10-12

    Logged In: YES
    user_id=954317

    I was able to fix this problem by locating all versions of
    "mkoctfile"... I found that I had old versions laying around
    on my system. When I deleted the old versions, the compile
    worked great!

     
  • Shai Ayal

    Shai Ayal - 2006-10-14

    Logged In: YES
    user_id=136223

    to sdylewski, I'm glad I heled you clean up your system :)

    For the original poster:
    what version of octplot & what version of octave are you using?

     
  • Nobody/Anonymous

    Logged In: NO

    I am using cygwin for MS windows to compile octplot-0.9.3
    with gcc-3.3.3, fltk-1.1.8, octave-2.1.73, freetype-9.7.3.

    Previously, I install the octave-2.1.73 from http://cygwin.cybermirror.org
    I met the same problem with you.
    I think the problem is related to your Download Site.

    However, after I reinstall octave-2.1.73 from the following site ftp://sourceware.mirrors.tds.net
    it is now able to compile.

    Try to change your download site. It may help.

    ---------------------------------------------------------
    $ ./configure
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking whether make sets $(MAKE)... (cached) yes
    checking for ranlib... ranlib
    checking whether ln -s works... yes
    checking for rm... rm
    checking for gcc... gcc
    checking for C compiler default output file name... a.exe
    checking whether the C compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables... .exe
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking for style of include used by make... GNU
    checking dependency style of gcc... gcc3
    checking for g++... g++
    checking whether we are using the GNU C++ compiler... yes
    checking whether g++ accepts -g... yes
    checking dependency style of g++... gcc3
    checking how to run the C preprocessor... gcc -E
    checking for grep that handles long lines and -e... /usr/bin/grep
    checking for egrep... /usr/bin/grep -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking ieeefp.h usability... yes
    checking ieeefp.h presence... yes
    checking for ieeefp.h... yes
    checking for mkoctfile... mkoctfile
    checking for octave... octave
    checking for fltk-config... /usr/bin/fltk-config
    checking for OpenGL support in fltk... yes
    checking for freetype-config... /usr/bin/freetype-config
    checking for FreeType -- version >= 9.0.3... yes
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating src/Makefile
    config.status: creating src/tests/Makefile
    config.status: creating fonts/Makefile
    config.status: creating demos/Makefile
    config.status: creating src/toggle_octplot.m
    config.status: creating config.h
    config.status: executing depfiles commands

    ===================================================================

    octplot files will install into:
    /usr/lib/octave/2.1.73/site/octplot-0.3.9

    toggle_octplot.m will install into:
    /usr/share/octave/2.1.73/site/m/octplot

    octplot is configured with:
    fltk: version 1.1.8 with OpenGl support
    octave: octave (version 2.1.73)
    mkoctfile: mkoctfile for Octave 2.1.73
    femtoTeX: work in progress ...

     
  • Nobody/Anonymous

    Logged In: NO

    If the readline library is not installed, it will also have similar compile error message.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.