On Sat, Dec 18, 2010 at 05:23:45PM +0100, јеромонах Виталије wrote:
> to: Lluís Batlle i Rossell
> 
> I build it with -static option added to LIB variable.
> Now it works but it's size is (even after strip) is 1.5M.
> A funny thing is that now when building I got the following warning:
Normal - now the fossil executable has the libc and openssl code in it, instead
of loading it from other files like before (dynamically linked).

> "Using 'gethostbyname' in statically linked applications requires at
> runtime the shared libraries from the glibc version used for linking"
This is what I told you about glibc not being able to be linked as a static
library *totally*. The Name Services get dynamically linked always.

> As I understand these warnings warn me that at runtime there must be
> installed glibc version that is used for linking. However, it seems 
> that it is not needed or at least not the same version as warning says.
At runtime you need the dynamic libraries related to name services in order to
get name services working (like DNS requests on http connections, if you use
host names in the urls).

> Isn't it strange, or I misunderstood the warning? Am I wrong assuming
> that warning should be given when built executable actually needs shared
> library of specific version to function properly.
It is just to avoid surprises to you, if you don't have compatible name
services dynamic libraries in the system where you will run fossil. Name
resolution will not work in that case.

Regards,
Lluís.
_______________________________________________
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