Solaris 10: Ack! Where did my archive libraries go?

In Solaris 10 all the archive libraries in the core OS have been removed. To access these functions, you have to use the shared libraries. Rod Evans wrote about this in his blog. The change grew out of the Process Model Unification project, which is decribed in this bug.

To be more specific, there is no problem with linking application archive libraries on Solaris 10.  We do it all the time int he products I work on. The change in Solaris 10 was that Solaris was no longer going to export Solaris functionality using archive libraries.  That's an interface decision that Sun made because it is easier for us to keep our interfaces stable, and to keep old programs working on a newer OS.

So in general there is no problem with the basic functionality of static linking. Go ahead and keep using it, but from a build dependency point of view, if the .a file encapsulates an interface to a runtime component, it's hard to make sure the statically linked code matches the version of the runtime component.  That's the problem we avoided in Solaris 10. (Read more about it in Rod's blog, linked above).

Comments:

Post a Comment:
Comments are closed for this entry.
About

Chris Quenelle

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today