Christopher Browne cbbrowne at ca.afilias.info
Fri May 2 13:36:35 PDT 2008
"Giuseppe Laccone" <giuseppe.laccone at gmail.com> writes:
> hi all,
> I am trying to compile slony1 with PG8.1.11 for win32 with mingwin32
> and msys as suggested in the
> documentation:
>
> ./configure --with-pgbindir=/usr/local/pgsql/bin
> --with-pgincludedir=/usr/local/pgsql/include
> --with-pgincludeserverdir=/usr/local/pgsql/include/server
> --with-pgconfigdir=/usr/local/pgsql/bin
>
> Unfortunately I  receive always the same error even is I specify
> pgincludeserverdir:

Well, in looking at the config log (thanks for including it!), the
following seems to be suggesting that:

a) Yes, you *do* have the server #includes installed (I can see it
   referencing PostgreSQL server includes, successfully).

   So the problem *isn't* relating to not having properly referenced
   pgincludeserverdir.

b) ERROR being redefined seems troublesome.

It seems as though you have some extra #includes being drawn in that
are causing a conflict.

In particular, you probably ought to see what is in
".../include/wingdi.h", as that is evidently in conflict with
definitions in PostgreSQL #include <server/utils/elog.h>.  I have no
idea what "wingdi.h" is; evidently it's not compatible...

> C:/msys/1.0/local/pgsql/include/server/utils/elog.h:40:1: warning:
> "ERROR" redefined
>
> In file included from
> c:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/windows.h:52,
>
>                  from C:/msys/1.0/local/pgsql/include/server/pg_config_os.h:7,
>
>                  from C:/msys/1.0/local/pgsql/include/server/c.h:85,
>
>                  from C:/msys/1.0/local/pgsql/include/server/postgres.h:48,
>
>                  from conftest.c:71:
>
> c:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/wingdi.h:313:1:
> warning: this is the location of
> the previous definition

-- 
(format nil "~S@~S" "cbbrowne" "ca.afilias.info")
<http://dba2.int.libertyrms.com/>
Christopher Browne
(416) 673-4124 (land)


More information about the Slony1-general mailing list