Skip to Content.
Sympa Menu

freetds - RE: [freetds] RE: Cygwin / freeTDS / sqsh linking problem

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Lowden, James K" <LowdenJK AT bernstein.com>
  • To: "TDS Development Group" <freetds AT lists.ibiblio.org>
  • Subject: RE: [freetds] RE: Cygwin / freeTDS / sqsh linking problem
  • Date: Tue, 19 Apr 2005 15:08:51 -0400

[back onlist]
> From: Mike Boldi [mailto:mboldi AT intrinsiq.com]
> Sent: Tuesday, April 19, 2005 2:37 PM
>
> >> What happens if you remove "-ldl"? That library looks redundant.
>
> Bad things!!
>
> If either I remove -ldl (from the makefile) or link it (as you have) I
get
> Messages like :
>
>
/usr/local/lib/libct.a(iconv.o)(.text+0xd5):/tmp/freetds-0.63/src/tds/ic
onv.
> c:142: undefined
> ference to `_libiconv_close'
>
/usr/local/lib/libct.a(iconv.o)(.text+0xeb):/tmp/freetds-0.63/src/tds/ic
onv.
> c:144: undefined
> ference to `_libiconv_open'
>
/usr/local/lib/libct.a(iconv.o)(.text+0x103):/tmp/freetds-0.63/src/tds/i
conv
> .c:147: undefine
> eference to `_libiconv_close'
>
> I see libiconv on my machine ...????....
>
> find /usr -name libiconv*
>
> /usr/lib/libiconv.a
> /usr/lib/libiconv.dll.a
> /usr/lib/libiconv.la
> /usr/share/doc/Cygwin/libiconv-1.9.2.README
> /usr/share/doc/libiconv-1.9.2
> /usr/share/locale/ca/LC_MESSAGES/libiconv.mo
> /usr/share/locale/da/LC_MESSAGES/libiconv.mo
> /usr/share/locale/de/LC_MESSAGES/libiconv.mo

Oh, well, I'd say those are good things, actually. If libiconv is the
only problem, you have two paths:

1. If you don't really need libiconv -- you're OK with English or ISO
8859-1 -- reconfigure FreeTDS --without-libiconv. Then you won't try to
link it in; you'll be using the built-in replacement.

2. Link it to sqsh explicitly, something like -liconv. I imagine under
Cygwin the libiconv is GNU's, which FreeTDS supports.

--jkl

> >> Here's what I have:
> >>
> >> $ (cd /usr/local/lib/; ls -l libdl*) |cut -b30-
> >> Aug 6 2002 libdl.a -> /usr/local/lib/libct.a
> >>
> >> I don't know where that symlink came from; maybe it's my own
30-second
> >> hack. I do know Sybase's Open Client (for which sqsh is written)
> >> distributes several libraries whose functions FreeTDS combines into
one:
> >> libct.
> >>
> >> Hope that helps. Let us know how it goes.
> >>
> >> --jkl


-----------------------------------------
The information contained in this transmission may contain privileged and
confidential information and is intended only for the use of the person(s)
named
above. If you are not the intended recipient, or an employee or agent
responsible
for delivering this message to the intended recipient, any review,
dissemination,
distribution or duplication of this communication is strictly prohibited. If
you are
not the intended recipient, please contact the sender immediately by reply
e-mail
and destroy all copies of the original message. Please note that we do not
accept
account orders and/or instructions by e-mail, and therefore will not be
responsible
for carrying out such orders and/or instructions. If you, as the intended
recipient
of this message, the purpose of which is to inform and update our clients,
prospects
and consultants of developments relating to our services and products, would
not
like to receive further e-mail correspondence from the sender, please "reply"
to the
sender indicating your wishes. In the U.S.: 1345 Avenue of the Americas, New
York,
NY 10105.




Archive powered by MHonArc 2.6.24.

Top of Page