Обсуждение: psqlodbc compile problem on Solaris 9
I'm having trouble getting psqlodbc to compile under sun-sparc-solaris9.
I've got postgresql 7.4.3 compiled with gcc 3.
unixODBC-2.2.11 seems to have compiled just fine using the following sequence.
# ./configure --prefix=/opt/net/utils/unixODBC-2.2.11
# make
# make install
I'm doing the following with psqlodbc-08.00.0101;
# ./configure --with-unixodbc --with-odbcinst=/opt/net/utils/unixODBC-2.2.11
# make
The response to the make command is:
make all-am
make[1]: Entering directory `/opt/net/source/psqlodbc-08.00.0101'
source='info.c' object='info.lo' libtool=yes \
depfile='.deps/info.Plo' tmpdepfile='.deps/info.TPlo' \
depmode=none /bin/ksh ./depcomp \
/bin/ksh ./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 -fPIC -DPIC -o .libs/info.o
In file included from info.c:19:
psqlodbc.h:43:17: sql.h: No such file or directory
psqlodbc.h:44:20: sqlext.h: No such file or directory
psqlodbc.h:46:23: sqlucode.h: No such file or directory
psqlodbc.h:52:22: odbcinst.h: No such file or directory
In file included from info.c:19:
psqlodbc.h:277: error: parse error before "SDWORD"
...
make[1]: Entering directory `/opt/net/source/psqlodbc-08.00.0101'
source='info.c' object='info.lo' libtool=yes \
depfile='.deps/info.Plo' tmpdepfile='.deps/info.TPlo' \
depmode=none /bin/ksh ./depcomp \
/bin/ksh ./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 -fPIC -DPIC -o .libs/info.o
In file included from info.c:19:
psqlodbc.h:43:17: sql.h: No such file or directory
psqlodbc.h:44:20: sqlext.h: No such file or directory
psqlodbc.h:46:23: sqlucode.h: No such file or directory
psqlodbc.h:52:22: odbcinst.h: No such file or directory
In file included from info.c:19:
psqlodbc.h:277: error: parse error before "SDWORD"
...
What am I missing? Thanks.
Rusty
Am Mittwoch, 29. Juni 2005 21:20 schrieb Shields, Rusty (IMS): > In file included from info.c:19: > psqlodbc.h:43:17: sql.h: No such file or directory > psqlodbc.h:44:20: sqlext.h: No such file or directory > psqlodbc.h:46:23: sqlucode.h: No such file or directory > psqlodbc.h:52:22: odbcinst.h: No such file or directory > In file included from info.c:19: > psqlodbc.h:277: error: parse error before "SDWORD" > ... > > > What am I missing? Thanks. Apparently, all those header files. They should have been included in the unixODBC installation. Perhaps you need to add -I/usr/local/include somewhere? -- Peter Eisentraut http://developer.postgresql.org/~petere/