Skip to Content.
Sympa Menu

freetds - Re: [freetds] Build issue on AIX (invalid connection)

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Worman, Tyler" <tworman AT med.umich.edu>
  • To: "freetds AT lists.ibiblio.org" <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] Build issue on AIX (invalid connection)
  • Date: Tue, 22 Sep 2015 16:26:03 +0000

I'm suffering through the same issue at present!
It seems to be related to libiconv. See your log:
local name for UCS-2LE is (null)
iconv.c:187:local name for UCS-2BE is UCS-2

On a working 32-bit version of FreeTDS on AIX, that (null) isn't there.

Which version of Iconv are you using? If you can build gnu libiconv as 64bit,
I'm guessing it might work. I've read that the AIX libiconv is "incomplete"

Where I'm at:
I can't build a 64 bit libiconv successfully. I get:
libtool: compile: /home/tworman/libiconv-1.14/build-aux/compile gcc -I. -I.
-I../include -I./../include -I.. -I./.. -maix64
-DLIBDIR=\"/home/tworman/local64/lib\" -DBUILDING_LIBICONV -DBUILDING_DLL
-DENABLE_RELOCATABLE=1 -DIN_LIBRARY
-DINSTALLDIR=\"/home/tworman/local64/lib\" -DNO_XMALLOC
-Dset_relocation_prefix=libiconv_set_relocation_prefix
-Drelocate=libiconv_relocate -DHAVE_CONFIG_H -c ./iconv.c
../libtool[11]: /home/tworman/libiconv-1.14/build-aux/compile: not found
make: The error code from the last command is 1.

I assumed it was a libtool issue.
Unable to even configure a 64 bit lib tool as it needs a newer m4 than what I
have.

Unable to build m4 as it complains about:
In file included from quotearg.c:43:
./wctype.h:727: error: conflicting types for 'wctype_t'
/opt/freeware/lib/gcc/powerpc-ibm-aix6.1.0.0/4.2.0/include/ctype.h:119:
error: previous declaration of 'wctype_t' was here
./wctype.h:776: error: conflicting types for 'wctrans_t'
/usr/include/wctype.h:52: error: previous declaration of 'wctrans_t' was here
make: The error code from the last command is 1.


-----Original Message-----
From: FreeTDS [mailto:freetds-bounces AT lists.ibiblio.org] On Behalf Of
Sebastien FLAESCH
Sent: Tuesday, September 22, 2015 11:17 AM
To: freetds AT lists.ibiblio.org
Subject: Re: [freetds] Build issue on AIX (invalid connection)

And here is the TDSDUMP (0.95-rc3)...
Seb

On 09/22/2015 05:08 PM, Sebastien FLAESCH wrote:
> Also tested with 0.95-rc3 by the way.
> Seb
>
> On 09/22/2015 05:07 PM, Sebastien FLAESCH wrote:
>> Trying to build 0.95.5 on AIX 6.1 in 64bit mode...
>>
>> $ export OBJECT_MODE=64
>>
>> $ CC="gcc -maix64" CXX="g++ -maix64" LDFLAGS="-maix64" ./configure
>> --prefix=$FTMDIR --with-odbc-nodm=/dbs/64bits/uxo/2.3.1
>>
>> Note that we are using unixODBC 2.3.1, and we don't want to use
>> unixODBC as we link directly with libtdsodbc.a/.so ...
>>
>> A simple connection fails and SQLGetDiagRec() returns a strange error
>> message:
>>
>> SQL State: 42000
>> SQL code : 18456
>> Message : [FreeTDS][SQL Server]L
>>
>> SQL SERVER error 18456 is an invalid user/login issue, but when I
>> switch to an older version of FreeTDS (0.92), same data source +
>> username + login connects without problem...
>>
>> Any ideas?
>>
>> I suspect some unixODBC defines problem...
>>
>> Any way to check that the unixODBC defines (32b/64b SQLLEN) match?
>>
>> sizeof(SQLLEN) = 8
>>
>> Seb
>> _______________________________________________
>> FreeTDS mailing list
>> FreeTDS AT lists.ibiblio.org
>> http://lists.ibiblio.org/mailman/listinfo/freetds
>>
>
> _______________________________________________
> FreeTDS mailing list
> FreeTDS AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/freetds
>

**********************************************************
Electronic Mail is not secure, may not be read every day, and should not be
used for urgent or sensitive issues





Archive powered by MHonArc 2.6.24.

Top of Page