Unix Technical Forum

exporting symbols from JNI shared library

This is a discussion on exporting symbols from JNI shared library within the AIX Operating System forums, part of the Unix Operating Systems category; --> Hi We have a jni shared library which we built using "-bnoentry -bnosymbolic -bnoautoexp -bM:SRE" options (we cannot use ...


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:23 PM
Naresh Agarwal
 
Posts: n/a
Default exporting symbols from JNI shared library

Hi
We have a jni shared library which we built using "-bnoentry
-bnosymbolic -bnoautoexp -bM:SRE" options (we cannot use -G option
since that makes libraries do a run time linking which is not allowed
in java). Now it seems that no symbols are being exported from this
shared library.

We tried checking it and by specifying -bE:SymbolsToExport.exp one can
export symbols but is there any automatic way to export all the
symbols of this library only? (we tried using -bexpall but that tries
to export symbols from other libraries also and that is not working)

Thanks
Naresh
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-04-2008, 08:24 PM
Gary R. Hook
 
Posts: n/a
Default Re: exporting symbols from JNI shared library

Naresh Agarwal wrote:

> We have a jni shared library which we built using "-bnoentry
> -bnosymbolic -bnoautoexp -bM:SRE" options (we cannot use -G option
> since that makes libraries do a run time linking which is not allowed
> in java). Now it seems that no symbols are being exported from this
> shared library.


Try -bexpfull, or -bexpall, or use xlC -qmkshrobj.

I would strongly encourage
you to _not_ use -bnoautoexp and -bnosymbolic. Stick to the defaults.
-bM:SRE and -bnoentry are recommended.

--
Gary R. Hook / AIX PartnerWorld for Developers / These opinions are MINE
__________________________________________________ ______________________

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:45 PM.


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