Skip to Content.
Sympa Menu

freetds - RE: [freetds] Error building freetds-0.62.1 on SunOS 5.6 etc.

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "ZIGLIO, Frediano, VF-IT" <Frediano.Ziglio AT vodafone.com>
  • To: "FreeTDS Development Group" <freetds AT lists.ibiblio.org>
  • Subject: RE: [freetds] Error building freetds-0.62.1 on SunOS 5.6 etc.
  • Date: Fri, 30 Jan 2004 14:18:36 +0100

>
> I've found a problem with freetds (tsql to be specific) and a
> workaround
> that I can live with... but as always any input would be appreciated.
>
>
> When building freetds-0.62.1 on SunOS 5.6 with;
>
> /configure --prefix=$HOME --enable-msdblib
> --enable-sybase-compat
>
> make and make install completes without any complaints but
> tsql coredump
> with;
> ./bin/tsql -S <$SERVER> -U <$USER>
> locale is "en_US"
> locale charset is "ISO8859-1"
> Password:
> Assertion failed: 0, file iconv.c, line 338
> Abort(coredump)
>
>
>
> I've tried both LANG=C and LANG=en_us with the same result.
>

Known problem. You have two options:
- install additional iconv packages
- disable libiconv use (as you did below)

> Following a "make clean" and;
>
> ./configure --prefix=$HOME --enable-msdblib
> --enable-sybase-compat --disable-libiconv
>
> make fails with;
>
> sh: test: argument expected
> *** Error code 1
> make: Fatal error: Command failed for target
> `doc/freetds-0.62.1/reference/index.html'
> Current working directory <$HOME>/freetds-0.62.1/doc
> *** Error code 1
>
> make install then fails with;
>
> *** Error code 2
> make: Fatal error: Command failed for target `dblib.api.sgml'
> Current working directory <$HOME>/freetds-0.62.1/doc
> *** Error code 1
> make: Fatal error: Command failed for target
> `doc/freetds-0.62.1/userguide/index.htm'
> Current working directory <$HOME>/freetds-0.62.1/doc
> *** Error code 1
> make: Fatal error: Command failed for target
> `install-recursive'
>

I think make clean clean too much... unpack again dist should solve
these compile problems...

> However I can connect to a MS SQL 2000 server with tsql...
> but not to a
> Sybase Adaptive Server Enterprise 12.5. I've tried with tds
> versions 5.0
> and 6.0 but NOT 4.2 according to the README file.
>

6.0 ??? Correct version it's 5.0.

> ./bin/tsql -S <$MSSERVER> -U <$USER> -I $HOME/etc/freetds.conf
> locale is "en_US"
> locale charset is "ISO8859-1"
> Password:
> Msg 5703, Level 0, State 1, Server <$MSSERVER>, Line 0
> Changed language setting to us_english.
> 1> select @@version
> 2> go
>
> Microsoft SQL Server 2000 - 8.00.760 (Intel X86)
> Dec 17 2002 14:22:05
> Copyright (c) 1988-2003 Microsoft Corporation
> Enterprise Edition on Windows NT 4.0 (Build 1381:
> Service Pack 6)
>
> 1> exit
>
> ./bin/tsql -S <$SYBSERVER> -U <$USER> -I $HOME/etc/freetds.conf
> locale is "en_US"
> locale charset is "ISO8859-1"
> Password: <PASSWORD>
> Msg 4002, Level 14, State 1, Server <$SYBSERVER>, Line 0
> Login failed.
>
> Msg 20014, Level 9, State 0, Server OpenClient, Line 0
> Login incorrect.
> There was a problem connecting to the server
>

Some ASE server wants freetds server name equal to real server name,
perhaps this is the problem...

freddy77




Archive powered by MHonArc 2.6.24.

Top of Page