Re: problem with ld.so.conf Redhat Enterprise



Hi,

kjuliff@xxxxxxxxx <kjuliff@xxxxxxxxx> told us:

I am getting an error when I attempt to run a unixODBC program.

This is the error

ODBCConfig: error while loading shared libraries: libSM.so.6: cannot
open shared
object file: No such file or directory

You can see from the ldd output that the correct directory is searched.

What could be the problem.

[kcj@kylie lib64]$ ldd /usr/X11R6/lib64/libSM.so.6
libICE.so.6 => /usr/X11R6/lib64/libICE.so.6
(0x000000306f500000)
libc.so.6 => /lib64/tls/libc.so.6 (0x000000326d800000)
/lib64/ld-linux-x86-64.so.2 (0x000000552aaaa000)


you are running 64-Bit RHEL, but are you sure your ODBC program is
64-Bit? I have seen such problems with 32-Bit programs on 64-Bit RHEL,
that search their libraries not in the 'lib64' dirs but in the 'lib'
dirs. I would try to run a 'strace' on that program, to see where it
trys to find it's libraries.

gk
.



Relevant Pages

  • Re: Number of Objects in Static Link Library
    ... Up until this time, I've generated the libraries from object files that each represent a related group of functions and their data. ... The end result is that if a symbol in the object file is referenced, the entire object file is dragged in, even if just one function is referenced. ... With most linkers, the minimum amount that can normally be pulled in is one "module" or "translation unit". ... This normally corresponds to a single .o file that comes from either compiling a .c file or assembling an assembly-language file. ...
    (comp.unix.programmer)
  • Re: A way to decrease executable sizes?
    ... >Is there any way to make the linker reject all the code that isn't needed? ... When you create a project that is composed of several primary source files, ... of object file: a "library" file. ... the libraries is /not/ necessarily one we want, ...
    (comp.lang.cpp)
  • Re: Number of Objects in Static Link Library
    ... statically linking against them. ... Up until this time, I've generated the libraries from object files that each represent a related group of functions and their data. ... The end result is that if a symbol in the object file is referenced, the entire object file is dragged in, even if just one function is referenced. ...
    (comp.unix.programmer)
  • Re: Number of Objects in Static Link Library
    ... and statically linking against them. ... each represent a related group of functions and their data (for example, ... result is that if a symbol in the object file is referenced, ... and would represent typical usage of libraries and development tools. ...
    (comp.unix.programmer)
  • Number of Objects in Static Link Library
    ... I've experimented with making Linux libraries (to shorten compile time) and ... I've generated the libraries from object files that each ... assume) is that if a symbol in the object file is referenced, ...
    (comp.unix.programmer)