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

Bug#423547: -fvisibily=hidden causes link failure against libstdc++



Package: g++-4.1
Version: 4.1.2-6
Severity: normal
Tags: patch



-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.18-4-686 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages g++-4.1 depends on:
ii  gcc-4.1                       4.1.2-6    The GNU C compiler
ii  gcc-4.1-base                  4.1.2-6    The GNU Compiler Collection (base 
ii  libc6                         2.5-7      GNU C Library: Shared libraries
ii  libstdc++6-4.1-dev            4.1.2-6    The GNU Standard C++ Library v3 (d

g++-4.1 recommends no packages.

-- no debconf information

Hello,

In gcc 4.1.2, when I use the -fvisibility option of g++, my program fails to
link against some symbols from the c++ standard library headers.

A complete description of the problem can be found at
http://bugzilla.gnome.org/show_bug.cgi?id=410710. Please read all the comment of
that bug in the link I pasted.

Note that compiling/link the very same code with a version of g++ < 4.1.2 works.

Mandriva has applied a patch that fixes the problem. That patch is at:
http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/gcc/current/SOURCES/gcc41-visibility1.patch?revision=2665&view=markup
..

They have also updated the gcc testsuites to test the regressions of that bug
at: http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/gcc/current/SOURCES/gcc41-visibility2.patch?revision=2665&view=markup

I hope this helps,

Cheers,



Reply to: