> -----Original Message-----
> From: pgsql-odbc-owner@postgresql.org
> [mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of Dave Page
> Sent: 24 October 2006 15:51
> To: Hiroshi Inoue
> Cc: pgsql-odbc@postgresql.org; Hiroshi Saito
> Subject: Re: [ODBC] New release?
>
>
>
> > -----Original Message-----
> > From: Hiroshi Inoue [mailto:inoue@tpf.co.jp]
> > Sent: 24 October 2006 15:48
> > To: Dave Page
> > Cc: pgsql-odbc@postgresql.org; Hiroshi Saito
> > Subject: Re: New release?
> >
> > Oops I forgot to mention I've never compiled it under 64bit mode.
> > Could anyone compile it on 64bit *nix machine ?
>
> Seems even 32 bit is broken on my normal build machine:
>
> gcc -DHAVE_CONFIG_H -I. -I. -I. -O2 -Wall -Wmissing-prototypes
> -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels
> -fno-strict-aliasing -I/usr/local/pgsql/include -g -O2 -MT info.lo -MD
> -MP -MF .deps/info.Tpo -c info.c -fPIC -DPIC -o .libs/info.o
> In file included from psqlodbc.h:490,
> from info.c:19:
> misc.h:127: error: syntax error before "ssize_t"
> misc.h:129: error: syntax error before "ssize_t"
> misc.h:130: error: syntax error before "ssize_t"
> misc.h:131: error: syntax error before "ssize_t"
> misc.h:132: error: syntax error before "ssize_t"
> misc.h:134: error: syntax error before "ssize_t"
> misc.h:136: error: syntax error before "ssize_t"
> misc.h:149: error: syntax error before "my_strcpy"
> misc.h:149: error: syntax error before "ssize_t"
> misc.h:149: warning: type defaults to `int' in declaration of
> `my_strcpy'
> misc.h:149: warning: data definition has no type or storage class
> info.c: In function `PGAPI_GetInfo':
> info.c:827: warning: label `cleanup' defined but not used
> info.c: In function `PGAPI_GetTypeInfo':
> info.c:972: warning: label `cleanup' defined but not used
> info.c: In function `PGAPI_Statistics':
> info.c:2866: warning: unused variable `relkind'
> info.c: In function `PGAPI_ColumnPrivileges':
> info.c:3415: warning: label `cleanup' defined but not used
> make[1]: *** [info.lo] Error 1
> make[1]: Leaving directory
> `/usr/local/src/postgresql-8.1.5/src/interfaces/psqlodbc'
> make: *** [all] Error 2
>
> That's on a recent Slackware linux, with gcc (GCC) 3.4.5.
And including unistd.h in mish.h seems to solve it.
Regards, Dave.