Unix Technical Forum

Shared Library Problem while unloading

This is a discussion on Shared Library Problem while unloading within the HP-UX Operating System forums, part of the Unix Operating Systems category; --> Hi All, I have created two separate shared libraries for SQL2K and SQL2K5 respectively on HPUX-11.11. Both have all ...


Go Back   Unix Technical Forum > Unix Operating Systems > HP-UX Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-17-2008, 06:02 AM
som
 
Posts: n/a
Default Shared Library Problem while unloading

Hi All,

I have created two separate shared libraries for SQL2K and SQL2K5
respectively on HPUX-11.11.
Both have all functions with the same name however some processing is
different as per requirements.

Actually once any of the library my process call and load first only
that is effective through out. However we have used proper
shl_unload() function.
The commands to create libraries are follows.

ld -b +s -B immediate -B verbose -L/citisafe/users/secpxyit/syb1251/
OCS-12_5/lib -L/usr/lib -L/citisafe/users/secpxyit/LDAP/include/lib -L/
opt/java1.4/jre/lib/PA_RISC2.0/hotspot /citisafe/users/ssomani/tcodss/
cs35/cref/ver_libtcsql.oz citisafe/users/ssomani/tcodss/cs35/cref/
tcsqlgsl.oz /citisafe/users/ssomani/tcodss/cs35/cref/tcsqlcmn.oz /
citisafe/users/ssomani/tcodss/cs35/cref/base64.oz -o /citisafe/users/
ssomani/tcodss/cs35/lib/libtcsql.sl -ljvm -llwp

ld -b +s -B immediate -B verbose -L/citisafe/users/secpxyit/syb1251/
OCS-12_5/lib -L/usr/lib -L/citisafe/users/secpxyit/LDAP/include/lib -L/
opt/java1.4/jre/lib/PA_RISC2.0/hotspot /citisafe/users/ssomani/tcodss/
cs35/cref/ver_libtcsql2k5.oz /citisafe/users/ssomani/tcodss/cs35/
cref/tcsql2k5gsl.oz /citisafe/users/ssomani/tcodss/cs35/cref/
tcsqlcmn.oz /citisafe/users/ssomani/tcodss/cs35/cref/base64.oz -o /
citisafe/users/ssomani/tcodss/cs35/lib/libtcsql2k5.sl -ljvm -llwp

Now one more thing the processing part....
My App**.sl ----> libtcsql***.sl -------> Some.jar(which contains
actual processing functions for sql servers.

Both libtcsql and libtcsql2k5 have same name of functions and all.

Please suggest where I am missing and what precautions I must take so
that I could avoid this issue.
Also please revert if some more details are required and something
need further clarification.

Thanks in advance,

Best Regards
Sunil Somani
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:50 AM.


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