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: "FreeTDS Development Group" <freetds AT lists.ibiblio.org>
  • Subject: RE: [freetds] RE: Cygwin / freeTDS / sqsh linking problem
  • Date: Tue, 19 Apr 2005 14:04:17 -0400

> From: Mike Boldi
> Sent: Tuesday, April 19, 2005 1:22 PM
>
> Now I am in a MSSQL environment and want sqsh desparately .. So I
installed
> cygwin ! I'll show bill gates!
>
> Then freeTDS, tsql works great! THANKS!

Less filling, too. ;-)

> Then downloaded SQSH, configure went ... ok
>
> set SYBASE=/usr/local ( default path )
>
> changed makefile in src directory as recommend to
> SYBASE_LIBS = -lct -lm -ldl
>
> cool!
> make complies all sourcecode, but linking cannot find
> libdl
>
> cygwin does not have libdl.a in the distribution! Hmmmmm
>
> Error Message follows.
...
> cygwin/bin/ld: cannot find -ldl
> collect2: ld returned 1 exit status
> make[1]: *** [sqsh] Error 1
> make[1]: Leaving directory `/tmp/sqsh-2.1.3/src'
> make: *** [build-subdirs] Error 2

What happens if you remove "-ldl"? That library looks redundant.
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