Skip to Content.
Sympa Menu

freetds - Re: [freetds] Cross compilation, warnings and errors

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "James K. Lowden" <jklowden AT freetds.org>
  • To: freetds AT lists.ibiblio.org
  • Subject: Re: [freetds] Cross compilation, warnings and errors
  • Date: Sat, 22 Jan 2011 14:26:42 -0500

On Wed, 19 Jan 2011 20:35:50 -0300
Luis Lavena <luislavena AT gmail.com> wrote:

> In file included from ../../../src/apps/bsqldb.c:52:0:
> ../../../include/sqlfront.h:39:30: error: conflicting type qualifiers
> for ?LPCBYTE?
> /Users/luis/mingw/w32/bin/../lib/gcc/i686-w64-mingw32/4.5.2/../../../../i686-w64-mingw32/include/winscard.h:22:23:
> note: previous declaration of ?LPCBYTE? was here
> make[3]: *** [bsqldb.o] Error 1
...
> Here, the issue could be associated an existing declaration of LPCBYTE
> that exists on mingw-w64 headers (but could be missing from MSVC or
> mingw.org headers)

If memory serves, LPCBYTE is defined in windows.h. It's not used by FreeTDS,
but is provided in the Microsoft-compatible header file, sqlfront.h for use
by applications. The versions of winscard.h I found on the 'net that define
LPCBYTE looked very similar to what's in sqlfront.h, though, so it's hard to
see exactly what gcc is complaining about.

If I were you, I'd look into why the "TiniTDS" project includes winscard.h,
which supports smartcards. FreeTDS certainly doesn't need it. If your aim
is cross-compilation, minimizing your include file dependencies will make
your job easier.

Also, unless you absolutely require Microsoft compatibility, I recommend
using the Sybase(-standard) sybfront.h and sybdb.h instead.

> On a sidenote, I was unable to find a bug tracker to report this issue
> (direct link form the website) or source code checkout instructions
> either.

There is a link under "Developing" at www.freetds.org to the Sourceforge
site. Near the top of that page is a "Tracker" link. I find issues easier
to resolve here on the mailing list, though, where we can discuss the
details.

HTH. Good luck with your project.

--jkl






Archive powered by MHonArc 2.6.24.

Top of Page