dbTalk Databases Forums  

[BUGS] Beta 2 build failure using Cygwin/XP

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] Beta 2 build failure using Cygwin/XP in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Reto Stamm
 
Posts: n/a

Default [BUGS] Beta 2 build failure using Cygwin/XP - 09-23-2004 , 11:53 PM






Hi,

I tried to build Postgres on XP - and got the following message after
standard configure and make:

Quote:
./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


Reply With Quote
  #2  
Old   
Bruce Momjian
 
Posts: n/a

Default Re: [BUGS] Beta 2 build failure using Cygwin/XP - 09-25-2004 , 05:57 PM







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:
Quote:
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.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.