Stefan Kaltenbrunner stefan
Wed Aug 2 03:04:30 PDT 2006
Dave Page wrote:
>  
> 
>> -----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.

yeah played a bit with making that work - with erm "limited" success so
far ...

> 
>> *) 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

BINDIR = C:/msys/1.0/home/pgbuild/devel/pginst81/bin
DOCDIR = C:/msys/1.0/home/pgbuild/devel/pginst81/doc/postgresql
INCLUDEDIR = C:/msys/1.0/home/pgbuild/devel/pginst81/include
PKGINCLUDEDIR = C:/msys/1.0/home/pgbuild/devel/pginst81/include/POSTGR~1
INCLUDEDIR-SERVER =
C:/msys/1.0/home/pgbuild/devel/pginst81/include/POSTGR~1/server
LIBDIR = C:/msys/1.0/home/pgbuild/devel/pginst81/lib
PKGLIBDIR = C:/msys/1.0/home/pgbuild/devel/pginst81/lib/POSTGR~1
LOCALEDIR =
MANDIR = C:/msys/1.0/home/pgbuild/devel/pginst81/man
SHAREDIR = C:/msys/1.0/home/pgbuild/devel/pginst81/share/POSTGR~1
SYSCONFDIR = C:/msys/1.0/home/pgbuild/devel/pginst81/etc/postgresql
PGXS =
C:/msys/1.0/home/pgbuild/devel/pginst81/lib/POSTGR~1/pgxs/src/MAKEFI~1/pgxs.mk
CONFIGURE = '--prefix=/home/pgbuild/devel/pginst81'
CC = gcc
CPPFLAGS = -I./src/include/port/win32 -DEXEC_BACKEND
-I../../../src/include/port/win32
CFLAGS = -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline
-Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing
CFLAGS_SL =
LDFLAGS = -Wl,--allow-multiple-definition
LDFLAGS_SL =
LIBS = -lpgport -lz -lwsock32 -lm  -lws2_32 -lshfolder
VERSION = PostgreSQL 8.1.4


note the added postgresql/* subdirectory ..

that is btw. the result of specifying
--prefix=/home/pgbuild/devel/pginst81/ for this particular pg build -
maybe that is the issue ?


> 
>> *) 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. 
> ----

oh yeah - sorry for missing that :-(

> 
> 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 :-)

heh - yeah I figured that out already


Stefan



More information about the Slony1-general mailing list