Kbase P100378: ODBC connection fails on Linux when using ColdFusion with failed to load libodbc.so error
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  12/4/2007 |
|
Status: Unverified
FACT(s) (Environment):
Linux Intel
Progress 9.1x
SYMPTOM(s):
ODBC connection fails on Linux using Cold Fusion with error:
java.sql.SQLException: IDS Server: Database library for 'dsn' failed to load (libodbc.so: cannot open shared object file: No such file or directory)
The root cause was that: java.sql.SQLException: IDS Server: Database library for 'dsn' failed to load (libodbc.so: cannot open shared object file: No such file or directory)
Execution of ' make all ' for demoodbc.c test connection fails with undefined reference errors:
gcc -o demoodbc -I../include demoodbc.c -L../lib -lodbc -lpthread
../lib/libodbc.so: undefined reference to `getpwuid_r@GLIBC_2.1.2'
../lib/libodbc.so: undefined reference to `getpwnam_r@GLIBC_2.1.2'
/lib/libdl.so.2: undefined reference to `_dl_vsym@GLIBC_2.2'
/lib/libdl.so.2: undefined reference to `_dl_sym@GLIBC_2.2'
collect2: ld returned 1 exit status
make: *** [demoodbc] Error 1
CAUSE:
Earlier version of compat-libstdc++ is installed on the system or missing.
FIX:
On Red Hat Linux:
Install the compat-libstdc++-7.3-2.96.122 (or later).
The file "compat-libstdc++-7.3-2.96.122.rpm" can be found on the Operating System's installation CD's and can be installed via "rpm -Uv compat-libstdc++-7.3-2.96.122"For SuSe Linux the package name is "compat-something", where the something is for example "compat-2002.8.15-29" for SLES 8 or "compat-2004.4.2-3" for SuSe 9.1.
This library can be found on the installation CD or download it from http://www.rpmfind.net