Would you email me your config.log privately? I need to see why the
test for HAVE_INT_TIMEZONE is failing on Cygwin. The relivant configure
test is:
# PGAC_VAR_INT_TIMEZONE
# ---------------------
# Check if the global variable `timezone' exists. If so, define
# HAVE_INT_TIMEZONE.
AC_DEFUN([PGAC_VAR_INT_TIMEZONE],
[AC_CACHE_CHECK(for int timezone, pgac_cv_var_int_timezone,
[AC_TRY_LINK([#include <time.h>
int res;],
[#ifndef __CYGWIN__
res = timezone / 60;
#else
res = _timezone / 60;
#endif],
[pgac_cv_var_int_timezone=yes],
[pgac_cv_var_int_timezone=no])])
if test x"$pgac_cv_var_int_timezone" = xyes ; then
AC_DEFINE(HAVE_INT_TIMEZONE,, [Define to 1 if you have the global
variable 'int timezone'.])
fi])# PGAC_VAR_INT_TIMEZONE
You should have this version of the code in config/c-library.m4.
---------------------------------------------------------------------------
Reto Stamm wrote:
> Hi,
>
> I tried to build Postgres on XP - and got the following message after
> standard configure and make:
>
> > ./configure
> > ./make
> ...
> make[2]: Leaving directory `/cygdrive/c/postgresql-8.0.0beta2/src/port'
> make -C timezone all
> make[2]: Entering directory `/cygdrive/c/postgresql-8.0.0beta2/src/timezone'
> gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes
> -Wmissing-declarations -
> DFRONTEND -I../../src/include -c -o localtime.o localtime.c
> gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes
> -Wmissing-declarations -
> DFRONTEND -I../../src/include -c -o strftime.o strftime.c
> gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes
> -Wmissing-declarations -
> DFRONTEND -I../../src/include -c -o pgtz.o pgtz.c
> pgtz.c:105:2: #error No way to determine TZ? Can this happen?
> pgtz.c: In function `get_timezone_offset':
> pgtz.c:95: warning: control reaches end of non-void function
> make[2]: *** [pgtz.o] Error 1
> make[2]: Leaving directory `/cygdrive/c/postgresql-8.0.0beta2/src/timezone'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/cygdrive/c/postgresql-8.0.0beta2/src'
> make: *** [all] Error 2
>
> Let me know what additional files you need.
>
> Thanks
>
> --reto
>
> ---------------------------(end of broadcast)---------------------------
> TIP 8: explain analyze is your friend
>
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073