On Mon, 30 Jan 2012 09:11:03 +0100 Lluís Batlle i Rossell wrote:
> On Mon, Jan 30, 2012 at 04:27:07AM +0100, Dmitry Chestnykh wrote:
> > On Sun, 29 Jan 2012 20:49:00 +0100 Remigiusz Modrzejewski wrote:
> > 
> > > > I've hit a surprising obstacle. I've tried to use Fossil, the
> > > > binary from the website, on a heavily stripped down Linux
> > > > system. But trying to clone end with:
> > > > 
> > > > fl: can't resolve host name: dev.lrem.net
> > > > 
> > > > I traced the problem to be lack of libnss_dns.so.2. 
> > 
> > Yeah, static linking is not actually that static nowadays. When
> > linking, GCC warns about this.
> 
> For what I know, it's only *glibc* that suffers from dynamic-only
> name resolvers (for either hosts, services, users, ...).

You mean, if you replace glibc with some other libc, it will work?
Sure, but then you'll have more problems if you don't control the
deployment [1].

The authors of Go programming language dropped [2] a major feature --
cross-compiling between OSes -- because it was just impossible to
interface with modern OS without the provided libc, despite the fact
that they had already "kind of" working name resolver.

Solaris no longer allows static linking too [3]. I think OS X too.
You can, of course, build your own OS.

[1] http://www.akkadia.org/drepper/no_static_linking.html
[2] http://codereview.appspot.com/4437053
[3] http://blogs.oracle.com/rie/entry/static_linking_where_did_it

--
Dmitry Chestnykh
http://www.codingrobots.com
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to