Skip site navigation (1) Skip section navigation (2)

experimental Watcom support

From: Jon Willeke <willeke(at)users(dot)sourceforge(dot)net>
To: pgsql-odbc(at)postgresql(dot)org
Subject: experimental Watcom support
Date: 2004-02-04 23:41:35
Message-ID: 20040204234013.7D3F1CEF@mail.intersystems.com (view raw or flat)
Thread:
Lists: pgsql-odbc
With the attached patch, I was able to build a non-debug Unicode psqlodbc 
DLL with Open Watcom 1.2 on Windows 2000.  I haven't actually tested it, 
yet.  This patch is probably not suitable for CVS.  Use at your own risk.

I had to make one change to SQLSetDescField() in sqlucode.h, as described 
in MinGW bug 890559 (Open Watcom apparently borrows MinGW's headers).

I encountered what appears to be a bug in Watcom's nmake clone.  It 
sometimes skips compiling a file.  If you compile it by hand, then rerun 
make, it works.

The following is a brief summary of the changes:

I added psqlodbc.rc to EXTRA_DIST in Makefile.am.

I added an _atoi64() work-alike to convert.c, because Watcom defines 
ODBCINT64, but doesn't have _atoi64() or strtoll().

I changed an SQLColAttributeW() parameter from SQLINTEGER * to SQLPOINTER.

I removed a newline in psqlodbc.rc that Watcom's rc clone couldn't handle.

I commented out SQLSetScrollOptions from the .def file.

I aliased some of the functions in the .def file.  This works around what 
may be a misconfiguration in the linker.  I was getting warnings like

   Cannot extract external symbols ... fuzzy linking may not work

I removed some quotes in the Makefile that Watcom's cl clone couldn't handle.

Attachment: psqlodbc-watcom.patch.gz
Description: application/octet-stream (1.7 KB)

pgsql-odbc by date

Next:From: Derek ShawDate: 2004-02-05 19:33:47
Subject: I want to use postresql for this app, but...
Previous:From: Dave PageDate: 2004-02-04 08:56:45
Subject: Re: experimental Unicode support

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group