D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 4422 - std.c.osx.socket and std.c.linux.socket cause symbol conflict
Summary: std.c.osx.socket and std.c.linux.socket cause symbol conflict
Status: RESOLVED WORKSFORME
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: Other Mac OS X
: P2 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-04 03:15 UTC by Masahiro Nakagawa
Modified: 2014-08-24 21:13 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Masahiro Nakagawa 2010-07-04 03:15:29 UTC
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 2 Peter Alexander 2014-03-09 05:05:34 UTC
Can anyone repro this?
Comment 3 Peter Alexander 2014-08-24 21:13:20 UTC
Four years old, no replies, looks like it's fixed. Let's close it.