Re: [HACKERS] snapshot won't compile on irix6.2 - Mailing list pgsql-hackers

From Andrew Martin
Subject Re: [HACKERS] snapshot won't compile on irix6.2
Date
Msg-id 199802031436.OAA21899@bsmir06.biochem.ucl.ac.uk
Whole thread Raw
Responses Re: [HACKERS] snapshot won't compile on irix6.2  (The Hermit Hacker <scrappy@hub.org>)
List pgsql-hackers
> >From include/storage/s_lock.h:
>
> #if defined(irix5)
>
>     Using tools/ccsym, what shoudl this be set to.  There is no longer
> any concept of a "port" at the Makefile level, and hasn't been for over a
> month now...From henceforth, its either determined based on what configure
> knows about, or the compiler itself...in this case, tools/ccsym will have
> to be used to determine what the compiler defines internally and the
> settings changed...
>

OK, I just ran ccsym (from PGSQL V6.1 - I know it's old...) using the native
Irix cc and with gcc. (See attached results)

I guess __sgi or _SGI_SOURCE look like the best options.


Andrew


Native C compiler
=================

Irix5                           Irix6
-----                           -----
LANGUAGE_C                      -Ac=xansi
MIPSEB                          LANGUAGE_C
SYSTYPE_SVR4                    MIPSEB
_ABIO32=1                       _ABIN32=2
_CFE                            _COMPILER_VERSION=710
_LANGUAGE_C                     _LANGUAGE_C
_LONGLONG                       _LONGLONG
_MIPSEB                         _MIPSEB
_MIPS_FPSET=16                  _MIPS_FPSET=32
_MIPS_ISA=1                     _MIPS_ISA=4
_MIPS_SIM=_ABIO32               _MIPS_SIM=_ABIN32
_MIPS_SZINT=32                  _MIPS_SZINT=32
_MIPS_SZLONG=32                 _MIPS_SZLONG=32
_MIPS_SZPTR=32                  _MIPS_SZPTR=32
_MODERN_C                       _MODERN_C
_PIC                            _PIC
_SGI_SOURCE                     _SGI_SOURCE
_SVR4_SOURCE                    _SVR4_SOURCE
_SYSTYPE_SVR4                   _SYSTYPE_SVR4
__DSO__                         __DSO__
__EXTENSIONS__                  __EXTENSIONS__
__INLINE_INTRINSICS             __INLINE_INTRINSICS
__STDC__=1                      __MATH_HAS_NO_SIDE_EFFECTS
__host_mips                     __host_mips
__mips=1                        __mips=4
__sgi                           __sgi
__unix                          __unix
host_mips                       host_mips
machine=mips                    machine=mips
mips                            mips
sgi                             sgi
system=unix                     system=unix
unix                            unix


GCC
===

Irix5                           Irix6
-----                           -----
LANGUAGE_C                      LANGUAGE_C
MIPSEB                          MIPSEB
SYSTYPE_SVR4                    SYSTYPE_SVR4
_LANGUAGE_C                     _LANGUAGE_C
_LONGLONG                       _LONGLONG
_MIPSEB                         _MIPSEB
_MIPSEB                         _MIPSEB
_MIPS_FPSET=16                  _MIPS_FPSET=16
_MIPS_ISA=_MIPS_ISA_MIPS1       _MIPS_ISA=_MIPS_ISA_MIPS1
_MIPS_SIM=_MIPS_SIM_ABI32       _MIPS_SIM=_MIPS_SIM_ABI32
_MIPS_SIM=_MIPS_SIM_ABI32       _MIPS_SIM=_MIPS_SIM_ABI32
_MIPS_SZINT=32                  _MIPS_SZINT=32
_MIPS_SZLONG=32                 _MIPS_SZLONG=32
_MIPS_SZPTR=32                  _MIPS_SZPTR=32
_MIPS_SZPTR=32                  _MIPS_SZPTR=32
_MODERN_C                       _MODERN_C
_MODERN_C                       _MODERN_C
_SGI_SOURCE                     _SGI_SOURCE
_SVR4_SOURCE                    _SVR4_SOURCE
_SVR4_SOURCE                    _SVR4_SOURCE
__CHAR_UNSIGNED__               __CHAR_UNSIGNED__
__DSO__                         __DSO__
__DSO__                         __DSO__
__EXTENSIONS__                  __EXTENSIONS__
__GNUC_MINOR__=7                __GNUC_MINOR__=7
__GNUC__=2                      __GNUC__=2
__MIPSEB                        __MIPSEB
__MIPSEB__                      __MIPSEB__
__PTRDIFF_TYPE__=int            __PTRDIFF_TYPE__=int
__SIZE_TYPE__=unsigned          __SIZE_TYPE__=unsigned
__SYSTYPE_SVR4                  __SYSTYPE_SVR4
__SYSTYPE_SVR4__                __SYSTYPE_SVR4__
__host_mips                     __host_mips
__host_mips__                   __host_mips__
__mips                          __mips
__mips__                        __mips__
__sgi                           __sgi
__sgi__                         __sgi__
__unix                          __unix
__unix__                        __unix__
cpu=mips                        cpu=mips
host_mips                       host_mips
machine=sgi                     machine=sgi
mips                            mips
sgi                             sgi
system=svr4                     system=svr4
system=unix                     system=unix
unix                            unix
----------------------------------------------------------------------------
Dr. Andrew C.R. Martin                             University College London
EMAIL: (Work) martin@biochem.ucl.ac.uk    (Home) andrew@stagleys.demon.co.uk
URL:   http://www.biochem.ucl.ac.uk/~martin
Tel:   (Work) +44(0)171 419 3890                    (Home) +44(0)1372 275775

pgsql-hackers by date:

Previous
From: James Hughes
Date:
Subject: Re: [HACKERS] VACUUM ANALYZE Problem
Next
From: Zeugswetter Andreas DBT
Date:
Subject: lock table syntax