Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 77A75632D49 for ; Tue, 27 Jul 2010 08:09:10 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 81538-06 for ; Tue, 27 Jul 2010 11:09:01 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from www.postnewspapers.com.au (www.postnewspapers.com.au [202.4.227.11]) by mail.postgresql.org (Postfix) with ESMTP id B9523632C47 for ; Tue, 27 Jul 2010 08:09:02 -0300 (ADT) Received: from mail.postnewspapers.com.au (202-89-185-120.static.dsl.amnet.net.au [202.89.185.120]) by www.postnewspapers.com.au (Postfix) with ESMTP id A65619F7E; Tue, 27 Jul 2010 19:08:58 +0800 (WST) Received: from localhost (localhost [127.0.0.1]) by mail.postnewspapers.com.au (Postfix) with ESMTP id 58F23AFA95; Tue, 27 Jul 2010 19:08:48 +0800 (WST) X-Virus-Scanned: Debian amavisd-new at postnewspapers.com.au Received: from mail.postnewspapers.com.au ([127.0.0.1]) by localhost (mail.postnewspapers.com.au [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ihoWP070Kr4k; Tue, 27 Jul 2010 19:08:42 +0800 (WST) Received: from [10.1.1.6] (124-168-255-56.dyn.iinet.net.au [124.168.255.56]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "Craig Ringer", Issuer "POST Certificate Authority" (verified OK)) by mail.postnewspapers.com.au (Postfix) with ESMTPSA id A8C2FAFA94; Tue, 27 Jul 2010 19:08:42 +0800 (WST) Message-ID: <4C4EBE44.4000509@postnewspapers.com.au> Date: Tue, 27 Jul 2010 19:08:52 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100423 Lightning/1.0b1 Thunderbird/3.0.4 MIME-Version: 1.0 To: Ravi Katkar CC: "'pgsql-odbc@postgresql.org'" Subject: Re: ODBC and configure References: <46AC8D44F3AE1F4888F137837D0DF63508853EE0A6@INHYWEXMB2.infor.com> In-Reply-To: <46AC8D44F3AE1F4888F137837D0DF63508853EE0A6@INHYWEXMB2.infor.com> X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201007/30 X-Sequence-Number: 10373 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