pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feedcompiling psqlodbc for unixodbc -- problems
3+ messages / 3 participants
[nested] [flat]
* compiling psqlodbc for unixodbc -- problems
@ 2004-03-08 20:14 Duane Winner <duanewinner@att.net>
0 siblings, 2 replies; 3+ messages in thread
From: Duane Winner @ 2004-03-08 20:14 UTC (permalink / raw)
To: pgsql-odbc; +Cc: Arend van der Veen <apv@capital.net>
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
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: compiling psqlodbc for unixodbc -- problems
@ 2004-03-08 21:09 Ray Aspeitia <aspeitia@sells.com>
parent: Duane Winner <duanewinner@att.net>
1 sibling, 0 replies; 3+ messages in thread
From: Ray Aspeitia @ 2004-03-08 21:09 UTC (permalink / raw)
To: duanewinner@att.net; pgsql-odbc
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
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: compiling psqlodbc for unixodbc -- problems
@ 2004-03-08 21:31 Tom Lane <tgl@sss.pgh.pa.us>
parent: Duane Winner <duanewinner@att.net>
1 sibling, 0 replies; 3+ messages in thread
From: Tom Lane @ 2004-03-08 21:31 UTC (permalink / raw)
To: duanewinner@att.net; +Cc: pgsql-odbc; Arend van der Veen <apv@capital.net>
Duane Winner <duanewinner@att.net> writes:
> I am running FreeBSD-4.9-RELEASE-p3
> Postgresql-7.3.5_1 (installed from ports)
> unixODBC-2.2.8 (installed from ports)
I think you're missing unixODBC-devel.
(It would seem that psqlodbc's configure --with-unixodbc should check
for availability of header files as well as library files ...)
regards, tom lane
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2004-03-08 21:31 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-03-08 20:14 compiling psqlodbc for unixodbc -- problems Duane Winner <duanewinner@att.net>
2004-03-08 21:09 ` Ray Aspeitia <aspeitia@sells.com>
2004-03-08 21:31 ` Tom Lane <tgl@sss.pgh.pa.us>
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