X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:to:subject:in-reply-to:message-id
	:references:mime-version:content-type; q=dns; s=default; b=EZkvx
	3U7Oc7iZCc5dZgdaV/tuVAkN0QlX0i8EtMHCVA9dtiN3HRZltxzEJkXKUqtKAc3q
	jf7BZrjwgvwqju4vzL0zUozq9EhUwUoTIK9qLsO51OMNfNRriUs8ieWLhQzGSWFI
	6yBrcTEQiI4Vh2aX0uJ2nldf0AZ9n/oOFkykCk=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:to:subject:in-reply-to:message-id
	:references:mime-version:content-type; s=default; bh=4RvQl67iLRc
	UILXijcuOQU0t54Y=; b=epdgJhqm61Zg/DhmfDN/9z2+6ASuxbyVflFfBKjTr2L
	IUaI+yNvDjV8sTDgVfA/rBaWQI6PPwAs7sqCzjoSghiAJhLG+ipdhwpdY3eRvROy
	htympPfFbkrmbnlwGZg35oF5jwFLJo90AR+jIDTW6m4YveqDojPZGdnO4EgdOqTo
	=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=2.7 required=5.0 tests=AWL,BAYES_50,GARBLED_BODY,KHOP_THREADED,RDNS_NONE,SPF_PASS autolearn=no version=3.3.2
X-HELO: smtp6-g21.free.fr
Date: Fri, 6 Sep 2013 15:31:16 +0200 (CEST)
From: =?ISO-8859-15?Q?S=E9bastien_Dailly?= <sebastien@chimrod.com>
To: cygwin@cygwin.com
Subject: Re: iodbc always in error (solved)
In-Reply-To: <alpine.DEB.2.10.1309050947200.21412@goku.chimrod.com>
Message-ID: <alpine.DEB.2.10.1309061442360.21412@goku.chimrod.com>
References: <alpine.DEB.2.10.1309050947200.21412@goku.chimrod.com>
User-Agent: Alpine 2.10 (DEB 1266 2009-07-14)
MIME-Version: 1.0
Content-Type: MULTIPART/MIXED; BOUNDARY="-1463811840-1559535069-1378474276=:21412"

---1463811840-1559535069-1378474276=:21412
Content-Type: TEXT/PLAIN; format=flowed; charset=UTF-8
Content-Transfer-Encoding: 8BIT

Hello,

I've sent a mail here yesterday requesting for help in order to make
iodbc work in cygwin. I've investigated in the library code and found
something interesting :

In the log I've sent yesterday[1], each function name start with an « _ » 
wich does not appear in the sql driver library :

> objdump.exe -x /usr/lib/cygsqlite3odbc.dll | less
>           …
>         [   0] SQLAllocConnect
>         [   1] SQLAllocEnv
>         [   2] SQLAllocHandle
>         [   3] SQLAllocStmt
>         [   4] SQLBindCol
>         [   5] SQLBindParameter
>           …

The iodbc package contains the file « iodbc/henv.ci »[2] wich is actualy
an index of the declared function to call. There is a strange preprocess
instuctions at l79 wich needs to be completed in order to works in
cygwin :

> #define CLI    "SQL"

now you can rebuild the package and the odbc will work.

You can consider this mail as a bugreport (and I hope it will be
reported in the cygwin package).

[1] http://pastebin.com/mzDLUC3x
[2] https://github.com/openlink/iODBC/blob/develop/iodbc/henv.ci

-- 
Sébastien Dailly

---1463811840-1559535069-1378474276=:21412
Content-Type: text/plain; charset=us-ascii

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
---1463811840-1559535069-1378474276=:21412--
