Rogue Wave Knowledge Base
Search:    
Browse by category:
Knowledgebase | Glossary | Ask a Question |

On AIX 5.3, RCB only generates static libs (*.a) and not dynamic libs (*.so)

Article ID: 1258
Last updated: 07 Jun, 2012
Revision: 1
print  Print
share  Share
Views: 914
Posted: 29 Aug, 2007
by --
Updated: 07 Jun, 2012
by Rehme L.

Problem


On AIX 5.3, even after selecting all the right options in RCB to build shared libraries it only generates static libs (*.a) and not dynamic libs (*.so). Can I rename the .a extensions to .so?




Cause





Action


The shared library extension is .a by default on AIX 5.3. No, you cannot rename the .a to .so.

In general on UNIX systems, anylib.a is an archive of objects sections of which are pulled in to the executable, and anylib.so is a shared library where the shared library gets loaded and multiple processes could use the library simultaneously.  However, on AIX, apart from these two types (.a and .so) a third type could be created with .a extension which is an archive of  shared objects where sections of which are pulled into the executables but could be pulled in by multiple processes simultaneously.  The difference between .so and shared .a is that .so is loaded completely into the memory whereas for the shared .a only sections of it are loaded.  Hence, .so and shared .a are not the same on AIX. Rogue Wave chose to create the shared .a version of the libraries.

 


This article was:   Helpful | Not helpful Report an issue


Prev     Next
Use Stream Versions to Improve Efficiency or Provide...       What is a static initialization problem?

Others in this category
b Incorrect RCB Compiler & OS Selections in SuSE Linux Enterprise Server (SLES) 9
b SourcePro Static build looking for a shared Standard Library version
b Currency Library fails to build on AIX 5.3 with xlC 8.0.0.15
b SourcePro install problem on Linux platform
b Use Stream Versions to Improve Efficiency or Provide Compatibility
b What is a static initialization problem?
b How to create a single SourcePro threads rollup library?
b Display Issues during SourcePro installation
b Problem Installing SourcePro on 64bit Linux