Ticket #999 (closed bug: worksforme)

Opened 3 years ago

Last modified 3 years ago

Compiling on Linux fails

Reported by: mitar Owned by:
Milestone: 2.6 Component: library
Severity: minor Keywords:
Cc: Blocking:
Blocked By:


Compiling on Linux (Debian) with GCC 4.4.5 fails with:

/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

Change History

comment:1 Changed 3 years ago by janez

Why me?! I have nothing to do with that, but I suspect that it is related to removing the -fPIC option, which was done some time ago (not by me) for conformance with some Debian policy.

comment:2 Changed 3 years ago by janez

  • Owner janez deleted
  • Status changed from new to assigned

comment:3 Changed 3 years ago by mitar

You are simply just a default for core component.

comment:4 Changed 3 years ago by mitar

  • Status changed from assigned to closed
  • Resolution set to worksforme

Seems the reason was a broken system. I had a Debian stable (squeeze) with some packages from testing. One of those upgraded packages was also libstdc++6 package which in 4.6 version does not have libstdc++.so.6 file in /usr/lib/ but in /usr/lib/x86_64-linux-gnu/. But GCC from stable still expected it to be in /usr/lib/. Downgrading libstdc++6 packages solved the problem:

apt-get install libstdc++6=4.4.5-8
Note: See TracTickets for help on using tickets.