[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: after configuring with --enable-all-static, many undefined references when linking

From: Max Bowsher <maxb1_at_ukf.net>
Date: 2007-09-26 23:44:44 CEST

Eric Hanchrow wrote:
>>>>>> "Max" == Max Bowsher <maxb1@ukf.net> writes:
>
> Max> Well, the cause is that it's linking with libsasl2.a, not
> Max> libsasl2.la.
>
> Glad you figured it out.
>
> Max> Do people use --enable-all-static enough to justify
> Max> considering this a bug?
>
> I have no idea. _I_ use it on occasion in order to build a binary on
> box A that will run on box B -- where box B lacks both a development
> environment, and the shared libraries that the released svn needs.

All the following messages in the build output:

    warning: Using '<various>' in statically linked applications
    requires at runtime the shared libraries from the glibc version
    used for linking

make me feel rather dubious about that method.

> Max> Personally I would never static-link Subversion.
>
> Why not?

I'd never static-link anything at all, under normal circumstances,
because then upgrading a library requires re-linking all its clients,
and there's no easy way to track which version of a static library
something has linked into it.

I might consider static-linking something if I needed to distribute a
binary to work in many different environments, but the warning above re
glibc dynamic libraries required anyway could easily make such an
exercise useless.

Max.

Received on Wed Sep 26 23:45:29 2007

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.