Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XJLwM-0003PO-8B for pgsql-odbc@arkaria.postgresql.org; Mon, 18 Aug 2014 12:21:34 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XJLwL-0005On-5U for pgsql-odbc@arkaria.postgresql.org; Mon, 18 Aug 2014 12:21:33 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XJLwK-0005Og-3b for pgsql-odbc@postgresql.org; Mon, 18 Aug 2014 12:21:32 +0000 Received: from smtp-outbound-1.vmware.com ([208.91.2.12]) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1XJLwB-0003AI-KT for pgsql-odbc@postgresql.org; Mon, 18 Aug 2014 12:21:29 +0000 Received: from sc9-mailhost2.vmware.com (sc9-mailhost2.vmware.com [10.113.161.72]) by smtp-outbound-1.vmware.com (Postfix) with ESMTP id EAB70288BC; Mon, 18 Aug 2014 05:21:20 -0700 (PDT) Received: from EX13-CAS-010.vmware.com (EX13-CAS-010.vmware.com [10.113.191.62]) by sc9-mailhost2.vmware.com (Postfix) with ESMTP id E4314B1346; Mon, 18 Aug 2014 05:21:20 -0700 (PDT) Received: from EX13-MBX-024.vmware.com (10.113.191.44) by EX13-MBX-008.vmware.com (10.113.191.28) with Microsoft SMTP Server (TLS) id 15.0.775.38; Mon, 18 Aug 2014 05:21:20 -0700 Received: from [192.168.1.90] (10.113.160.246) by EX13-MBX-024.vmware.com (10.113.191.44) with Microsoft SMTP Server (TLS) id 15.0.775.38; Mon, 18 Aug 2014 05:21:19 -0700 Message-ID: <53F1EFBB.1060100@vmware.com> Date: Mon, 18 Aug 2014 15:21:15 +0300 From: Heikki Linnakangas Organization: VMware User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.5.0 MIME-Version: 1.0 To: Sandeep Thakkar , "pgsql-odbc@postgresql.org" Subject: Re: psqlodbc build with libpq on OS X References: In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.113.160.246] X-ClientProxiedBy: EX13-CAS-013.vmware.com (10.113.191.65) To EX13-MBX-024.vmware.com (10.113.191.44) X-Pg-Spam-Score: -7.6 (-------) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org On 08/18/2014 02:50 PM, Sandeep Thakkar wrote: > Hi > > We were building psqlodbc-09.03.0300 on OS X with configure options as > "--disable-dependency-tracking --with-iodbc --with-libpq= > --prefix= > " and found that libpq was being linked from /usr/lib and not from the > $PG_INSTALL_PATH.. May be because the system iodbc-config returns: > > $ iodbc-config --libs > -L/usr/lib -liodbc -liodbcinst" Hmm. It seems bogus for iodbc-config to return "-L/usr/lib" in the first place. Surely /usr/lib is in the default library path, so shouldn't be printed. > To make sure it picks the libpq from the Server installation that we built, > I had to patch configure script: > > -- > --- configure.org 2014-08-18 16:22:19.484004002 +0500 > +++ configure 2014-08-18 16:22:55.537736693 +0500 > @@ -4301,7 +4301,7 @@ > if test -d "$with_libpq"; then > PATH="$PATH:$with_libpq/bin" > CPPFLAGS="$CPPFLAGS -I$with_libpq/include" > - LDFLAGS="$LDFLAGS -L$with_libpq/lib" > + LDFLAGS="-L$with_libpq/lib $LDFLAGS" > else > if test -x "$with_libpq"; then > PG_CONFIG=$with_libpq > -- > > Does this looks fine? Well, you'd need to patch "configure.ac", because "configure" is auto-generated from "configure.ac". However, since this seems like an iodbc bug to me, I'd suggest that you contact the iodbc people to get it fixed upstream. Meanwhile, you could write your own iodbc-config replacement/wrapper script that returns the correct string, "-liodbc -liodbcinst". - Heikki -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc