public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: sean darcy <seandarcy2@gmail.com>
To: binutils@sources.redhat.com
Subject: relocation R_X86_64_PC32: but fPIC used
Date: Sun, 24 Apr 2005 18:12:00 -0000	[thread overview]
Message-ID: <c195ebf70504241112c4e39b4@mail.gmail.com> (raw)

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

             reply	other threads:[~2005-04-24 18:12 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-24 18:12 sean darcy [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c195ebf70504241112c4e39b4@mail.gmail.com \
    --to=seandarcy2@gmail.com \
    --cc=binutils@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).