Bug 3489 – Address family not supported by protocol family on freebsd
Status
RESOLVED
Resolution
FIXED
Severity
critical
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
x86
OS
FreeBSD
Creation time
2009-11-08T09:18:00Z
Last change time
2015-06-09T05:15:18Z
Assigned to
nobody
Creator
changlon
Comments
Comment #0 by changlon — 2009-11-08T09:18:13Z
my os is freebsd i386 7.2 release.
when run the execute file i got this: "Error: Unable to connect socket: Address family not supported by protocol family"
Comment #1 by changlon — 2009-11-08T09:24:08Z
import
std.stdio,
std.socket,
std.socketstream,
std.stream;
void main(){
auto Socket sock = new TcpSocket(new InternetAddress("127.0.0.1", 80));
Stream ss = new SocketStream(sock);
}
Comment #2 by changlon — 2009-11-08T19:22:21Z
freebsd 7.1 release have the same error.
Comment #3 by changlon — 2009-11-08T20:46:08Z
the follow code can raise the same error :
import std.socket;
void main(){
auto sock = new TcpSocket(new InternetAddress("127.0.0.1", 80));
}
Comment #4 by boucher.travis — 2009-11-20T06:20:19Z
Which version of DMD is this? I am working on making DMD2 work.
The code you listed works fine with the gdc package in the freebsd ports tree (on FreeBSD 8.0RC2)