pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jon Willeke <willeke@users.sourceforge.net>
To: pgsql-odbc@postgresql.org
Subject: experimental Watcom support
Date: Wed, 04 Feb 2004 18:41:35 -0500
Message-ID: <20040204234013.7D3F1CEF@mail.intersystems.com> (raw)

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.

Attachments:

  psqlodbc-watcom.patch.gz (application/octet-stream, 1.7K) download

Message-ID: <20040204234013.7D3F1CEF@mail.intersystems.com>
Permalink:  ../20040204234013.7D3F1CEF@mail.intersystems.com/
Also on:    postgresql.org/message-id/20040204234013.7D3F1CEF@mail.intersystems.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: willeke@users.sourceforge.net
  Subject: Re: experimental Watcom support
  In-Reply-To: <20040204234013.7D3F1CEF@mail.intersystems.com>
  References: <20040204234013.7D3F1CEF@mail.intersystems.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox