- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: /usr/lib/dld.sl: Unresolved symbol: SSLeay (co...
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
06-17-2008 12:45 AM
06-17-2008 12:45 AM
/usr/lib/dld.sl: Unresolved symbol: SSLeay (code)
I created a shared lib via gcc.
I'm trying to create a simple C tester that openes that tries to access this lib directly via dlopen().
GCC cmd:
"gcc -o testcsdkdllopen_hpux -pthread testcsdkdllopen.c"
When I run the exe - the program crashes with the following:
"/usr/lib/dld.sl: Unresolved symbol: SSLeay (code) from
-------------
Env details:
-------------
gcc - gcc version 4.2.2
OS: HPUX11.23 PARisc
"file ./testcsdkdllopen_hpux" returns:
./testcsdkdllopen_hpux: PA-RISC2.0 shared executable dynamically linked -not stripped
"ldd ./testcsdkdllopen_hpux" returns:
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/lib/libdld.2 => /usr/lib/libdld.2
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/lib/libpthread.1 =>/usr/lib/libpthread.1
what do you think?!
tx,
shlom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2008 12:50 AM
06-17-2008 12:50 AM
Re: /usr/lib/dld.sl: Unresolved symbol: SSLeay (code)
My question regarded to C tester...
BUT the same error occurs when I compile run the same tester with c++ (cpp)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2008 02:09 AM
06-17-2008 02:09 AM
Re: /usr/lib/dld.sl: Unresolved symbol: SSLeay (code)
some of my libs (that were linked in the sl) require "openssl"
I didn't add the "-fpic" to the openssl compilation, since the sl was linked with no errors.
Could it be the reason for that?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2008 03:37 AM
06-17-2008 03:37 AM
Re: /usr/lib/dld.sl: Unresolved symbol: SSLeay (code)
The solution it to re-compiled also openssl with the "shared" option.
This created new "libcrypto.a" that you will have to re-link with the lib that needs it.
After doing all of this, re-create your shared lib, re-create your tester and everything work as it should.
Shlom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2008 06:11 AM
06-17-2008 06:11 AM
Re: /usr/lib/dld.sl: Unresolved symbol: SSLeay (code)
>This created new "libcrypto.a" that you will have to re-link with the lib that needs it.
Actually, you should just create libcrypto.sl so you can use it without including it in every load module.
>re-create your tester
You could also "include" all of libcrypto.a into your executable and link with -Wl,-E.