Skip to Content.
Sympa Menu

freetds - RE: [freetds] Connecting to MS SQL Server

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Lowden, James K" <LowdenJK AT bernstein.com>
  • To: "'freetds AT lists.ibiblio.org'" <freetds AT lists.ibiblio.org>
  • Subject: RE: [freetds] Connecting to MS SQL Server
  • Date: Fri, 31 Jan 2003 14:44:53 -0500

> From: Martin Spott [mailto:mas AT plesnik.de]
> Sent: January 31, 2003 2:29 PM
>
> > > .... though it might be quite difficult to build sqsh-2.1
> against current
> > > FreeTDS CVS - at least the last time I tried, a couple of
> weeks ago,
>
> I found the reason why it fails: On my machine 'configure'
> puts the wrong
> libraries into the linker command:
>
> checking Open Client installation... /opt/freetds
> checking Open Client libraries...
> checking Open Client needs net libraries... no (version FreeTDS)
> checking Open Client OS libraries... -ldl -lm

Hmm. I remember sqsh 2.1 not being all that hard to build, but the other
day I built it on another box and was vexed for quite awhile, because
configure couldn't be coerced to show up for work. I ended up with a little
script to fix various things, attached here for your giggling pleasure:

<script>
$ more ../sqsh-2.1/regen
export LDFLAGS="${LDFLAGS} -L /usr/pkg/lib"
export CFLAGS="${CFLAGS} -g -I/usr/pkg/include"
export SYBASE=/usr/local

./configure --with-readline

perl -i -pe '
if (/^READLINE/) {s!/local/!/pkg/!g;}
s/^(SYBASE_LIBS = )/$1 -liconv /;
' \
src/Makefile
grep ^SYBASE src/Makefile

perl -i -pe '
s!/\* #undef HAVE_STRERROR \*/!#define HAVE_STRERROR 1!;
s!/\* #undef HAVE_STRFTIME \*/!#define HAVE_STRFTIME 1!;
s!/\* #undef HAVE_LOCALTIME \*/!#define HAVE_LOCALTIME 1!;
s!/\* #undef HAVE_STRCASECMP \*/!#define HAVE_STRCASECMP 1!;
' \
src/config.h
</script>

--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.






Archive powered by MHonArc 2.6.24.

Top of Page