Re: error compiling psqlodbc-08.04.0200 under red hat 5 - Mailing list pgsql-odbc

From Tom Lane
Subject Re: error compiling psqlodbc-08.04.0200 under red hat 5
Date
Msg-id 11211.1273873847@sss.pgh.pa.us
Whole thread Raw
In response to error compiling psqlodbc-08.04.0200 under red hat 5  (Pierangelo Russo <pierangelo.russo@ita.sas.com>)
List pgsql-odbc
Pierangelo Russo <pierangelo.russo@ita.sas.com> 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

pgsql-odbc by date:

Previous
From: Pierangelo Russo
Date:
Subject: error compiling psqlodbc-08.04.0200 under red hat 5
Next
From: Phil Brierley
Date:
Subject: ADO - adSchemaColumns doesn't seem to work.