| Bug #7964 | ldd failed for libmyodbc3.sl on HP-UX | ||
|---|---|---|---|
| Submitted: | 17 Jan 2005 17:43 | Modified: | 21 Oct 2005 14:34 |
| Reporter: | Harry Xie | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | Connector / ODBC | Severity: | S1 (Critical) |
| Version: | 3.51.10 | OS: | HP/UX (HP-UX 11.00) |
| Assigned to: | Peter Harvey | CPU Architecture: | Any |
[21 Jan 2005 5:25]
Dean Ellis
Verified. Thank you for bringing this to our attention.
[26 Jan 2005 9:31]
Lenz Grimmer
Another workaround instead of setting SHLIB_PATH is running the following command: chatr +b disable +s enable -l /home/mysqldev//myodbc/3.51.10/SandBox/HPUX/11/3750/64/unixODBC/lib/libodbcinst.sl.1 libmyodbc3-3.51.10.sl This will disable the static path name for libodbcinst.sl. It can then be placed in /usr/lib or /usr/local/lib.
[21 Oct 2005 14:34]
Mark Matthews
Should be fixed with 3.51.12:
...@hp3750:...> uname -a
HP-UX hp3750 B.11.00 U 9000/785 2009890692 unlimited-user license
...@hp3750:...> ldd libmyodbc3-3.51.12.sl
/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/libm.2 => /usr/lib/libm.2
/usr/lib/libnsl.1 => /usr/lib/libnsl.1
/usr/lib/libxti.2 => /usr/lib/libxti.2
[21 Oct 2005 14:37]
Mark Matthews
Should be fixed with 3.51.12:
...@hp3750:...> uname -a
HP-UX hp3750 B.11.00 U 9000/785 2009890692 unlimited-user license
...@hp3750:...> ldd libmyodbc3-3.51.12.sl
/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/libm.2 => /usr/lib/libm.2
/usr/lib/libnsl.1 => /usr/lib/libnsl.1
/usr/lib/libxti.2 => /usr/lib/libxti.2

Description: When runninng ldd on MyODBC driver, the following message showed up: #ldd libmyodbc3.sl /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/dld.sl: Can't open shared library: /home/mysqldev//myodbc/3.51.10/SandBox/HPUX/11/3750/64/unixODBC/lib/libodbcinst.sl.1 /usr/lib/dld.sl: No such file or directory It seemed libmyodbc3.sl has hard coded path for libodbcinst.sl.1. I had set up correct SHLIB_PATH before trying. How to repeat: Run ldd on libmyodbc.sl. Suggested fix: Build the library using relative path, and put current dir in its search path.