LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   installing Pixie renderer x64 linking shared library error (https://www.linuxquestions.org/questions/linux-software-2/installing-pixie-renderer-x64-linking-shared-library-error-735273/)

obstinatesnooper 06-24-2009 07:55 AM

installing Pixie renderer x64 linking shared library error
 
I'm not frustrated... yet, though I'm getting there. I'm a Linux noob, though I love(d) dos and programming, so I'm only new to how Linux does it, plus I've been spoiled by Windows for too many years... anyhoo

I'm trying to compile Pixie Renderer on my (Ubuntu jaunty 9.04) machine, since they don't have a .deb for x64. It wouldn't recognize FLTK forever, but then after I installed Celtx, suddenly it does, and i don't remember which packages I had to add for Celtx, but there were some libraries. That's not my problem; at least I don't think that's my problem:

this works fine:
./configure CHOST="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -fPIC -DPIC" CXXFLAGS="${CFLAGS}" FLTK_LDFLAGS="-fPIC" --prefix=/usr/local/Pixie --enable-selfcontained
excerpted output related to my make errors:
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate


make then errors out with the following:
make all-recursive
make[1]: Entering directory `/home/jeanette/Documents/Downloads/SourceFiles/Pixie'
Making all in src
make[2]: Entering directory `/home/jeanette/Documents/Downloads/SourceFiles/Pixie/src'
Making all in common
make[3]: Entering directory `/home/jeanette/Documents/Downloads/SourceFiles/Pixie/src/common'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/jeanette/Documents/Downloads/SourceFiles/Pixie/src/common'
Making all in file
make[3]: Entering directory `/home/jeanette/Documents/Downloads/SourceFiles/Pixie/src/file'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/jeanette/Documents/Downloads/SourceFiles/Pixie/src/file'
Making all in framebuffer
make[3]: Entering directory `/home/jeanette/Documents/Downloads/SourceFiles/Pixie/src/framebuffer'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/jeanette/Documents/Downloads/SourceFiles/Pixie/src/framebuffer'
Making all in openexr
make[3]: Entering directory `/home/jeanette/Documents/Downloads/SourceFiles/Pixie/src/openexr'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/jeanette/Documents/Downloads/SourceFiles/Pixie/src/openexr'
Making all in precomp
make[3]: Entering directory `/home/jeanette/Documents/Downloads/SourceFiles/Pixie/src/precomp'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/jeanette/Documents/Downloads/SourceFiles/Pixie/src/precomp'
Making all in gui
make[3]: Entering directory `/home/jeanette/Documents/Downloads/SourceFiles/Pixie/src/gui'
/bin/bash ../../libtool --tag=CXX --mode=link g++ -module -avoid-version /usr/lib/libfltk_gl.a -lGL /usr/lib/libfltk.a -ldl -lm -lXext -lX11 -lX11 -lXext -o gui.la -rpath /usr/local/Pixie/modules gui_la-opengl.lo ../common/libpixiecommon.la -lpthread -lm -ldl

*** Warning: Linking the shared library gui.la against the
*** static library /usr/lib/libfltk_gl.a is not portable!

*** Warning: Linking the shared library gui.la against the
*** static library /usr/lib/libfltk.a is not portable!
libtool: link: g++ -shared -nostdlib /usr/lib/gcc/x86_64-linux-gnu/4.3.3/../../../../lib/crti.o /usr/lib/gcc/x86_64-linux-gnu/4.3.3/crtbeginS.o .libs/gui_la-opengl.o -Wl,-rpath -Wl,/home/jeanette/Documents/Downloads/SourceFiles/Pixie/src/common/.libs -Wl,-rpath -Wl,/usr/local/Pixie/lib /usr/lib/libfltk_gl.a -lGL /usr/lib/libfltk.a -lX11 -lXext ../common/.libs/libpixiecommon.so -lpthread -ldl -L/usr/lib/gcc/x86_64-linux-gnu/4.3.3 -L/usr/lib/gcc/x86_64-linux-gnu/4.3.3/../../../../lib -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/4.3.3/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-linux-gnu/4.3.3/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/4.3.3/../../../../lib/crtn.o -Wl,-soname -Wl,gui.so -o .libs/gui.so
/usr/bin/ld: /usr/lib/libfltk_gl.a(Fl_Gl_Window.o): relocation R_X86_64_32S against `vtable for Fl_Gl_Window' can not be used when making a shared object; recompile with -fPIC
/usr/lib/libfltk_gl.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[3]: *** [gui.la] Error 1
make[3]: Leaving directory `/home/jeanette/Documents/Downloads/SourceFiles/Pixie/src/gui'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/jeanette/Documents/Downloads/SourceFiles/Pixie/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jeanette/Documents/Downloads/SourceFiles/Pixie'
make: *** [all] Error 2

Any ideas?


All times are GMT -5. The time now is 01:30 AM.