Debian Bug report logs - #638645
/usr/bin/g++-4.4: relocation R_X86_64_32S against `vtable for std::ctype<wchar_t>' can not be used when making a shared object; recompile with -fPIC

version graph

Package: g++-4.4; Maintainer for g++-4.4 is Debian GCC Maintainers <debian-gcc@lists.debian.org>; Source for g++-4.4 is src:gcc-4.4.

Reported by: Mathieu Malaterre <malat@debian.org>

Date: Sat, 20 Aug 2011 14:36:05 UTC

Severity: normal

Found in version gcc-4.4/4.4.5-8

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian GCC Maintainers <debian-gcc@lists.debian.org>:
Bug#638645; Package g++-4.4. (Sat, 20 Aug 2011 14:36:07 GMT) Full text and rfc822 format available.

Acknowledgement sent to Mathieu Malaterre <mathieu.malaterre@gmail.com>:
New Bug report received and forwarded. Copy sent to Debian GCC Maintainers <debian-gcc@lists.debian.org>. (Sat, 20 Aug 2011 14:36:08 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Mathieu Malaterre <mathieu.malaterre@gmail.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: /usr/bin/g++-4.4: relocation R_X86_64_32S against `vtable for std::ctype<wchar_t>' can not be used when making a shared object; recompile with -fPIC
Date: Sat, 20 Aug 2011 16:33:17 +0200
Package: g++-4.4
Version: 4.4.5-8
Severity: normal
File: /usr/bin/g++-4.4


For some reason I cannot compile anymore using my default g++ compiler. Trying to compile the GDCM project leads to:

cd /home/mathieu/debian/debian-med/trunk/packages/gdcm/trunk/gdcm-2.0.18/debian/build-python2.6/Source/Common && /usr/bin/cmake -E cmake_link_script CMakeFiles/gdcmCommon.dir/link.txt --verbose=1
/usr/bin/c++  -fPIC -g -O2  -O3 -DNDEBUG  -shared -Wl,-soname,libgdcmCommon.so.2.0 -o ../../bin/libgdcmCommon.so.2.0.18 CMakeFiles/gdcmCommon.dir/gdcmVersion.cxx.o CMakeFiles/gdcmCommon.dir/gdcmEvent.cxx.o CMakeFiles/gdcmCommon.dir/gdcmProgressEvent.cxx.o CMakeFiles/gdcmCommon.dir/gdcmCommand.cxx.o CMakeFiles/gdcmCommon.dir/gdcmMD5.cxx.o CMakeFiles/gdcmCommon.dir/gdcmBase64.cxx.o CMakeFiles/gdcmCommon.dir/gdcmSHA1.cxx.o CMakeFiles/gdcmCommon.dir/gdcmDummyValueGenerator.cxx.o CMakeFiles/gdcmCommon.dir/gdcmCryptographicMessageSyntax.cxx.o CMakeFiles/gdcmCommon.dir/gdcmASN1.cxx.o CMakeFiles/gdcmCommon.dir/gdcmObject.cxx.o CMakeFiles/gdcmCommon.dir/gdcmSubject.cxx.o CMakeFiles/gdcmCommon.dir/gdcmDirectory.cxx.o CMakeFiles/gdcmCommon.dir/gdcmTerminal.cxx.o CMakeFiles/gdcmCommon.dir/gdcmString.cxx.o CMakeFiles/gdcmCommon.dir/gdcmFilename.cxx.o CMakeFiles/gdcmCommon.dir/gdcmFilenameGenerator.cxx.o CMakeFiles/gdcmCommon.dir/gdcmSwapCode.cxx.o CMakeFiles/gdcmCommon.dir/gdcmSystem.cxx.o CMakeFiles/gdcmCommon.dir/gdcmTrace.cxx.o CMakeFiles/gdcmCommon.dir/gdcmException.cxx.o CMakeFiles/gdcmCommon.dir/gdcmDeflateStream.cxx.o CMakeFiles/gdcmCommon.dir/gdcmByteSwap.cxx.o CMakeFiles/gdcmCommon.dir/gdcmUnpacker12Bits.cxx.o -ldl -lssl -lcrypto 
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.4.5/libstdc++.a(ctype.o): relocation R_X86_64_32S against `vtable for std::ctype<wchar_t>' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/libstdc++.a: could not read symbols: Bad value

Thanks

-- System Information:
Debian Release: 6.0.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable'), (200, 'testing'), (100, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages g++-4.4 depends on:
ii  gcc-4.4                   4.4.5-8        The GNU C compiler
ii  gcc-4.4-base              4.4.5-8        The GNU Compiler Collection (base 
ii  libc6                     2.11.2-10      Embedded GNU C Library: Shared lib
ii  libgmp3c2                 2:4.3.2+dfsg-1 Multiprecision arithmetic library
ii  libmpfr4                  3.0.0-2        multiple precision floating-point 
ii  libstdc++6-4.4-dev        4.4.5-8        The GNU Standard C++ Library v3 (d

g++-4.4 recommends no packages.

Versions of packages g++-4.4 suggests:
pn  g++-4.4-multilib              <none>     (no description available)
pn  gcc-4.4-doc                   <none>     (no description available)
pn  libstdc++6-4.4-dbg            <none>     (no description available)

-- no debconf information




Information forwarded to debian-bugs-dist@lists.debian.org, Debian GCC Maintainers <debian-gcc@lists.debian.org>:
Bug#638645; Package g++-4.4. (Tue, 29 Nov 2011 13:09:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Martin Paljak <martin@martinpaljak.net>:
Extra info received and forwarded to list. Copy sent to Debian GCC Maintainers <debian-gcc@lists.debian.org>. (Tue, 29 Nov 2011 13:09:03 GMT) Full text and rfc822 format available.

Message #10 received at 638645@bugs.debian.org (full text, mbox):

From: Martin Paljak <martin@martinpaljak.net>
To: 638645@bugs.debian.org
Subject: Quick fix.
Date: Tue, 29 Nov 2011 15:05:31 +0200
The symlink to libstdc++.so is faulty and can be fixed with:


sudo ln -sf /usr/lib/libstdc++.so.6 /usr/lib/gcc/x86_64-linux-gnu/4.4.5
/libstdc++.so


Hope this helps. But it is a bug indeed.




Changed Bug submitter to 'Mathieu Malaterre <malat@debian.org>' from 'Mathieu Malaterre <mathieu.malaterre@gmail.com>' Request was from Mathieu Malaterre <malat@debian.org> to control@bugs.debian.org. (Wed, 28 Mar 2012 13:54:59 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Apr 20 21:47:39 2014; Machine Name: beach.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.