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

Andreas Jochens Andreas Jochens <aj@andaco.de>, 260831@bugs.debian.org
Thu, 22 Jul 2004 21:40:00 +0200

On 04-Jul-22 19:59, Matthew Wilcox wrote:
> 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.

Thank your for your reply to my bug report.

The 'libstdc++.a' instead of 'libstdc++.so' is a gcc problem which will 
be fixed in a newly uploaded version today, if I understand the 
gcc changelog correctly.

The db3 package will not FTBFS any longer if the compiler problem is fixed. 
However, the '-lstdc++' still does not seem to be necessary.

Andreas Jochens