Bug 4422 – std.c.osx.socket and std.c.linux.socket cause symbol conflict

Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
Other
OS
Mac OS X
Creation time
2010-07-04T03:15:00Z
Last change time
2014-08-24T21:13:20Z
Assigned to
nobody
Creator
repeatedly

Comments

Comment #0 by repeatedly — 2010-07-04T03:15:29Z
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.
Comment #1 by dlang-bugzilla — 2011-08-24T11:23:56Z
Comment #2 by peter.alexander.au — 2014-03-09T05:05:34Z
Can anyone repro this?
Comment #3 by peter.alexander.au — 2014-08-24T21:13:20Z
Four years old, no replies, looks like it's fixed. Let's close it.