Bug#260831: [Pkg-db-devel] Bug#260831: db3: FTBFS on amd64: Please remove '-lstdc++' from debian/rules

Matthew Wilcox Matthew Wilcox <willy@debian.org>, 260831@bugs.debian.org
Thu, 22 Jul 2004 19:59:16 +0100

On Thu, Jul 22, 2004 at 03:08:21PM +0200, Andreas Jochens wrote:
> gcc -shared -Wl,-Bsymbolic -Wl,--version-script=Versions  cxx_app.lo cxx_except.lo cxx_lock.lo cxx_log.lo cxx_mpool.lo cxx_table.lo cxx_txn.lo  -lstdc++ -L.libs/ -ldb3 -lc  -Wl,-soname -Wl,libdb3_cxx.so.3 -o .libs/libdb3_cxx.so.3.0.2
> /usr/bin/ld: /usr/lib/gcc/x86_64-linux/3.4.1/libstdc++.a(ios_init.o): relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC
> /usr/lib/gcc/x86_64-linux/3.4.1/libstdc++.a: could not read symbols: Bad value

Why does it pick up libstdc++.a instead of libstdc++.so?  Seems to me
your compiler is miscompiled / misinstalled.

"Next the statesmen will invent cheap lies, putting the blame upon 
the nation that is attacked, and every man will be glad of those
conscience-soothing falsities, and will diligently study them, and refuse
to examine any refutations of them; and thus he will by and by convince 
himself that the war is just, and will thank God for the better sleep 
he enjoys after this process of grotesque self-deception." -- Mark Twain