[Gtkradiant] SVN, Relocations

mooer at moose-mail.com mooer at moose-mail.com
Fri Feb 10 11:20:46 CST 2006


Did the SVN address change?

Also anyone ever got gtkradiant to compile on x86_64? The same relocation error is being generated on multiple boxes. Now the 32 bit equivalent does seem to compile it. 

Using: x86_64 versions of: GCC 3.4.5, glibc-2.3.6
Tried older versions, with no luck either. 

Anyone have experience with hunting down relocation issues, and want to share some advice? 

It suggests -fPIC, but I seem to get the error regardless.

scons: Building targets ...
g++ -pipe -DQ_NO_STLPORT -Wextra -Wall -Wcast-align -Wcast-qual -Wno-unused-parameter -Wextra -Wall -O2 -Wextra -Wall -g -fPIC -Ibuild/release/libs -Ilibs -Ibuild/release/include -Iinclude -c -o build/release/plugins/archivepak/plugin.os plugins/archivepak/plugin.cpp
libs/modulesystem/singletonmodule.h: In instantiation of `SingletonModule<ArchivePakAPI, NullDependencies, DefaultAPIConstructor<ArchivePakAPI, NullDependencies> >':
plugins/archivepak/plugin.cpp:33:   instantiated from here
libs/modulesystem/singletonmodule.h:59: warning: `class SingletonModule<ArchivePakAPI, NullDependencies, DefaultAPIConstructor<ArchivePakAPI, NullDependencies> >' has virtual functions but non-virtual destructor
libs/modulesystem/singletonmodule.h:24: warning: unused parameter 'dependencies'
g++ -pipe -DQ_NO_STLPORT -Wextra -Wall -Wcast-align -Wcast-qual -Wno-unused-parameter -Wextra -Wall -O2 -Wextra -Wall -g -fPIC -Ibuild/release/libs -Ilibs -Ibuild/release/include -Iinclude -c -o build/release/plugins/archivepak/archive.os plugins/archivepak/archive.cpp
In file included from plugins/archivepak/archive.cpp:11:
libs/stream/filestream.h:35: warning: `class FileInputStream' has virtual functions but non-virtual destructor
libs/stream/filestream.h:108: warning: `class FileOutputStream' has virtual functions but non-virtual destructor
In file included from libs/archivelib.h:11,
                 from plugins/archivepak/archive.cpp:15:
libs/stream/textfilestream.h:13: warning: `class TextFileInputStream' has virtual functions but non-virtual destructor
libs/stream/textfilestream.h:39: warning: `class TextFileOutputStream' has virtual functions but non-virtual destructor
In file included from plugins/archivepak/archive.cpp:15:
libs/archivelib.h:91: warning: `class StoredArchiveFile' has virtual functions but non-virtual destructor
libs/archivelib.h:130: warning: `class StoredArchiveTextFile' has virtual functions but non-virtual destructor
libs/archivelib.h:165: warning: `class DirectoryArchiveFile' has virtual functions but non-virtual destructor
libs/archivelib.h:211: warning: `class DirectoryArchiveTextFile' has virtual functions but non-virtual destructor
plugins/archivepak/archive.cpp:37: warning: `class PakArchive' has virtual functions but non-virtual destructor
g++ -pipe -DQ_NO_STLPORT -Wextra -Wall -Wcast-align -Wcast-qual -Wno-unused-parameter -Wextra -Wall -O2 -Wextra -Wall -g -fPIC -Ibuild/release/libs -Ilibs -Ibuild/release/include -Iinclude -c -o build/release/plugins/archivepak/pak.os plugins/archivepak/pak.cpp
g++ -pipe -DQ_NO_STLPORT -Wextra -Wall -Wcast-align -Wcast-qual -Wno-unused-parameter -Wextra -Wall -O2 -Wextra -Wall -g -Ibuild/release/libs -Ilibs -c -o build/release/libs/cmdlib/cmdlib.o libs/cmdlib/cmdlib.cpp
ar r build/release/libs/libcmdlib.a build/release/libs/cmdlib/cmdlib.o
ranlib build/release/libs/libcmdlib.a
ar: creating build/release/libs/libcmdlib.a
g++ -Wl,-fini,fini_stub -L. -ldl -shared -o build/release/archivepak.so build/release/plugins/archivepak/plugin.os build/release/plugins/archivepak/archive.os build/release/plugins/archivepak/pak.os -Lbuild/release/libs -Llibs -lcmdlib
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.5/../../../../x86_64-pc-linux-gnu/bin/ld: warning: creating a DT_TEXTREL in object.
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.5/../../../../x86_64-pc-linux-gnu/bin/ld: ./libstdc++.a(tree.o): relocation R_X86_64_PC32 against `std::_Rb_tree_increment(std::_Rb_tree_node_base*)' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.5/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
scons: *** [build/release/archivepak.so] Error 1
scons: building terminated because of errors.


Are you content to merely exist? Or do you truly want to 
live?

Trophy hunters can write off canned hunts and big game safaris at taxpayers'
expense - help end this cruelty loophole: http://go.care2.com/66836

http://www.Care2.com  Free e-mail. 100MB storage.  Helps nonprofits. 



More information about the Gtkradiant mailing list