HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Unresolved symbol: ldap_get_option (code) from ./...
Operating System - HP-UX
1833750
Members
3014
Online
110063
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
10-18-2004 11:08 AM
10-18-2004 11:08 AM
I installed LDAP-UX Integration on 11.11i
when i try to configure with command:
/opt/ldapux/config/setup
the command fails with this echo
/usr/lib/dld.sl: Unresolved symbol: ldap_get_option (code) from ./ldapsearch
the output of :
ldd ldapsearch
=>
/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/librt.2 => /usr/lib/librt.2
/usr/lib/libpthread.1 => /usr/lib/libpthread.1
/usr/lib/libm.2 => /usr/lib/libm.2
/usr/lib/libdld.2 => /usr/lib/libdld.2
/usr/lib/libldap.sl => /usr/lib/libldap.sl
/usr/lib/libnsl.1 => /usr/lib/libnsl.1
/usr/lib/libxti.2 => /usr/lib/libxti.2
/usr/lib/libsec.2 => /usr/lib/libsec.2
/usr/lib/libm.2 => /usr/lib/libm.2
/usr/lib/libgen.2 => /usr/lib/libgen.2
/usr/lib/libpthread.1 => /usr/lib/libpthread.1
I tried to set te variable LD_LIBRARY_PATH
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/ldapux/lib
but nothing appened ...
the output of same command in an another workstation is:
ldd ldapsearch
=>
/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/librt.2 => /usr/lib/librt.2
/usr/lib/libpthread.1 => /usr/lib/libpthread.1
/usr/lib/libm.2 => /usr/lib/libm.2
/usr/lib/libdld.2 => /usr/lib/libdld.2
/usr/lib/libldap.sl => /usr/lib/libldap.sl
/opt/ldapux/lib/libssl3.sl => /opt/ldapux/lib/libssl3.sl
/opt/ldapux/lib/libnspr4.sl => /opt/ldapux/lib/libnspr4.sl
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/lib/libm.2 => /usr/lib/libm.2
/usr/lib/libdld.2 => /usr/lib/libdld.2
/usr/lib/librt.2 => /usr/lib/librt.2
/opt/ldapux/lib/libplds4.sl => /opt/ldapux/lib/libplds4.sl
/opt/ldapux/lib/libnspr4.sl => /opt/ldapux/lib/libnspr4.sl
/opt/ldapux/lib/libplc4.sl => /opt/ldapux/lib/libplc4.sl
/opt/ldapux/lib/libnspr4.sl => /opt/ldapux/lib/libnspr4.sl
/opt/ldapux/lib/libnss3.sl => /opt/ldapux/lib/libnss3.sl
/opt/ldapux/lib/libnspr4.sl => /opt/ldapux/lib/libnspr4.sl
/opt/ldapux/lib/libplds4.sl => /opt/ldapux/lib/libplds4.sl
/opt/ldapux/lib/libplc4.sl => /opt/ldapux/lib/libplc4.sl
/opt/ldapux/lib/libsoftokn3.sl => /opt/ldapux/lib/libsoftokn3.sl
/opt/ldapux/lib/libnspr4.sl => /opt/ldapux/lib/libnspr4.sl
/opt/ldapux/lib/libplds4.sl => /opt/ldapux/lib/libplds4.sl
/opt/ldapux/lib/libplc4.sl => /opt/ldapux/lib/libplc4.sl
/opt/ldapux/lib/libsoftokn3.sl => /opt/ldapux/lib/libsoftokn3.sl
/opt/ldapux/lib/libplds4.sl => /opt/ldapux/lib/libplds4.sl
/opt/ldapux/lib/libplc4.sl => /opt/ldapux/lib/libplc4.sl
/opt/ldapux/lib/libnss3.sl => /opt/ldapux/lib/libnss3.sl
/opt/ldapux/lib/libnspr4.sl => /opt/ldapux/lib/libnspr4.sl
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/lib/libm.2 => /usr/lib/libm.2
/usr/lib/libdld.2 => /usr/lib/libdld.2
/usr/lib/librt.2 => /usr/lib/librt.2
in this workstation all works.
Thanks ;-)
when i try to configure with command:
/opt/ldapux/config/setup
the command fails with this echo
/usr/lib/dld.sl: Unresolved symbol: ldap_get_option (code) from ./ldapsearch
the output of :
ldd ldapsearch
=>
/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/librt.2 => /usr/lib/librt.2
/usr/lib/libpthread.1 => /usr/lib/libpthread.1
/usr/lib/libm.2 => /usr/lib/libm.2
/usr/lib/libdld.2 => /usr/lib/libdld.2
/usr/lib/libldap.sl => /usr/lib/libldap.sl
/usr/lib/libnsl.1 => /usr/lib/libnsl.1
/usr/lib/libxti.2 => /usr/lib/libxti.2
/usr/lib/libsec.2 => /usr/lib/libsec.2
/usr/lib/libm.2 => /usr/lib/libm.2
/usr/lib/libgen.2 => /usr/lib/libgen.2
/usr/lib/libpthread.1 => /usr/lib/libpthread.1
I tried to set te variable LD_LIBRARY_PATH
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/ldapux/lib
but nothing appened ...
the output of same command in an another workstation is:
ldd ldapsearch
=>
/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/librt.2 => /usr/lib/librt.2
/usr/lib/libpthread.1 => /usr/lib/libpthread.1
/usr/lib/libm.2 => /usr/lib/libm.2
/usr/lib/libdld.2 => /usr/lib/libdld.2
/usr/lib/libldap.sl => /usr/lib/libldap.sl
/opt/ldapux/lib/libssl3.sl => /opt/ldapux/lib/libssl3.sl
/opt/ldapux/lib/libnspr4.sl => /opt/ldapux/lib/libnspr4.sl
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/lib/libm.2 => /usr/lib/libm.2
/usr/lib/libdld.2 => /usr/lib/libdld.2
/usr/lib/librt.2 => /usr/lib/librt.2
/opt/ldapux/lib/libplds4.sl => /opt/ldapux/lib/libplds4.sl
/opt/ldapux/lib/libnspr4.sl => /opt/ldapux/lib/libnspr4.sl
/opt/ldapux/lib/libplc4.sl => /opt/ldapux/lib/libplc4.sl
/opt/ldapux/lib/libnspr4.sl => /opt/ldapux/lib/libnspr4.sl
/opt/ldapux/lib/libnss3.sl => /opt/ldapux/lib/libnss3.sl
/opt/ldapux/lib/libnspr4.sl => /opt/ldapux/lib/libnspr4.sl
/opt/ldapux/lib/libplds4.sl => /opt/ldapux/lib/libplds4.sl
/opt/ldapux/lib/libplc4.sl => /opt/ldapux/lib/libplc4.sl
/opt/ldapux/lib/libsoftokn3.sl => /opt/ldapux/lib/libsoftokn3.sl
/opt/ldapux/lib/libnspr4.sl => /opt/ldapux/lib/libnspr4.sl
/opt/ldapux/lib/libplds4.sl => /opt/ldapux/lib/libplds4.sl
/opt/ldapux/lib/libplc4.sl => /opt/ldapux/lib/libplc4.sl
/opt/ldapux/lib/libsoftokn3.sl => /opt/ldapux/lib/libsoftokn3.sl
/opt/ldapux/lib/libplds4.sl => /opt/ldapux/lib/libplds4.sl
/opt/ldapux/lib/libplc4.sl => /opt/ldapux/lib/libplc4.sl
/opt/ldapux/lib/libnss3.sl => /opt/ldapux/lib/libnss3.sl
/opt/ldapux/lib/libnspr4.sl => /opt/ldapux/lib/libnspr4.sl
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/lib/libm.2 => /usr/lib/libm.2
/usr/lib/libdld.2 => /usr/lib/libdld.2
/usr/lib/librt.2 => /usr/lib/librt.2
in this workstation all works.
Thanks ;-)
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2004 11:47 AM
10-18-2004 11:47 AM
Re: Unresolved symbol: ldap_get_option (code) from ./ldapsearch
Few things to poke at.
swverify \* make sure there are no problems with the ldap installation if it was installed from hp depots.
Check the SHLIB_PATH environment variable.
If its not correctly set these kind of errors are common. Modify it or set it to include at least:
SHLIB_PATH=/usr/lib:$SHLIB_PATH
export SHLIB_PATH
leave off the $SHLIB_PATH if not already set. You can check current settings with the echo command
echo $SHLIB_PATH.
If all that checks out, see if the ldap binaries compare in filesize and checksum to a working system.
SEP
swverify \* make sure there are no problems with the ldap installation if it was installed from hp depots.
Check the SHLIB_PATH environment variable.
If its not correctly set these kind of errors are common. Modify it or set it to include at least:
SHLIB_PATH=/usr/lib:$SHLIB_PATH
export SHLIB_PATH
leave off the $SHLIB_PATH if not already set. You can check current settings with the echo command
echo $SHLIB_PATH.
If all that checks out, see if the ldap binaries compare in filesize and checksum to a working system.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2004 05:39 PM
10-18-2004 05:39 PM
Solution
I think that /usr/lib/libldap.sl is culprit. This library contains ldap_get_option symbol.
# nm /usr/lib/libldap.sl | grep ldap_get_option
ldap_get_option | 131244|extern|entry |
ldap_get_option | 131316|extern|code |$CODE$
ldap_get_option | 250652|uext |stub |
I'm guessing that on your system this library has somehow been replaced. You can check this with swverify.
# swverify -v J4269AA
/opt/ldapux/bin/ldapsearch is linked with /usr/lib/libldap.sl, which is in turn linked with libraries in /opt/ldapux/lib. That would explain why you don't see libraries from /opt/ldapux/lib in the output of ldd on the system that throws the error.
# nm /usr/lib/libldap.sl | grep ldap_get_option
ldap_get_option | 131244|extern|entry |
ldap_get_option | 131316|extern|code |$CODE$
ldap_get_option | 250652|uext |stub |
I'm guessing that on your system this library has somehow been replaced. You can check this with swverify.
# swverify -v J4269AA
/opt/ldapux/bin/ldapsearch is linked with /usr/lib/libldap.sl, which is in turn linked with libraries in /opt/ldapux/lib. That would explain why you don't see libraries from /opt/ldapux/lib in the output of ldd on the system that throws the error.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2004 05:52 PM
10-18-2004 05:52 PM
Re: Unresolved symbol: ldap_get_option (code) from ./ldapsearch
LDAP-UX will not configure when you try to do as /opt/ldapux/config/setup.
Try do as,
cd /opt/ldapux/config/
./setup
It will not be using relative path there.
Try to export shared library path as,
export SHLIB_PATH=/opt/ldapux/bin
If you try execute,
/opt/ldapux/bin/ldapsearch
it will work there. It will be executing exact share library path location there when your execute from relative path.
HTH.
Try do as,
cd /opt/ldapux/config/
./setup
It will not be using relative path there.
Try to export shared library path as,
export SHLIB_PATH=/opt/ldapux/bin
If you try execute,
/opt/ldapux/bin/ldapsearch
it will work there. It will be executing exact share library path location there when your execute from relative path.
HTH.
Easy to suggest when don't know about the problem!
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