Unix Technical Forum

libz.a on AIX 5.1 ML5

This is a discussion on libz.a on AIX 5.1 ML5 within the AIX Operating System forums, part of the Unix Operating Systems category; --> Cannot link openssl and openssh against /usr/lib/libz.a on my 5.1 system. Main goal: one shared, threadsafe libz.a for all ...


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-04-2008, 08:29 PM
Ulrich--nO--(dot)-sPAM--Link
 
Posts: n/a
Default libz.a on AIX 5.1 ML5

Cannot link openssl and openssh against /usr/lib/libz.a on my 5.1 system.

Main goal: one shared, threadsafe libz.a for all my apps.
Since it is used by quite a few apps, I prefer early binding over
runtime binding, but I don't want a private copy for every app nor
static linking. AIX 5.1 eats up enough RAM...

Since zlib-1.1.4 don't know how to build a shared lib on AIX by default
I did it myself on 4.3.3 without any problems:
Compiled with cc_r and forced the threadsafe flags durig "./configure".
extracted all archive members to a temp dir with
"ar -x ../libz.a" and linked the shared lib with a simple:
"cc_r -G -O -qarch=com `ls *.o` -o libz.a"
a "dump -Ht libz.a" shows all objects on my lib.

On AIX 5.1 the libz.a has a single member "libz.so.1"
No headers for using this lib in the system.
lslpp -w /usr/lib/libz.a gives no results.
My own libz from 4.3.3 works on 5.1 as expected, but I don't like to
overwrite a system lib.
For stylistic reasons, using the system lib is the preferred way.

Any recommendations?
Or is the Linux affinity AIX5L the same shared lib hell like major Linux
distros?

---
Uli

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:52 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com