Have a look at the source and patches applied to Solaris, from the Userland 
Consolidation:

https://java.net/projects/solaris-userland

Here KSH is built deliberately static to avoid shipping libast/libations as a 
shared library.

Cheers,
Edwin Beasant 

> On 7 Feb 2015, at 11:47, Russell Cannon <russell.t.can...@gmail.com> wrote:
> 
> After resolving our previous build issues, we ran into another problem.  Some 
> of the servers on which we must install the new Kornshell binary are missing 
> some required libraries.  The servers we control have all the necessary 
> components, but many other servers belong to another agency and are outside 
> our control.  The process for gaining approval for installation of new 
> software requires months of political wrangling among inter-agency security 
> authorities, and sometimes approvals are denied.  What we need to do is 
> produce a static build of KSH so that we can provide a single, monolithic 
> binary.  Since Kornshell is already installed on all the servers, we are 
> allowed to upgrade it without additional authorizations.
> 
> We have been searching for a way to build a static binary but have not been 
> successful.  Based on a message in the archives, we tried setting 
> SHOPT_DYNAMIC to 0 in the Kornshell makefile, but this had no effect on the 
> result.  The compiled program was the exact same size as previous builds and 
> would still not run on the problem servers.
> 
> There is also this statement by Dave Korn from a message posted in ast-users 
> on June 28, 2008:
> 
> "if you build a dynamic [later corrected to "static"] version of ksh93, then 
> you will not be able to load built-ins at run time."
> 
> Can someone explain what this means?
> 
> These are old, HP PA-RISC servers running HP-UX 11.11.  We have been entirely 
> successful with the binary on our own servers, but the DOD servers belonging 
> to another agency, which are of the same type and O/S, cannot run the 
> software.  We know at the very least that they are missing libiconv.sl and 
> may be missing other libraries as well.  Can anyone be of any assistance with 
> this?
> 
> Cheers,
> Russ Cannon, Oracle DBA
> HQ AFLCMC/HIBD USAF
> _______________________________________________
> ast-developers mailing list
> ast-developers@lists.research.att.com
> http://lists.research.att.com/mailman/listinfo/ast-developers
_______________________________________________
ast-developers mailing list
ast-developers@lists.research.att.com
http://lists.research.att.com/mailman/listinfo/ast-developers

Reply via email to