In the case of Solaris 8 (i86pc), compile fail with --with-postgresql:
gcc -c -g -O3 -Wall -Wno-switch -Wpointer-arith -Winline -Wmissing-prototypes -Wshadow
-Demacs -I. -DHAVE_CONFIG_H -I/usr/local/include -I/opt/cmds/postgresql-7.0.0/include
-I/usr/dt/include -I/usr/openwin/include postgresql.c
In file included from postgresql.c:104:
/opt/cmds/postgresql-7.0.0/include/libpq-fe.h:104: warning: declaration of `message'
shadows global declaration
postgresql.c: In function `Fpq_connect_poll':
postgresql.c:543: parse error before `16'
postgresql.c:550: invalid lvalue in assignment
postgresql.c: In function `Fpq_reset_poll':
postgresql.c:733: parse error before `16'
postgresql.c:740: invalid lvalue in assignment
make[1]: *** [postgresql.o] Error 1
Because, `PS' is macro that defined in system header file
`/usr/include/ia32/sys/reg.h' as follow:
#define EFL 16
[...]
#define PS EFL
Please change the variable name `PS' to other one.
--
keit(a)tpj.co.jp