www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 4422] New: std.c.osx.socket and std.c.linux.socket cause symbol conflict

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4422

           Summary: std.c.osx.socket and std.c.linux.socket cause symbol
                    conflict
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Mac OS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: repeatedly gmail.com


--- Comment #0 from Masahiro Nakagawa <repeatedly gmail.com> 2010-07-04
03:15:29 PDT ---
Currently, I am trying to improve std.socket(Source is here
http://bitbucket.org/repeatedly/scrap/src/tip/socket.d). In this process, I get
the compilation error.

test.d(5): Error: core.sys.posix.arpa.inet.INET_ADDRSTRLEN at
/path/to/src/druntime/import/core/sys/posix/arpa/inet.di(45) conflicts with
core.sys.posix.netinet.in_.INET_ADDRSTRLEN at
/path/to/src/druntime/import/core/sys/posix/netinet/in_.di(70)

Following code is a part of std.c.osx.socket(std.c.linux.socket too).

-----
private import core.stdc.stdint;
public import core.sys.posix.arpa.inet;
public import core.sys.posix.netinet.tcp;
public import core.sys.posix.netinet.in_;
public import core.sys.posix.sys.select;
public import core.sys.posix.sys.socket;
-----

core.sys.posix.netinet.in_ already imports core.sys.posix.arpa.inet as public.
I think "public import core.sys.posix.arpa.inet" should be removed.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 04 2010
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4422


Vladimir Panteleev <thecybershadow gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |thecybershadow gmail.com


--- Comment #1 from Vladimir Panteleev <thecybershadow gmail.com> 2011-08-24
11:23:56 PDT ---
https://github.com/D-Programming-Language/druntime/commit/ab485ce80963adb5af5d4c4dd3a08a64ac86f0be

Fixed?

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