sqliteodbc/amd64 does not compile with unixodbc-dev-2.2.14p2-1ubuntu1

Bug #670369 reported by Simon Schubert
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sqliteodbc (Ubuntu)
Invalid
Undecided
Rolf Leggewie

Bug Description

debuild compiler output:

sqliteodbc.c: At top level:
sqliteodbc.c:7076: error: conflicting types for 'SQLSetStmtOption'
/usr/include/sql.h:796: note: previous declaration of 'SQLSetStmtOption' was here

This is because SQLSetStmtOption uses the SQLROWCOUNT type which does not exist in /usr/include/sqltypes.h for 64 bit systems:

/*
 * These are not supprted on 64bit ODBC according to MS, removed, so use at your peril
 *
 typedef SQLULEN SQLROWCOUNT;
 typedef SQLULEN SQLROWSETSIZE;
 typedef SQLULEN SQLTRANSID;
 typedef SQLLEN SQLROWOFFSET;
*/

SQLSetStmtOption is instead declared with SQLULEN in /usr/include/sql.h.

Tags: patch
Revision history for this message
Simon Schubert (corecode) wrote :
tags: added: patch
Revision history for this message
Simon Schubert (corecode) wrote :

you can also pull from my branch, it contains another fix that is required for erlang-odbc. This other fix has been submitted upstream and was integrated in 0.86.

Revision history for this message
Rolf Leggewie (r0lf) wrote :

does this ever occur in trusty or later?

Changed in sqliteodbc (Ubuntu):
assignee: nobody → Rolf Leggewie (r0lf)
status: New → Incomplete
Revision history for this message
Simon Schubert (corecode) wrote : Re: [Bug 670369] Re: sqliteodbc/amd64 does not compile with unixodbc-dev-2.2.14p2-1ubuntu1

I'm not using Ubuntu anymore, so I cannot test.

On 07/28/2015 06:53 PM, Rolf Leggewie wrote:
> does this ever occur in trusty or later?
>
> ** Changed in: sqliteodbc (Ubuntu)
> Status: New => Incomplete
>
> ** Changed in: sqliteodbc (Ubuntu)
> Assignee: (unassigned) => Rolf Leggewie (r0lf)
>

Revision history for this message
Rolf Leggewie (r0lf) wrote :

Thank you for reporting back. I'll close this ticket as unreproducible.

Changed in sqliteodbc (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.