Skip to Content.
Sympa Menu

freetds - [freetds] Compiling freetds on IBM Z series

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Schonecker, Brian" <bschonecker AT HealthPlan.com>
  • To: "'freetds AT lists.ibiblio.org'" <freetds AT lists.ibiblio.org>
  • Subject: [freetds] Compiling freetds on IBM Z series
  • Date: Mon, 11 Mar 2013 15:25:38 +0000

I want to compile freetds on IBM Z series linux and I want to duplicate the
build/configure arguments that were used at the Red Hat/Centos repositories.
I have not been able to find the SRPMS that contain freetds at either Red
Hat or Centos forge.

Is there any way I can tell what ./configure arguments were used? I've tried
lots of various arguments but I am always getting a bunch of header files and
other miscellaneous stuff along for the ride.

`rpm -qil freetds` indicates a fairly minimal set of (non documentation)
files.

I want the same dependencies and requirements as the freetds RPM from either
Red Hat or Centos.

Yes, I could just add the extra stuff along for the ride but I'd like an RPM
as true to the 'official' one.

Thanks, Brian

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
CONFIDENTIALITY NOTICE: If you have received this email in error, please
immediately notify the sender by e-mail at the address shown.This email
transmission may contain confidential information.This information is
intended only for the use of the individual(s) or entity to whom it is
intended even if addressed incorrectly. Please delete it from your files if
you are not the intended recipient. Thank you for your compliance.
>From sf AT 4js.com Mon Mar 11 11:35:17 2013
Return-Path: <sf AT 4js.com>
X-Original-To: freetds AT lists.ibiblio.org
Delivered-To: freetds AT lists.ibiblio.org
Received: by lists.ibiblio.org (Postfix, from userid 20217)
id 0F111E8B70; Mon, 11 Mar 2013 11:35:17 -0400 (EDT)
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on
mailman1.ibiblio.org
X-Spam-Level:
X-Spam-Status: No, score=-1.0 required=5.0 tests=AWL,BAYES_40,
KHOP_SC_TOP_CIDR8 autolearn=ham version=3.3.1
Received: from mail231.strasbourg.4js.com (mail231.strasbourg.4js.com
[92.103.31.231])
by lists.ibiblio.org (Postfix) with ESMTP id C9F2AE8B49
for <freetds AT lists.ibiblio.org>; Mon, 11 Mar 2013 11:35:14 -0400 (EDT)
Received: from [10.0.0.204] (orca.strasbourg.4js.com [10.0.0.204])
(authenticated bits=0)
by mail231.strasbourg.4js.com (8.14.3/8.14.3/Debian-5+lenny1) with
ESMTP id r2BFZDPe023534
(version=TLSv1/SSLv3 cipher®S256-SHA bits%6 verify=NOT)
for <freetds AT lists.ibiblio.org>; Mon, 11 Mar 2013 16:35:13 +0100
Message-ID: <513DFA14.3050706 AT 4js.com>
Date: Mon, 11 Mar 2013 16:36:52 +0100
From: Sebastien FLAESCH <sf AT 4js.com>
Organization: Four Js Development Tools
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US;
rv:1.9.1.16) Gecko/20111110 Lightning/1.0b1 Icedove/3.0.11
MIME-Version: 1.0
To: freetds AT lists.ibiblio.org
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: clamav-milter 0.97 at mail231
X-Virus-Status: Clean
X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.3
(mail231.strasbourg.4js.com [10.10.0.1]);
Mon, 11 Mar 2013 16:35:13 +0100 (CET)
Subject: [freetds] SQLPutData() with a size of zero
X-BeenThere: freetds AT lists.ibiblio.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
List-Id: FreeTDS Development Group <freetds.lists.ibiblio.org>
List-Unsubscribe: <http://lists.ibiblio.org/mailman/listinfo/freetds>,
<mailto:freetds-request AT lists.ibiblio.org?subject=unsubscribe>
List-Archive: <https://lists.ibiblio.org/sympa/arc/freetds>
List-Post: <mailto:freetds AT lists.ibiblio.org>
List-Help: <mailto:sympa AT lists.ibiblio.org?subject=HELP>
List-Subscribe: <http://lists.ibiblio.org/mailman/listinfo/freetds>,
<mailto:freetds-request AT lists.ibiblio.org?subject=subscribe>
X-List-Received-Date: Mon, 11 Mar 2013 15:35:17 -0000

Hello,

I believe I found a defect (0.92.377): with SQL_DATA_AT_EXEC binding, when a
blob is empty but not null, it should be possible to call SQLPutData() with
a size of zero:

r = SQLPutData(st->stmtHandle, (SQLPOINTER) "", 0L);

This is working with SQL Native Client and Easysoft ODBC for SQL Server...

But FreeTDS returns:

HY001 / [FreeTDS][SQL Server]Memory allocation failure

...

It appears that the code in prepare_query.c:continue_parse_prepared_query()
is not prepared to get a StrLen_or_Ind of zero...

In fact we end up in this part, with len=0:

if (blob->textvalue)
p = (TDS_CHAR *) realloc(blob->textvalue, len +
curcol->column_cur_size);
else {
assert(curcol->column_cur_size == 0);
p = (TDS_CHAR *) malloc(len);
}
if (!p) {
odbc_errs_add(&stmt->errs, "HY001", NULL); /* Memory
allocation error */
return SQL_ERROR;
}


and here malloc(0) returns zero (AIX 6.1)...

Seb




Archive powered by MHonArc 2.6.24.

Top of Page