Thread: [INTERFACES] Compilation failure compiling pgsqlodbc.

[INTERFACES] Compilation failure compiling pgsqlodbc.

From
John Francis Schickling
Date:

I downloaded the postODBC source from
ftp://odf.ucsd.edu/pub/odf/postODBC.tar.gz

I am compiling the source using

    o Solaris 2.5
    o gcc version 2.8.1
    o PostgreSQL 6.3

and received the following error:

gcc -O -fPIC -I/home/schickli/3rdparty/pgsql/include -I.
-I/home/schickli/3rdparty/pgsql/include -I../iodbc-2.12 -DHAVE_IODBC=1 -DUNIX=1 -DHAVE_PARAM_H=1 -DHAVE_PWD_H=1
-DHAVE_STRICMP=0 
-DVERSION="0.24.2" -c -o libpsqlodbcObjs/Shared/socket.o socket.c
socket.c: In function `SOCK_connect_to':
socket.c:117: `in_addr_t' undeclared (first use in this function)
socket.c:117: (Each undeclared identifier is reported only once
socket.c:117: for each function it appears in.)
make[2]: *** [libpsqlodbcObjs/Shared/socket.o] Error 1
make[1]: *** [all] Error 1
make[1]: Leaving directory `/home/schickli/test/postODBC/psqlodbc'
make: *** [all] Error 1

Any suggestions???


Thanx,
John


--------------------------------------------------------------------------------
John F. Schickling Jr.
Phone: (315) 456-2643
Email: schickli@syr.lmco.com
--------------------------------------------------------------------------------