Skip site navigation (1) Skip section navigation (2)

Re: Beta 2 build failure using Cygwin/XP

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Reto Stamm <reto-dated-1096206290(dot)bf6bd7(at)retostamm(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: Beta 2 build failure using Cygwin/XP
Date: 2004-09-25 22:55:29
Message-ID: 200409252255.i8PMtTO13665@candle.pha.pa.us (view raw or flat)
Thread:
Lists: pgsql-bugs
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(at)candle(dot)pha(dot)pa(dot)us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

In response to

pgsql-bugs by date

Next:From: Bruce MomjianDate: 2004-09-25 22:58:01
Subject: Re: 8.0.0beta1: Ownership of implicit sequences after dump/restore
Previous:From: Stephan SzaboDate: 2004-09-24 14:36:09
Subject: Re: BUG #1266: Improper unique constraint / MVCC

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group