public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* relocation R_X86_64_PC32: but fPIC used
@ 2005-04-24 18:12 sean darcy
  2005-04-24 18:30 ` H. J. Lu
  0 siblings, 1 reply; 7+ messages in thread
From: sean darcy @ 2005-04-24 18:12 UTC (permalink / raw)
  To: binutils

I'm trying to build smilutils, a video conversion utility, on amd64.

g++ -shared -nostdlib
/usr/lib/gcc/x86_64-redhat-linux/4.0.0/../../../../lib64/crti.o
/usr/lib/gcc/x86_64-redhat-linux/4.0.0/crtbeginS.o  .libs/avi.o
.libs/filehandler.o .libs/frame.o .libs/playlist.o .libs/riff.o
.libs/error.o .libs/preferences.o .libs/gnome-stubs.o  -L/usr/lib64
-lgdk_pixbuf-2.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lquicktime
-lpng -ldl /usr/lib64/libdv.so -lxml2 -lz -lpthread
-L/usr/lib/gcc/x86_64-redhat-linux/4.0.0
-L/usr/lib/gcc/x86_64-redhat-linux/4.0.0/../../../../lib64
-L/usr/lib/gcc/x86_64-redhat-linux/4.0.0/../../.. -L/lib/../lib64
-L/usr/lib/../lib64 -lstdc++ -lm -lc -lgcc_s
/usr/lib/gcc/x86_64-redhat-linux/4.0.0/crtendS.o
/usr/lib/gcc/x86_64-redhat-linux/4.0.0/../../../../lib64/crtn.o  
-mtune=athlon64 -fPIC -Wl,-soname -Wl,libkinolegacy.so.0 -o
.libs/libkinolegacy.so.0.0.0
/usr/bin/ld: .libs/filehandler.o: relocation R_X86_64_PC32 against
`std::basic_string<char, std::char_traits<char>, std::allocator<char>
>::~basic_string()@@GLIBCXX_3.4' can not be used when making a shared
object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status

But they're al built with -fPIC:

 file .libs/*.o
.libs/avi.o:         ELF 64-bit LSB relocatable, AMD x86-64, version 1
(SYSV), not stripped
.libs/error.o:       ELF 64-bit LSB relocatable, AMD x86-64, version 1
(SYSV), not stripped
.libs/filehandler.o: ELF 64-bit LSB relocatable, AMD x86-64, version 1
(SYSV), not stripped
.libs/frame.o:       ELF 64-bit LSB relocatable, AMD x86-64, version 1
(SYSV), not stripped
.libs/gnome-stubs.o: ELF 64-bit LSB relocatable, AMD x86-64, version 1
(SYSV), not stripped
.libs/playlist.o:    ELF 64-bit LSB relocatable, AMD x86-64, version 1
(SYSV), not stripped
.libs/preferences.o: ELF 64-bit LSB relocatable, AMD x86-64, version 1
(SYSV), not stripped
.libs/riff.o:        ELF 64-bit LSB relocatable, AMD x86-64, version 1
(SYSV), not stripped


For example:

g++ -DHAVE_CONFIG_H -I. -I. -I.. -Wno-deprecated
-I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
-I/usr/include/gtk-2.0 -I/usr/include/libxml2 -O3 -fPIC -ffast-math
-fomit-frame-pointer -funit-at-a-time -mtune=athlon64 -ftree-vectorize
-fvisibility-inlines-hidden -I/usr/include/ffmpeg -MT filehandler.lo
-MD -MP -MF .deps/filehandler.Tpo -c filehandler.cc -fPIC -DPIC -o
.libs/filehandler.o

Puzzled.

sean

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-04-25  0:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-24 18:12 relocation R_X86_64_PC32: but fPIC used sean darcy
2005-04-24 18:30 ` H. J. Lu
2005-04-24 19:35   ` sean
     [not found]     ` <5460e33305042412557e7e0069@mail.gmail.com>
     [not found]       ` <c195ebf705042413547d664977@mail.gmail.com>
2005-04-24 21:04         ` Fwd: " sean darcy
2005-04-24 21:49           ` H. J. Lu
2005-04-25  0:55             ` sean
2005-04-25  0:57               ` sean darcy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).