From: | "Hiroshi Inoue" <Inoue(at)tpf(dot)co(dot)jp> |
---|---|
To: | "Bruce Momjian" <maillist(at)candle(dot)pha(dot)pa(dot)us>, "Adriaan Joubert" <a(dot)joubert(at)albourne(dot)com> |
Cc: | <pgsql-general(at)postgreSQL(dot)org> |
Subject: | RE: [GENERAL] Postgres 6.4.1 on DEC-ALPHA |
Date: | 1998-12-24 02:05:01 |
Message-ID: | 000101be2ee1$d0d6a600$2801007e@cadzone.tpf.co.jp |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hi all,
> -----Original Message-----
> From: owner-pgsql-general(at)postgreSQL(dot)org
> [mailto:owner-pgsql-general(at)postgreSQL(dot)org]On Behalf Of Bruce Momjian
> Sent: Thursday, December 24, 1998 6:14 AM
> To: Adriaan Joubert
> Cc: riches(at)ms(dot)washington(dot)edu; pgsql-general(at)postgreSQL(dot)org
> Subject: Re: [GENERAL] Postgres 6.4.1 on DEC-ALPHA
>
>
> > I managed to compile postgres 6.4.1 without too much hassle, with the
> > following
> >
> > ./configure --with-CC=cc --without-CXX
> >
> > There was only a single problem in
> >
> > /data/build/pgsql/src/backend/port/snprintf.c
> >
> > where around line 120 it should read
> >
> >
> > #ifndef HAVE_LONG_INT_64
> > static void fmtnum __P((long_long value, int base, int dosign,
> int ljust,
> > int le
> > n, int zpad));
> > #else
> > static void fmtnum __P((long value, int base, int dosign, int ljust, int
> > len, in
> > t zpad));
> > #endif
>
On my platform(Solaris 2.51 x86),I also have the same problem.
And moreover there is another problem.
On my platform,type long long exists and the following step
unsigned long_long uvalue;
causes compilation error(gcc version is 2.7.2.3). long_long is
typedef'd and unsigned (typedef) is out of specification ?
Hiroshi Inoue
Inoue(at)tpf(dot)co(dot)jp
*** src/backend/port/snprintf.c.orig Fri Dec 18 17:00:23 1998
--- src/backend/port/snprintf.c Wed Dec 23 16:27:05 1998
***************
*** 48,53 ****
--- 48,54 ----
/* IRIX doesn't do 'long long' in va_arg(), so use a typedef */
#ifdef HAVE_LONG_LONG_INT_64
typedef long long long_long;
+ typedef unsigned long long unsigned_long_long;
#endif
/*
***************
*** 114,120 ****
static void fmtstr __P((char *value, int ljust, int len, int zpad, int
maxwidth));
! #ifndef HAVE_LONG_INT_64
static void fmtnum __P((long value, int base, int dosign, int ljust, int
len, int zpad));
#else
static void fmtnum __P((long_long value, int base, int dosign, int ljust,
int len, int zpad));
--- 115,121 ----
static void fmtstr __P((char *value, int ljust, int len, int zpad, int
maxwidth));
! #ifndef HAVE_LONG_LONG_INT_64
static void fmtnum __P((long value, int base, int dosign, int ljust, int
len, int zpad));
#else
static void fmtnum __P((long_long value, int base, int dosign, int ljust,
int len, int zpad));
***************
*** 350,356 ****
{
int signvalue = 0;
#ifdef HAVE_LONG_LONG_INT_64
! unsigned long_long uvalue;
#else
unsigned long uvalue;
#endif
--- 351,357 ----
{
int signvalue = 0;
#ifdef HAVE_LONG_LONG_INT_64
! unsigned_long_long uvalue;
#else
unsigned long uvalue;
#endif
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 1998-12-24 05:31:04 | Re: [GENERAL] Postgres 6.4.1 on DEC-ALPHA |
Previous Message | Richard Fromm | 1998-12-23 21:19:11 | pg_log - automatic logging of every transaction? how to access? |