RE: [GENERAL] Postgres 6.4.1 on DEC-ALPHA - Mailing list pgsql-general

From Hiroshi Inoue
Subject RE: [GENERAL] Postgres 6.4.1 on DEC-ALPHA
Date
Msg-id 000101be2ee1$d0d6a600$2801007e@cadzone.tpf.co.jp
Whole thread Raw
In response to Re: [GENERAL] Postgres 6.4.1 on DEC-ALPHA  (Bruce Momjian <maillist@candle.pha.pa.us>)
Responses Re: [GENERAL] Postgres 6.4.1 on DEC-ALPHA
List pgsql-general
Hi all,

> -----Original Message-----
> From: owner-pgsql-general@postgreSQL.org
> [mailto:owner-pgsql-general@postgreSQL.org]On Behalf Of Bruce Momjian
> Sent: Thursday, December 24, 1998 6:14 AM
> To: Adriaan Joubert
> Cc: riches@ms.washington.edu; pgsql-general@postgreSQL.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@tpf.co.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


pgsql-general by date:

Previous
From: Richard Fromm
Date:
Subject: pg_log - automatic logging of every transaction? how to access?
Next
From: Bruce Momjian
Date:
Subject: Re: [GENERAL] Postgres 6.4.1 on DEC-ALPHA