From: Craig Ringer <craig@postnewspapers.com.au>
To: Ravi Katkar <Ravi.Katkar@infor.com>
Cc: 'pgsql-odbc@postgresql.org' <pgsql-odbc@postgresql.org>
Subject: Re: ODBC and configure
Date: Tue, 27 Jul 2010 19:08:52 +0800
Message-ID: <4C4EBE44.4000509@postnewspapers.com.au> (raw)
In-Reply-To: <46AC8D44F3AE1F4888F137837D0DF63508853EE0A6@INHYWEXMB2.infor.com>
References: <46AC8D44F3AE1F4888F137837D0DF63508853EE0A6@INHYWEXMB2.infor.com>
On 27/07/10 18:23, Ravi Katkar wrote:
> Odbctest.c downloaded from the below website http://wwwmath.uni-muenster.de/u/beckelu/DB0506/ODBC/> Its not using GUI toolkit .
Nope, it certainly isn't. But something seems to be trying to talk to
your X server, unless that message is somehow weirdly misleading.
Here, installing unixodbc from debian packages and compiling odbctest as:
gcc -o odbctest odbctest.c -lodbc
it runs fine with DISPLAY unset (ie with no access to an X server).
My next step in your position would be to strace the binary to see what
it's doing, use ldd to examine what it's linking to, or use LD_DEBUG to
trace what libraries it accesses. Though, of course, I'd also know how
I'd compiled it, which you didn't mention.
In any case, though, there's no sign this issue has anything to do with
PostgreSQL. I hope this sets you vaguely on the right track, but I'm not
really into ODBC at the best of times, so I think I might be about done
with my usefulness here.
--
Craig Ringer
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: craig@postnewspapers.com.au, Ravi.Katkar@infor.com
Subject: Re: ODBC and configure
In-Reply-To: <4C4EBE44.4000509@postnewspapers.com.au>
References: <46AC8D44F3AE1F4888F137837D0DF63508853EE0A6@INHYWEXMB2.infor.com> <4C4EBE44.4000509@postnewspapers.com.au>
* 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