network icon indicating copy to clipboard operation
network copied to clipboard

getaddrinfo cannot be statically linked if glibc is used

Open kazu-yamamoto opened this issue 6 years ago • 2 comments

For easy deployment of network programs in Haskell, it would be nice if all libraries were statically linked. Golang does this well as we know.

Unfortunately, it appeared that getaddrinfo in glibc has to be always dynamically linked due to libnss. Now we have the dns library, I would like to implement getAddrInfo purely in Haskell.

kazu-yamamoto avatar Oct 31 '19 02:10 kazu-yamamoto

Static linking would be lovely.

eborden avatar Oct 31 '19 21:10 eborden

dns depends on network. So, we need to refactor them a lot, unfortunately.

kazu-yamamoto avatar Oct 31 '19 23:10 kazu-yamamoto