From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6586 invoked by alias); 24 Apr 2005 18:12:12 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 6461 invoked from network); 24 Apr 2005 18:12:01 -0000 Received: from unknown (HELO wproxy.gmail.com) (64.233.184.196) by sourceware.org with SMTP; 24 Apr 2005 18:12:01 -0000 Received: by wproxy.gmail.com with SMTP id 69so1076350wra for ; Sun, 24 Apr 2005 11:12:00 -0700 (PDT) Received: by 10.54.30.65 with SMTP id d65mr1511605wrd; Sun, 24 Apr 2005 11:12:00 -0700 (PDT) Received: by 10.54.38.71 with HTTP; Sun, 24 Apr 2005 11:12:00 -0700 (PDT) Message-ID: Date: Sun, 24 Apr 2005 18:12:00 -0000 From: sean darcy Reply-To: sean darcy To: binutils@sources.redhat.com Subject: relocation R_X86_64_PC32: but fPIC used Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-SW-Source: 2005-04/txt/msg00648.txt.bz2 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=20=20 -mtune=3Dathlon64 -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, std::allocator >::~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=3Dathlon64 -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