pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Pierangelo Russo <pierangelo.russo@ita.sas.com>
Cc: pgsql-odbc@postgresql.org <pgsql-odbc@postgresql.org>
Subject: Re: error compiling psqlodbc-08.04.0200 under red hat 5
Date: Fri, 14 May 2010 17:50:47 -0400
Message-ID: <11211.1273873847@sss.pgh.pa.us> (raw)
In-Reply-To: <E3C258452FBEF844B2426C07139B8EFA0DF9341C94@itamail01.emea.sas.com>
References: <E3C258452FBEF844B2426C07139B8EFA0DF9341C94@itamail01.emea.sas.com>

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



view thread (2+ messages)

Message-ID: <11211.1273873847@sss.pgh.pa.us>
Permalink:  ../11211.1273873847@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/11211.1273873847@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, pierangelo.russo@ita.sas.com
  Subject: Re: error compiling psqlodbc-08.04.0200 under red hat 5
  In-Reply-To: <11211.1273873847@sss.pgh.pa.us>
  References: <E3C258452FBEF844B2426C07139B8EFA0DF9341C94@itamail01.emea.sas.com> <11211.1273873847@sss.pgh.pa.us>

* 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