[ale] Work-arounds Re: Purely static ... 'libcrypto.a'

James P. Kinney III jkinney at localnetsolutions.com
Thu Oct 4 10:30:38 EDT 2007


John,

You will need to do a static build for the crypto libs as well and then
use those to build the rest of your tool chain.

You _may_ need to build a new libc-xxx.a to do a final workaround. 

On Thu, 2007-10-04 at 08:59 -0500, John Mills wrote:
> ALErs -
> 
> No luck yet getting an openssl 'libcrypto.a' that doesn't depend on the 
> link-time version of 'libc-xxx.so', so I have an alternative question:
> 
> My SuSE-10.1 setup uses '/glibc-2.4-..', and my users' systems have 
> 'glibc-2.2.5-..'. Is there a way to install -2.2.5 as well as -2.4 and 
> selectively link against the older library?

In theory, is you get the lib package and install it with the rpm -i
process it should install next to the real version. In practice,
however, there are many things that are overlapping and so some other
flags may need use to prevent overwrite of other links.

An alternative is to tarball up the libs using absolute paths and create
a shell script for easy drop-in for your users.

A better alternative is to install the older libs on your build machine
and build against that set with specific links and includes.
> 
> I still wouldn't have a static build, but my users could probably run that
> binary.
> 
> On Wed, 3 Oct 2007, John Mills wrote:
> 
> > ALErs -
> > 
> > I am building a static executable to run in several Linux hosts. Some of 
> > those do not share the same versions of 'libc', so I want to avoid 
> > runtime dependence on it.
> 
> TIA.
>  - Mills
> 
> 
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale
> 
-- 
James P. Kinney III          
CEO & Director of Engineering 
Local Net Solutions,LLC        
770-493-8244                    
http://www.localnetsolutions.com

GPG ID: 829C6CA7 James P. Kinney III (M.S. Physics)
<jkinney at localnetsolutions.com>
Fingerprint = 3C9E 6366 54FC A3FE BA4D 0659 6190 ADC3 829C 6CA7
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part




More information about the Ale mailing list