--- Comment #5 from ivan dot stankovic at avl dot com 2010-05-10 14:14
---
Indeed, using RTLD_GLOBAL works around the problem. However, I don't think
one should just resort to using this flag with dlopen everywhere. The problem
was originally found with Python modules written in C
--- Comment #1 from ivan dot stankovic at avl dot com 2010-05-10 13:40
---
Created an attachment (id=20619)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20619&action=view)
The test case
Just unpack and run 'make; make run'. The output
should be something like:
c
Version: 4.5.0
Status: UNCONFIRMED
Severity: major
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ivan dot stankovic at avl dot com
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i68