[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#287466: marked as done (g++-3.4 is confused by -L/usr/lib)



Your message dated Tue, 28 Dec 2004 17:52:22 +0100
with message-id <20041228165222.GA7294@dreamland.darkstar.lan>
and subject line Bug#287466: g++-3.4 is confused by -L/usr/lib
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; 27 Dec 2004 21:27:06 +0000
>From kronos@kronoz.cjb.net Mon Dec 27 13:27:06 2004
Return-path: <kronos@kronoz.cjb.net>
Received: from mail-relay-2.tiscali.it [213.205.33.42] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1Cj2OQ-0003ZF-00; Mon, 27 Dec 2004 13:27:06 -0800
Received: from dreamland.darkstar.lan (84.222.35.135) by mail-relay-2.tiscali.it (7.1.021.3)
        id 415D98510117F7EF; Mon, 27 Dec 2004 22:26:35 +0100
Received: by dreamland.darkstar.lan (Postfix, from userid 1000)
	id D433F964A; Mon, 27 Dec 2004 22:26:31 +0100 (CET)
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: kronos@kronoz.cjb.net
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: g++-3.4 is confused by -L/usr/lib
X-Mailer: reportbug 3.5
Date: Mon, 27 Dec 2004 22:26:31 +0100
Message-Id: <[🔎] 20041227212631.D433F964A@dreamland.darkstar.lan>
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=-4.4 required=4.0 tests=BAYES_00,HAS_PACKAGE,
	NO_REAL_NAME,RCVD_IN_SBLXBL autolearn=no 
	version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

Package: g++-3.4
Version: 3.4.3-6
Severity: normal


g++-3.4 seems to be confused by -L/usr/lib and is unable to locate part
of the standard library.
I discovered the problem while working with libxml2 (-L/usr/lib comes
from xml2-config --libs).

This is a minimal test case:

--- p.cc ---
#include <list>

int main(void) {
	std::list<int> l;

	l.push_back(1);	/* KO */
}
----

Works:
kronos:/tmp$ g++-3.4 -Wall -op p.cc

Fails:
kronos:/tmp$ g++-3.4 -L/usr/lib -Wall -op p.cc
/tmp/ccoZVXoN.o(.gnu.linkonce.t._ZNSt4listIiSaIiEE9_M_insertESt14_List_iteratorIiERKi+0x24): In function `std::list<int, std::allocator<int> >::_M_insert(std::_List_iterator<int>, int const&)':
: undefined reference to `std::_List_node_base::hook(std::_List_node_base*)'
collect2: ld returned 1 exit status

The error doesn't happen with other -L flags (eg. -L/usr/local/lib).

Note that I've another gcc installed:

ii  gcc                        3.3.5-1                    The GNU C compiler
ii  g++                        3.3.5-1                    The GNU C++ compiler
ii  libstdc++5-3.3-dev         3.3.5-5                    The GNU Standard C++ Library v3 (development files)

and this one works:

kronos:/tmp$ g++-3.3 -L/usr/lib -Wall -op p.cc

I've also tested other containers (vector, deque, stack) and AFAICS only
std::list is affected.


-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.10-rc3
Locale: LANG=en_US.ISO-8859-15, LC_CTYPE=en_US.ISO-8859-15 (charmap=ISO-8859-15)

Versions of packages g++-3.4 depends on:
ii  gcc-3.4                     3.4.3-6      The GNU C compiler
ii  gcc-3.4-base                3.4.3-6      The GNU Compiler Collection (base 
ii  libc6                       2.3.2.ds1-19 GNU C Library: Shared libraries an
ii  libstdc++6-dev              3.4.3-6      The GNU Standard C++ Library v3 (d

-- no debconf information

---------------------------------------
Received: (at 287466-done) by bugs.debian.org; 28 Dec 2004 16:52:50 +0000
>From kronos@kronoz.cjb.net Tue Dec 28 08:52:50 2004
Return-path: <kronos@kronoz.cjb.net>
Received: from mail-relay-2.tiscali.it [213.205.33.42] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1CjKaX-0006AB-00; Tue, 28 Dec 2004 08:52:50 -0800
Received: from dreamland.darkstar.lan (84.222.35.96) by mail-relay-2.tiscali.it (7.1.021.3)
        id 415D9851011A719C for 287466-done@bugs.debian.org; Tue, 28 Dec 2004 17:52:18 +0100
Received: by dreamland.darkstar.lan (Postfix, from userid 1000)
	id 93D7A135A3; Tue, 28 Dec 2004 17:52:22 +0100 (CET)
Date: Tue, 28 Dec 2004 17:52:22 +0100
From: Kronos <kronos@kronoz.cjb.net>
To: 287466-done@bugs.debian.org
Subject: Re: Bug#287466: g++-3.4 is confused by -L/usr/lib
Message-ID: <20041228165222.GA7294@dreamland.darkstar.lan>
Reply-To: kronos@kronoz.cjb.net
References: <[🔎] 20041227212631.D433F964A@dreamland.darkstar.lan> <[🔎] 16849.2854.366368.116119@gargle.gargle.HOWL>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
In-Reply-To: <[🔎] 16849.2854.366368.116119@gargle.gargle.HOWL>
User-Agent: Mutt/1.5.6+20040907i
Content-Transfer-Encoding: Quoted-Printable
Delivered-To: 287466-done@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=-4.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER,
	RCVD_IN_SBLXBL autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

Il Tue, Dec 28, 2004 at 08:28:38AM +0100, Matthias Klose ha scritto:=20
> unreproducible.

Yup. Problem was caused by a symlink in /usr/lib (created to make a
binary only app work).

Sorry for the noise.
Luca
--=20
Home: http://kronoz.cjb.net
Regole per la felicit=E0:
1. Sii soddisfatto di quello che hai.
2. Assicurati di avere tutto.



Reply to: