HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Creating shared library for JNI
Operating System - HP-UX
1833588
Members
4267
Online
110061
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2003 07:43 AM
07-29-2003 07:43 AM
Hi,
I have a similar problem as the one mentioned below 'JNI calling C program'
I am trying to make a shared library using aCC. I intend to call this library from a Java program using JNI.
The C program calls some other libraries for Arbor (a billing product used in telecom applications). The program basically calls APIs defined in these Arbor libraries. I am compiling in the foll. format
aCC -b +z -I/opt/java/include -I/opt/java/include/hp-ux $(LDFLAGS) $(LDLIBS) arborJniImpl.c -o libjniRef.sl
where LDFLAGS and LDLIBS point to all the include files and libraries for Arbor. arborJniImpl.c is my source file and libjniRef.sl is the shared library file that is to be generated.
The library file does get generated. But when my JNI program calls it, it prints a list of all the APIs during runtime that I have called for arbor saying "unresolved symbol"
e.g. /usr/lib/dld.sl: Unresolved symbol: insert_abp_serv_inst (code) from {shared library path and name}
The very first line of the error text has the following
aCC runtime: Error 215 from shl_findsym({shared library path and name})
Can anyone please point out where I am going wrong ?
I have a similar problem as the one mentioned below 'JNI calling C program'
I am trying to make a shared library using aCC. I intend to call this library from a Java program using JNI.
The C program calls some other libraries for Arbor (a billing product used in telecom applications). The program basically calls APIs defined in these Arbor libraries. I am compiling in the foll. format
aCC -b +z -I/opt/java/include -I/opt/java/include/hp-ux $(LDFLAGS) $(LDLIBS) arborJniImpl.c -o libjniRef.sl
where LDFLAGS and LDLIBS point to all the include files and libraries for Arbor. arborJniImpl.c is my source file and libjniRef.sl is the shared library file that is to be generated.
The library file does get generated. But when my JNI program calls it, it prints a list of all the APIs during runtime that I have called for arbor saying "unresolved symbol"
e.g. /usr/lib/dld.sl: Unresolved symbol: insert_abp_serv_inst (code) from {shared library path and name}
The very first line of the error text has the following
aCC runtime: Error 215 from shl_findsym({shared library path and name})
Can anyone please point out where I am going wrong ?
Life is a beauty
Solved! Go to Solution.
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2003 10:56 AM
07-29-2003 10:56 AM
Solution
You have LDLIBS before your source file in the link sequence. If any of those LDLIBS are archive libraries, then that could prevent the linker from pulling in .o files from the libraries which would satisfy the missing symbols. You could reorder the libraries or use the -Wl,+n option to tell the linker to repeatedly search archive libraries until there is no more progress on resolving symbols.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP