unixodbc-dev: 64bit typedefs don't work
Bug #620428 reported by
Matthias Klose
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
unixodbc (Debian) |
Fix Released
|
Unknown
|
|||
unixodbc (Fedora) |
Fix Released
|
Medium
|
|||
unixodbc (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: unixodbc
see the debian report.
patch from the fedora report.
* Fix output of odbc_config --header, per Fedora bug #518623.
This error results in SQLBIGINT and SQLUBIGINT being misdefined as
int, where they need to be [unsigned] long or long long.
Changed in unixodbc (Debian): | |
status: | Unknown → Confirmed |
Changed in unixodbc (Debian): | |
status: | Confirmed → Fix Released |
Changed in unixodbc (Fedora): | |
importance: | Unknown → Medium |
status: | Unknown → Fix Released |
To post a comment you must log in.
Created attachment 358225
get the defines into the headers
Description of problem:
Version-Release number of selected component (if applicable):
How reproducible:
Steps to Reproduce:
#include <sqltypes.h>
#include <stdio.h>
int main(void)
fprintf( stderr, "size is %d\n", sizeof(SQLBIGINT));
{
return 0;
}
Actual results:
size is 4
Expected results:
I strongly suspect it should be 8
Additional info: unixodbc_ conf_platform. h has just
This comes about because /usr/include/
#define ODBCINT64
which comes from odbc_config --header, it should be
#define ODBCINT64 "something"
A fix attached, which is basically derived from head unixODBC cvs. Quite possibly technically anything that built against our unixODBC headers is busted.