Re: Cross compilation, warnings and errors

"James K. Lowden" <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <[email protected]>
On Wed, 19 Jan 2011 20:35:50 -0300
Luis Lavena <[email protected]> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.