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

Debian Bug Tracking System owner@bugs.debian.org
Sat, 29 Jan 2005 15:03:09 -0800


Your message dated Sat, 29 Jan 2005 23:56:01 +0100
with message-id <20050129225601.GX22702@mails.so.argh.org>
and subject line Patch already included
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 22 Jul 2004 13:08:32 +0000
>From aj@andaco.de Thu Jul 22 06:08:32 2004
Return-path: <aj@andaco.de>
Received: from c214235.adsl.hansenet.de (localhost) [213.39.214.235] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1BndJH-00079q-00; Thu, 22 Jul 2004 06:08:31 -0700
Received: from aj by localhost with local (Exim 4.34)
	id 1BndJ7-0004N2-Qi; Thu, 22 Jul 2004 15:08:21 +0200
To: Debian Bug Tracking System <submit@bugs.debian.org>
From: Andreas Jochens <aj@andaco.de>
Subject: db3: FTBFS on amd64: Please remove '-lstdc++' from debian/rules
Message-Id: <E1BndJ7-0004N2-Qi@localhost>
Date: Thu, 22 Jul 2004 15:08:21 +0200
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

Package: db3
Severity: normal
Tags: patch

When building 'db3' with gcc-3.4 on amd64 I get the following error:

mv -f .libs/cxx_table.lo cxx_table.lo
/bin/sh ./libtool --mode=compile x86_64-linux-g++ -c -I. -I../dist/../include -D_REENTRANT  -fexceptions -D_GNU_SOURCE ../dist/../cxx/cxx_txn.cpp
rm -f .libs/cxx_txn.lo
x86_64-linux-g++ -c -I. -I../dist/../include -D_REENTRANT -fexceptions -D_GNU_SOURCE ../dist/../cxx/cxx_txn.cpp  -fPIC -DPIC -o .libs/cxx_txn.lo
In file included from /usr/include/c++/3.4/backward/iostream.h:31,
                 from ../dist/../include/db_cxx.h:52,
                 from ../dist/../cxx/cxx_txn.cpp:16:
/usr/include/c++/3.4/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
x86_64-linux-g++ -c -I. -I../dist/../include -D_REENTRANT -fexceptions -D_GNU_SOURCE ../dist/../cxx/cxx_txn.cpp -o cxx_txn.o >/dev/null 2>&1
mv -f .libs/cxx_txn.lo cxx_txn.lo
/bin/sh ./libtool --mode=link x86_64-linux-g++ -version-info 3:2 -rpath /usr/lib -o libdb3_cxx.la \
    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
rm -fr .libs/libdb3_cxx.la .libs/libdb3_cxx.* .libs/libdb3_cxx.*
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
collect2: ld returned 1 exit status
make[1]: *** [libdb3_cxx.la] Error 1
make[1]: Leaving directory `/db3-3.2.9/build-tree/db-3.2.9/build_unix'
make: *** [stampdir/build-stamp] Error 2

With the attached patch 'db3' can be compiled using gcc-3.4 on amd64.

The patch removes an occurrence of '-lstdc++' from debian/rules which
causes libstdc++ to be linked in statically. This does not work on amd64 
because libstdc++.a is not compiled with -fPIC and is thus not allowed
to be used to create a shared library. 

The '-lstdc++' should not be necessary at all. It seems that it was 
introduced to fix an old libtool bug which must have been fixed long ago.

Regards
Andreas Jochens

diff -urN ../tmp-orig/db3-3.2.9/debian/rules ./debian/rules
--- ../tmp-orig/db3-3.2.9/debian/rules	2004-07-22 14:36:39.198719302 +0200
+++ ./debian/rules	2004-07-22 14:32:50.782816207 +0200
@@ -34,7 +34,7 @@
 
 $(STAMP_DIR)/pre-build-stamp: $(unpacked) $(patched) $(BUILD_TREE)/dist/configure
 	dh_testdir
-	cd $(BUILD_TREE)/build_unix && CFLAGS="$(CFLAGS)" CC="$(CC)" JAVAC="gcj -C" LIBXSO_LIBS="-lstdc++" \
+	cd $(BUILD_TREE)/build_unix && CFLAGS="$(CFLAGS)" CC="$(CC)" JAVAC="gcj -C" \
 		../dist/configure $(configure_args) --host=$(DEB_BUILD_GNU_TYPE)
 	touch $(STAMP_DIR)/pre-build-stamp
 

---------------------------------------
Received: (at 260831-done) by bugs.debian.org; 29 Jan 2005 22:56:11 +0000
>From aba@not.so.argh.org Sat Jan 29 14:56:11 2005
Return-path: <aba@not.so.argh.org>
Received: from mail-out.m-online.net [212.18.0.9] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1Cv1Vj-0003h8-00; Sat, 29 Jan 2005 14:56:11 -0800
Received: from mail.m-online.net (svr20.m-online.net [192.168.3.148])
	by mail-out.m-online.net (Postfix) with ESMTP id 671B55299
	for <260831-done@bugs.debian.org>; Sat, 29 Jan 2005 23:56:10 +0100 (CET)
Received: from sol.so.argh.org (host-82-135-67-139.customer.m-online.net [82.135.67.139])
	by mail.m-online.net (Postfix) with ESMTP id 573484432E
	for <260831-done@bugs.debian.org>; Sat, 29 Jan 2005 23:56:10 +0100 (CET)
Received: from aba by sol.so.argh.org with local (Exim 4.22 #1 (Debian) [+prerelease])
	id 1Cv1VZ-0002nP-Uq
	for <260831-done@bugs.debian.org>; Sat, 29 Jan 2005 23:56:01 +0100
Date: Sat, 29 Jan 2005 23:56:01 +0100
From: Andreas Barth <aba@not.so.argh.org>
To: 260831-done@bugs.debian.org
Subject: Patch already included
Message-ID: <20050129225601.GX22702@mails.so.argh.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
X-Editor: Vim http://www.vim.org/
User-Agent: Mutt/1.5.6i
Delivered-To: 260831-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no 
	version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

Hi,

this patch is included in the current version, so I'm closing this bug.

Thanks for reporting it.


Cheers,
Andi