pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ray Aspeitia <aspeitia@sells.com>
To: duanewinner@att.net
To: pgsql-odbc@postgresql.org
Subject: Re: compiling psqlodbc for unixodbc -- problems
Date: Mon, 8 Mar 2004 15:09:00 -0600
Message-ID: <p06002000bc728f910d9d@[192.168.5.55]> (raw)
In-Reply-To: <1078776860.15865.6.camel@localhost>
References: <1078776860.15865.6.camel@localhost>

I had this problem on OSX,

it has to do with the compiler finding the similarly named file 
"sql.h" in the psql includes directory instead of your unixodbc 
includes directory.

What happened is that somehow the /usr/local/psql/includes directory 
comes before /usr/local/includes in the compiler string and it finds 
the psql version of sql.h first.

For me it was as simple as renaming the 
/usr/local/psql/includes/sql.h file to something else (BEWARE! your 
mileage may vary!) I must not have used some of those flags in that 
file (many define parameters in that file), so that when the compiler 
searched the directory /usr/local/psql/includes and didn't find 
sql.h, it continued on to /usr/local/includes.

You should check the HACKERS list for further information on the 
progress of this. I believe it is in discussion.

Ray A.


>Can anybody provide me with some help on this issue?
>
>I'm attempting to build psqlodbc-07.03.0200 in an attempt to use this
>driver with unixodbc.
>
>I first configure:
># ./configure --with-unixodbc
>I don't see any errors when I do this.
>
>Then I "make":
>#make
>
>And this is what I get:
>
>make  all-am
>source='info.c' object='info.lo' libtool=yes  depfile='.deps/info.Plo'
>tmpdepfile='.deps/info.TPlo'  depmode=gcc /usr/local/bin/bash ./depcomp
>/usr/local/bin/bash ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
>-I.      -g -O2 -c -o info.lo `test -f 'info.c' || echo './'`info.c
>gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c info.c
>-Wp,-MD,.deps/info.TPlo  -fPIC -DPIC -o info.lo
>In file included from info.c:19:
>psqlodbc.h:41: sql.h: No such file or directory
>psqlodbc.h:42: sqlext.h: No such file or directory
>psqlodbc.h:52: odbcinst.h: No such file or directory
>*** Error code 1
>
>Stop in /root/psqlodbc-07.03.0200.
>*** Error code 1
>
>Stop in /root/psqlodbc-07.03.0200.
>
>
>I am running FreeBSD-4.9-RELEASE-p3
>Postgresql-7.3.5_1 (installed from ports)
>unixODBC-2.2.8 (installed from ports)
>
>Thanks for any input you can provide.
>
>-DW
>
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 4: Don't 'kill -9' the postmaster




view thread (3+ messages)  latest in thread

Message-ID: <p06002000bc728f910d9d@[192.168.5.55]>
Permalink:  ../p06002000bc728f910d9d@%5B192.168.5.55%5D/
Also on:    postgresql.org/message-id/p06002000bc728f910d9d@[192.168.5.55]

 · 

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: aspeitia@sells.com, duanewinner@att.net
  Subject: Re: compiling psqlodbc for unixodbc -- problems
  In-Reply-To: <p06002000bc728f910d9d@[192.168.5.55]>
  References: <1078776860.15865.6.camel@localhost> <p06002000bc728f910d9d@[192.168.5.55]>

* 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