Re: [ROOT] versions on the shared libraries

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Fri May 17 2002 - 16:35:52 MEST


Hi Bruce,

  we don't set that by default in the binaries we generate, but if you
recompile for your users from source just do:

./configure <machine> --enable-soversion

Cheers, Fons



On Fri, 2002-05-17 at 16:08, Bruce O'Neel wrote:
> Hi,
> 
> We have a bit of a problem with root and shared libraries.  We
> keep more than one version of root available to users and most of
> those users run programs that are in fact compiled and linked against
> those libraries rather than running root directly.  We keep root
> separately from our system though since root is an exterernal package
> and not a part of our system.
> 
> The problem that arises then is that programs linked against one
> version of root rarely run correctly and most often crash when run
> against another version.  This, of course, makes sense, especially
> when the version in the LD_LIBRARY_PATH is older than the version you
> compiled with.
> 
> I wonder though if it would be possible for the root shared libraries
> to have encoded in their names the version numbers?  This way if your
> LD_LIBRARY_PATH was set to a root different than what the program was
> linked with you would get a startup failure, rather than some random
> failure somewhere else in your code.
> 
> Thanks very much!
> 
> cheers
> 
> bruce
> 
> -- 
> So many possibilities, none of which are implimented. :) - Lex Spoon
> 
> Bruce O'Neel                       phone:  +41 22 950 91 57
> INTEGRAL Science Data Centre               +41 22 950 91 00 (switchb.)
> Chemin d'Ecogia 16                 fax:    +41 22 950 91 35
> CH-1290 VERSOIX                    e-mail: Bruce.Oneel@obs.unige.ch
> Switzerland                        WWW:    http://isdc.unige.ch/
-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch              Phone: +41 22 7679248
WWW:    http://root.cern.ch/~rdm/            Fax:   +41 22 7679480



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:53 MET