Package: unixodbc-dev
Version: 2.2.14p2-1
Severity: normal

I was trying to compile a C++ odbc program with the lastest gcc-snapshot
and I got a compile failure on the unixodbc-dev headers.  With a sql.c
file that has solely "#include <sqltypes.h>" I get:

$ /usr/lib/gcc-snapshot/bin/g++ -c sql.c
In file included from sql.c:1:0:
/usr/include/sqltypes.h:400:19: error: 'SQLBIGINT' does not name a type
/usr/include/sqltypes.h:403:20: error: 'SQLUBIGINT' does not name a type

This is with g++ 4.6.0 20100520 (experimental) [trunk revision 159641]
(Debian 20100520-1).

Looking at the preprocessed source, the line in question is:

# 400 "/usr/include/sqltypes.h" 3 4
typedef SQLBIGINT;


sqltypes.h includes unixodbc_conf.h which defines ODBCINT64 to nothing
which renders all the later configuration detection in sqltypes.h
useless.

The release g++ (4.4.4-2) preprocesses this the same, but it doesn't
complain about the compile failure.  I'm not using any 64bit datatypes
in my application, so I don't know if this ever worked or if this
is a recent change.


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-1-686 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Versions of packages unixodbc-dev depends on:
ii  libltdl3-dev                  1.5.26-4   A system independent dlopen wrappe
ii  libodbcinstq1c2               2.2.14p2-1 Qt-based ODBC configuration librar
ii  odbcinst1debian2              2.2.14p2-1 Support library for accessing odbc
ii  unixodbc                      2.2.14p2-1 ODBC tools libraries

unixodbc-dev recommends no packages.

Versions of packages unixodbc-dev suggests:
ii  libqt3-mt-dev                 3:3.3.8b-6 Qt development files (Threaded)

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to