[freetds] FreeTDS with Wine Issue

Chad Sikorra chad.sikorra at gmail.com
Fri May 16 22:27:00 EDT 2008


On Fri, May 16, 2008 at 6:13 PM, James K. Lowden <jklowden at freetds.org>
wrote:

>
> All that said, though, the log looks odd, too: you're sending a cancel
> packet.  Maybe the next level up gets confused. (Or maybe it expects
> correct behavior, which it's unlikely to get before FreeTDS 0.82.)
>

You are correct that the next level up gets confused. The program actually
errors out two separate times after the initial issue because it complains
about data it's expecting.

Suggestions:
>
> 1.  Upgrade.
> 2.  Output both the ODBC log and the FreeTDS log to standard output, so
> that they're interwoven.  (Probably easier said than done with WINE.)
> That might clarify the state of the driver when the message is produced
> (by the DM, I assume).
>
> HTH.  I'm crossing my fingers that upgrading will do the trick.
>
> --jkl
>

Suggestion number one did the trick!

However, compiling it was a bit of a chore. My first obstacle was a missing
odbc_config file. It turns out an odbc_config file was not included with my
distribution (Ubuntu 8.04). After a bit of searching I found a custom one to
use. Then when I would compile it wouldn't build the libtdsodbc file. After
a lot of messing around I figured out I had to do ' ./configure
--with-unixodbc=/usr ' to get it to build correctly. It was a pain, but a
nice learning experience I guess :)

Also, I still received the same error message if I had the TDSVER set to
4.2. Setting the version to 8.0 cleared the issue up and the application now
launches and runs! There are still some issues with the application,
although it's usable for the most part. However, the rest of the issues are
wine related.

Thanks again for the suggestion. That's another application I can cross off
my list of reasons for still booting into my Windows XP virtual machine.
-- 
Chad Sikorra



More information about the FreeTDS mailing list