- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Unresolved symbol(__shlinit) error, building a sha...
Categories
Company
Local Language
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
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
Community
Resources
Forums
Blogs
- 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
11-06-2002 02:33 PM
11-06-2002 02:33 PM
The source code is in C++.
The complete command for linking is...
/opt/aCC/bin/aCC -b -v +z -Wl,-v -o SCData.dll SCData.o SCProto.o
SCLoad.o pingwire.o VDCommon.o PinCache.o -lpthread
-L/usr/local/lib -lpcsclite -lc
aCC internally calls ld as...
/usr/ccs/bin/ld -b +nosmartbind -o SCData.dll shlrt0.o +I__shlinit
-u__shlinit -v SCData.o SCProto.o SCLoad.o pingwire.o VDCommon.o
PinCache.o -lpthread -L /usr/local/lib -lpcsclite -lc
error unresolved symbol: __shlinit (code) from SCData.dll
thanks
Naja
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2002 01:43 AM
11-07-2002 01:43 AM
Re: Unresolved symbol(__shlinit) error, building a shared lib, using aCC.
Do you have the latest ld linker patch since this fixes a problem with shlinit
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2002 02:02 AM
11-07-2002 02:02 AM
SolutionI suspect this can be ignored, because symbols in shared libs are resolved at runtime, not compile time. For what its worth __shlinit is defined in libCsup.sl.
Regards,
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2002 07:44 AM
11-07-2002 07:44 AM
Re: Unresolved symbol(__shlinit) error, building a shared lib, using aCC.
If you are talking about the patch PHSS_26559 (s700_800 11.00 ld(1) and linker tools cumulative patch), yes I have it.
I am sorry I should have written this before, the error actually shows up at run time.
if you see in the ld command, aCC adds the option +I__shlinit -u__shlinit.
nm shlrt0.o
shows the symbol __shlInit, that is with the uppercase I.
If I explicitly call the ld command as aCC calls except for the options for __shlinit, I dont get the error at run time, but then the exported functions in my library(SCData.dll) does not seem to be called.
I am kind of running out of ideas.
Thanks
Naja
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2002 08:54 AM
11-07-2002 08:54 AM
Re: Unresolved symbol(__shlinit) error, building a shared lib, using aCC.
At run-time, you may need to set SHLIB_PATH and LD_LIBRARY_PATH to point to your desired library directories.
Man ldd and dld.sl for more details.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2002 10:35 AM
11-07-2002 10:35 AM
Re: Unresolved symbol(__shlinit) error, building a shared lib, using aCC.
Explicitly linking with libCsup solves the problem.
just added -lCsup in the make file and the problem was solved.
Thanks to all of you for your help.
Najam