[Issue 11543] multiple definition of std.regex with shared library
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Dec 24 11:19:59 PST 2013
https://d.puremagic.com/issues/show_bug.cgi?id=11543
--- Comment #3 from Martin Nowak <code at dawg.eu> 2013-12-24 11:19:55 PST ---
This happens because of copy relocations, i.e. linker generates a copy of the
ModuleInfo symbol in the executable's .bss section.
This causes a false alarm in the druntime code that checks for duplicated
ModuleInfos.
There are two/three ways to fix this.
- Make ModuleInfos immutable, which is something we should do anyhow.
- Avoid references to foreign ModuleInfos, a bit more complex but necessary
for https://github.com/D-Programming-Language/dmd/pull/2561.
- Adapt the druntime code to detect this false error. Somewhat dirty hack.
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list