Dave Page dpage
Wed Aug 2 01:18:10 PDT 2006
 

> -----Original Message-----
> From: slony1-general-bounces at gborg.postgresql.org 
> [mailto:slony1-general-bounces at gborg.postgresql.org] On 
> Behalf Of Stefan Kaltenbrunner
> Sent: 02 August 2006 07:01
> To: Christopher Browne
> Cc: Slony Mailing List
> Subject: Re: [Slony1-general] Testing - 1.2.0 RC2
> 
> *) there is some hardcoded(!) override in configure for mingw32 that
> results in a number of --pgXXX commandline flags to get 
> ignored and also
> ignores what pg_config has to say about the location of 
> certain things.

I'm assuming you missed the comment above that which explains:

    dnl
    dnl On win32 pg_config returns DOS style paths which Mingw/GCC
cannot use.
    dnl Use default values in this case, rather than pg_config supplied
ones.
    dnl Also note that trailing /'s seem to cause compile failures.
    dnl

That was following a *lot* of experimentation. If you can make it work
without hardcoding though, please feel free.

> *) related to the above point - the include directory layout 
> postgresql
> generates here-  after a make install - does NOT match what configure
> tries to hardcode - though the ones pg_config is reporting are correct
> (though windows style)

Err, what is wrong exactly? I just check against a CVS Head installation
form about a week ago and it appears exactly right to me.

>From acx_libpq.m4:

            PG_BINDIR=$WIN32_PG_LOCATION/bin
            PG_LIBDIR=$WIN32_PG_LOCATION/lib
            PG_INCLUDEDIR=$WIN32_PG_LOCATION/include
            PG_PKGLIBDIR=$WIN32_PG_LOCATION/lib
            PG_INCLUDESERVERDIR=$WIN32_PG_LOCATION/include/server

>From pg_config:

dpage at PC9:/usr/local/pgsql/bin$ ./pg_config
BINDIR = C:/msys/1.0/local/pgsql/bin
DOCDIR = C:/msys/1.0/local/pgsql/doc
INCLUDEDIR = C:/msys/1.0/local/pgsql/include
PKGINCLUDEDIR = C:/msys/1.0/local/pgsql/include
INCLUDEDIR-SERVER = C:/msys/1.0/local/pgsql/include/server
LIBDIR = C:/msys/1.0/local/pgsql/lib
PKGLIBDIR = C:/msys/1.0/local/pgsql/lib
LOCALEDIR = C:/msys/1.0/local/pgsql/share/locale
MANDIR = C:/msys/1.0/local/pgsql/man
SHAREDIR = C:/msys/1.0/local/pgsql/share
SYSCONFDIR = C:/msys/1.0/local/pgsql/etc

> *) there seems to be an undocumented (?) dependency on some external
> win32 pthread port - msys/mingw as I have it does not seem to include
> those soe even after fixing/hacking up the configure script 
> slony fails
> at the make step

Not undocumented - see http://linuxfinances.info/info/requirements.html
which says:

----
On Windows(tm) you will also need the same MinGW/Msys Toolset used to
build PostgreSQL 8.0 and above. In addition you will need to install
pthreads-win32 2.x. 
----

As it says in the docs we encourage Windows users to run the version of
Slony that we'll ship with pgInstaller so they don't need msys.
Developers should be able to figure out where to put pthreads :-)

Regards, Dave.



More information about the Slony1-general mailing list