LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-24-2009, 07:55 AM   #1
obstinatesnooper
LQ Newbie
 
Registered: Jun 2009
Distribution: Ubuntu Jaunty x64, laptop: Ubuntu Hardy (x32)
Posts: 2

Rep: Reputation: 0
Question 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?

Last edited by obstinatesnooper; 06-24-2009 at 08:00 AM.
 
  


Reply

Tags
amd64, jaunty



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linking an executable to a shared library (C++) lennyk Programming 4 06-25-2009 04:45 AM
Need help linking shared library g++ 4.1.2 x86_64 UlamTheLucky Programming 5 09-23-2007 04:55 PM
LINUX - linking archive (static library) with shared (dynamic) library gurkama Programming 5 03-04-2007 11:11 PM
strange linking error -- can not find shared library George2 Programming 1 07-10-2006 11:24 AM
Linking a platform independent shared library rozeboom Programming 3 11-18-2003 02:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration