Re: unit tests errors

"Peter C. Norton" <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <[email protected]>
Your gcc installation isn't putting the libgcc_s.so.1 in the dynamic linker's load path:

> ld.so.1: t0001: fatal: libgcc_s.so.1: open failed: No such file or directory

This always means that you need to either:

1) Put the shared library somewhere that the dynamic linker (ld.so.1
on Solaris) knows about (e.g. /lib, /usr/lib).  Man ld.so.1 and crle
on your solaris box to find out more.  You can see the current ld.so.1
lookup path using crle:

$ crle

Default configuration file (/var/ld/ld.config) not found
  Default Library Path (ELF):   /lib:/usr/lib  (system default)
  Trusted Directories (ELF):    /lib/secure:/usr/lib/secure  (system default)


2) Add the place where the gcc library lives to the configuration
file.  Only do this if you will be building and maintaining a lot of
things linked against libgcc_s.so.1 (e.g. a lot of things being built
with gcc).  This is problematic if you end up with >1 versin of gcc installed.

3) Add the -R</path/to/gcc/lib/dir> and -L</path/to/gcc/lib/dir> to
your LDFLAGS when running configure, make, and make check so that the
various tds libraries will have that in their runtime linker path.
You can see this with gnu's objdump -x <library file name>.  This is
often the preferred solution.

-Peter
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.