Received: from maia.hub.org (maia-1.hub.org [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id EE42F633235 for ; Fri, 14 May 2010 18:50:57 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 59205-03 for ; Fri, 14 May 2010 21:50:45 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 898FA632F35 for ; Fri, 14 May 2010 18:50:50 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id o4ELolSP011212; Fri, 14 May 2010 17:50:47 -0400 (EDT) To: Pierangelo Russo cc: "pgsql-odbc@postgresql.org" Subject: Re: error compiling psqlodbc-08.04.0200 under red hat 5 In-reply-to: References: Comments: In-reply-to Pierangelo Russo message dated "Fri, 14 May 2010 18:03:47 +0200" Date: Fri, 14 May 2010 17:50:47 -0400 Message-ID: <11211.1273873847@sss.pgh.pa.us> From: Tom Lane 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: 201005/17 X-Sequence-Number: 10264 Pierangelo Russo writes: > I need help to compile psqlodbc-08.04.0200 under red hat 5, > I have unix odbc org driver manager and I got this error: > configure:2606: checking for C compiler default output file name > configure:2609: gcc -I/sas/software/odbc/include conftest.c -L/sas/software/odbc/lib -lodbc >&5 > configure:2612: $? = 0 > configure:2658: result: a.out > configure:2663: checking whether the C compiler works > configure:2669: ./a.out > ./a.out: error while loading shared libraries: libodbc.so.1: cannot open shared object file: No such file or directory The -I and -L switches probably should have not been in that command, and the -l switch definitely should not have been. It looks like they came from here: > CPPFLAGS=' -I/sas/software/odbc/include' > LIBS=' -L/sas/software/odbc/lib -lodbc' Were you setting those variables in configure's environment? If so, don't. regards, tom lane