We have several libraries that we load dynamically (dlopen), and from which we
use only one symbol, in which we use the same variable (char **) in the cpp
files. These symbols are never shared between libraries, but on this version
(4.2.1) of gcc, we experience big problems, because these homonym variables are
shared between the libraries : it looks like is we get the value of the first
dlopened library in all other libraries. This behaviour did not happen in gcc3,
neither does it on other compilers (MSDEV, IBM XLC, ...). To solve it, we had
to give a unique name to our variables : this works but is very dangerous,
since we are never sure that there will not be a side effect between normally
independant libraries.


-- 
           Summary: Strange transmission of symbols between dynamically
                    opened libs
           Product: gcc
           Version: 4.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dvt at isoft dot fr
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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

Reply via email to