public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/53680] New: Link problems with static libstdc++
@ 2012-06-15  8:21 d.v.a at ngs dot ru
  2012-06-15  8:28 ` [Bug libstdc++/53680] " rguenth at gcc dot gnu.org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: d.v.a at ngs dot ru @ 2012-06-15  8:21 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53680

             Bug #: 53680
           Summary: Link problems with static libstdc++
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: d.v.a@ngs.ru
            Target: i686-pc-linux-gnu


The same problem as fixed in Bug 12595 but in Release 4.7: versioned symbols in
the static libstdc++.a


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libstdc++/53680] Link problems with static libstdc++
  2012-06-15  8:21 [Bug libstdc++/53680] New: Link problems with static libstdc++ d.v.a at ngs dot ru
@ 2012-06-15  8:28 ` rguenth at gcc dot gnu.org
  2012-06-15  8:30 ` d.v.a at ngs dot ru
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-06-15  8:28 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53680

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2012-06-15
     Ever Confirmed|0                           |1

--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-06-15 08:27:53 UTC ---
Please provide more information, your assessment it's the "same" bug might not
be true.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libstdc++/53680] Link problems with static libstdc++
  2012-06-15  8:21 [Bug libstdc++/53680] New: Link problems with static libstdc++ d.v.a at ngs dot ru
  2012-06-15  8:28 ` [Bug libstdc++/53680] " rguenth at gcc dot gnu.org
@ 2012-06-15  8:30 ` d.v.a at ngs dot ru
  2012-06-15  8:34 ` d.v.a at ngs dot ru
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: d.v.a at ngs dot ru @ 2012-06-15  8:30 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53680

--- Comment #2 from __vic <d.v.a at ngs dot ru> 2012-06-15 08:30:06 UTC ---
$ uname -a
Linux m246 2.6.18-194.26.1.el5 #1 SMP Tue Nov 9 12:54:40 EST 2010 i686 i686
i386 GNU/Linux
$ cat /etc/*-release
CentOS release 5.4 (Final)

When building on

$ uname -a
Linux jansmb 2.6.9-103.ELsmp #1 SMP Fri Dec 9 04:31:51 EST 2011 i686 i686 i386
GNU/Linux
$ cat /etc/*-release
CentOS release 4.9 (Final)

it's all right


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libstdc++/53680] Link problems with static libstdc++
  2012-06-15  8:21 [Bug libstdc++/53680] New: Link problems with static libstdc++ d.v.a at ngs dot ru
  2012-06-15  8:28 ` [Bug libstdc++/53680] " rguenth at gcc dot gnu.org
  2012-06-15  8:30 ` d.v.a at ngs dot ru
@ 2012-06-15  8:34 ` d.v.a at ngs dot ru
  2012-06-15  8:57 ` d.v.a at ngs dot ru
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: d.v.a at ngs dot ru @ 2012-06-15  8:34 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53680

--- Comment #3 from __vic <d.v.a at ngs dot ru> 2012-06-15 08:34:13 UTC ---
When I'm trying link libstdc++.a statically to my .so I see messages like:
"undefined versioned symbol name std::defer_lock@@GLIBCPP_3...."

$ nm libstdc++.a | grep @

shows me that archive contains versioned symbols. Do you need the entire list?


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libstdc++/53680] Link problems with static libstdc++
  2012-06-15  8:21 [Bug libstdc++/53680] New: Link problems with static libstdc++ d.v.a at ngs dot ru
                   ` (2 preceding siblings ...)
  2012-06-15  8:34 ` d.v.a at ngs dot ru
@ 2012-06-15  8:57 ` d.v.a at ngs dot ru
  2012-06-15 10:22 ` [Bug libstdc++/53680] Versioned symbols in " d.v.a at ngs dot ru
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: d.v.a at ngs dot ru @ 2012-06-15  8:57 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53680

--- Comment #4 from __vic <d.v.a at ngs dot ru> 2012-06-15 08:57:21 UTC ---
Note: undocumented configure option --disable-symvers helps but I think
building with default parameters must work properly


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libstdc++/53680] Versioned symbols in static libstdc++
  2012-06-15  8:21 [Bug libstdc++/53680] New: Link problems with static libstdc++ d.v.a at ngs dot ru
                   ` (3 preceding siblings ...)
  2012-06-15  8:57 ` d.v.a at ngs dot ru
@ 2012-06-15 10:22 ` d.v.a at ngs dot ru
  2012-06-15 10:25 ` redi at gcc dot gnu.org
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: d.v.a at ngs dot ru @ 2012-06-15 10:22 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53680

--- Comment #5 from __vic <d.v.a at ngs dot ru> 2012-06-15 10:22:36 UTC ---
The exact description:

$ g++ -o formats/alcatel_alm9_decoder.fmt -shared -Llib -static-libgcc  -O3
-Wl,-s -Wl,--no-undefined src/alcatel_alm9_decoder.o formats.a decoder.a
-ljanuary_tools -ljanuary
/usr/bin/ld: formats/alcatel_alm9_decoder.fmt: undefined versioned symbol name
_ZSt10adopt_lock@@GLIBCXX_3.4.11
/usr/bin/ld: failed to set dynamic section sizes: Bad value
collect2: error: ld returned 1 exit status


$ nm lib/libstdc++.a | grep adopt
00000000 B _ZN9__gnu_cxx10adopt_lockE
00000000 B _ZSt10adopt_lock@@GLIBCXX_3.4.11


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libstdc++/53680] Versioned symbols in static libstdc++
  2012-06-15  8:21 [Bug libstdc++/53680] New: Link problems with static libstdc++ d.v.a at ngs dot ru
                   ` (4 preceding siblings ...)
  2012-06-15 10:22 ` [Bug libstdc++/53680] Versioned symbols in " d.v.a at ngs dot ru
@ 2012-06-15 10:25 ` redi at gcc dot gnu.org
  2012-06-15 10:29 ` redi at gcc dot gnu.org
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: redi at gcc dot gnu.org @ 2012-06-15 10:25 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53680

--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-06-15 10:25:32 UTC ---
(In reply to comment #4)
> Note: undocumented configure option --disable-symvers helps but I think
> building with default parameters must work properly

It's not undocumented
http://gcc.gnu.org/onlinedocs/libstdc++/manual/configure.html


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libstdc++/53680] Versioned symbols in static libstdc++
  2012-06-15  8:21 [Bug libstdc++/53680] New: Link problems with static libstdc++ d.v.a at ngs dot ru
                   ` (5 preceding siblings ...)
  2012-06-15 10:25 ` redi at gcc dot gnu.org
@ 2012-06-15 10:29 ` redi at gcc dot gnu.org
  2012-06-15 10:30 ` d.v.a at ngs dot ru
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: redi at gcc dot gnu.org @ 2012-06-15 10:29 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53680

--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-06-15 10:29:36 UTC ---
isn't this PR 52689 ?


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libstdc++/53680] Versioned symbols in static libstdc++
  2012-06-15  8:21 [Bug libstdc++/53680] New: Link problems with static libstdc++ d.v.a at ngs dot ru
                   ` (6 preceding siblings ...)
  2012-06-15 10:29 ` redi at gcc dot gnu.org
@ 2012-06-15 10:30 ` d.v.a at ngs dot ru
  2012-06-15 10:33 ` d.v.a at ngs dot ru
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: d.v.a at ngs dot ru @ 2012-06-15 10:30 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53680

--- Comment #8 from __vic <d.v.a at ngs dot ru> 2012-06-15 10:30:30 UTC ---
(In reply to comment #6)
> (In reply to comment #4)
> > Note: undocumented configure option --disable-symvers helps but I think
> > building with default parameters must work properly
> 
> It's not undocumented
> http://gcc.gnu.org/onlinedocs/libstdc++/manual/configure.html

Ok. But still. It must not be a mandatory option to build correct static lib


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libstdc++/53680] Versioned symbols in static libstdc++
  2012-06-15  8:21 [Bug libstdc++/53680] New: Link problems with static libstdc++ d.v.a at ngs dot ru
                   ` (7 preceding siblings ...)
  2012-06-15 10:30 ` d.v.a at ngs dot ru
@ 2012-06-15 10:33 ` d.v.a at ngs dot ru
  2012-06-15 10:36 ` d.v.a at ngs dot ru
  2012-06-15 10:38 ` redi at gcc dot gnu.org
  10 siblings, 0 replies; 12+ messages in thread
From: d.v.a at ngs dot ru @ 2012-06-15 10:33 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53680

--- Comment #9 from __vic <d.v.a at ngs dot ru> 2012-06-15 10:33:13 UTC ---
(In reply to comment #7)
> isn't this PR 52689 ?

Probably it is.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libstdc++/53680] Versioned symbols in static libstdc++
  2012-06-15  8:21 [Bug libstdc++/53680] New: Link problems with static libstdc++ d.v.a at ngs dot ru
                   ` (8 preceding siblings ...)
  2012-06-15 10:33 ` d.v.a at ngs dot ru
@ 2012-06-15 10:36 ` d.v.a at ngs dot ru
  2012-06-15 10:38 ` redi at gcc dot gnu.org
  10 siblings, 0 replies; 12+ messages in thread
From: d.v.a at ngs dot ru @ 2012-06-15 10:36 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53680

--- Comment #10 from __vic <d.v.a at ngs dot ru> 2012-06-15 10:36:24 UTC ---
When 4.7.1 will be released?


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libstdc++/53680] Versioned symbols in static libstdc++
  2012-06-15  8:21 [Bug libstdc++/53680] New: Link problems with static libstdc++ d.v.a at ngs dot ru
                   ` (9 preceding siblings ...)
  2012-06-15 10:36 ` d.v.a at ngs dot ru
@ 2012-06-15 10:38 ` redi at gcc dot gnu.org
  10 siblings, 0 replies; 12+ messages in thread
From: redi at gcc dot gnu.org @ 2012-06-15 10:38 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53680

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |DUPLICATE

--- Comment #11 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-06-15 10:37:41 UTC ---
yesterday

http://gcc.gnu.org/gcc-4.7/

marking as dup, please reopen if 4.7.1 doesn't fix it

*** This bug has been marked as a duplicate of bug 52689 ***


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2012-06-15 10:38 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-15  8:21 [Bug libstdc++/53680] New: Link problems with static libstdc++ d.v.a at ngs dot ru
2012-06-15  8:28 ` [Bug libstdc++/53680] " rguenth at gcc dot gnu.org
2012-06-15  8:30 ` d.v.a at ngs dot ru
2012-06-15  8:34 ` d.v.a at ngs dot ru
2012-06-15  8:57 ` d.v.a at ngs dot ru
2012-06-15 10:22 ` [Bug libstdc++/53680] Versioned symbols in " d.v.a at ngs dot ru
2012-06-15 10:25 ` redi at gcc dot gnu.org
2012-06-15 10:29 ` redi at gcc dot gnu.org
2012-06-15 10:30 ` d.v.a at ngs dot ru
2012-06-15 10:33 ` d.v.a at ngs dot ru
2012-06-15 10:36 ` d.v.a at ngs dot ru
2012-06-15 10:38 ` redi at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).