[Issue 10057] [2.063 beta] Module info overwritten in shared phobos.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri May 10 22:28:28 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=10057


Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX


--- Comment #1 from Walter Bright <bugzilla at digitalmars.com> 2013-05-10 22:28:27 PDT ---
I'm not sure this can be considered a bug in dmd.

What's happening is that you've created two instances of std.c.linux.socket -
one in the shared phobos library, and one in your executable which you are
linking with the shared library.

Which instance 'wins'? It really should be an error, but I don't know how it
could be detected.

I know what you're trying to do - run the unittests against the shared library.
This will never work. It works when linking against a static library because
the unittest module will override everything in the static library. It won't
work with a shared library.

I'm going to mark this as wontfix, as I can't think of a reasonable way to deal
with this, other than "don't do that".

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list