Neoview ODBC Drivers Manual (R2.2 SP1)

Table Of Contents
2. Check the configuration of the application:
Set trace ON in the MXODSN configuration file.
Make sure that the servers have been started.
Make sure that the executable has been linked in with the correct version of the driver.
For example:
ldd connect_test
libhpodbc_l.so.1 => /usr/lib/libhpodbc_l.so.1
(0x0091f000)
libc.so.6 => /lib/tls/libc.so.6 (0x00334000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x04d5a000)
libm.so.6 => /lib/tls/libm.so.6 (0x00465000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x005c2000)
/lib/ld-linux.so.2 (0x0031b000)
Debugging
gdb is used to debug application on Linux and HP systems. Before starting gdb, make sure that
the executable has been linked in with the right version of the library (use ldd).
On Linux, if your test program uses a non default library, set the environment variable
LD_LIBRARY_PATH to the directory where the library resides.
For example:
gdb program
(gdb) list
(gdb) break (break point is a line number, function name, etc.)
(gdb) run
(gdb) step
(gdb) backtract (to list trace)
To analyze a core dump file, enter:
gdb program core
On HP-UX, to instruct gdb to ignore SIGBUS (because of an unaligned data issue), enter:
(gdb) handle SIGBUS noprint pass
More information on gdb is available at http://www.gnu.org/software/gdb/documentation
Getting the Version of the Driver
These steps print version information on the terminal:
1. Move to the directory where you installed the library file of the HP Neoview ODBC driver:
cd your-library-home
your-library-home is the directory where you installed the library file of the HP Neoview
ODBC driver. For details, see Step 6 in “Installing or Reinstalling HP Neoview ODBC Drivers
for Linux, HP-UX, IBM AIX®, and Sun Solaris”.
The nm command returns this version information:
_###HPODBC_x_y_z_yymmdd
The “x_y_z string is the version number (for example, 1_0_0).
The “yymmdd string is the date, where yy is the year, mm is the month, and dd is the day
(for example, 060419).
42 Installing the HP Neoview ODBC Drivers