> >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

Tue, 3 Feb 1998 14:36:53 GMT
Andrew Martin <martin@biochemistry.ucl.ac.uk>
Re: [HACKERS] snapshot won't compile on irix6.2
On Tue, 3 Feb 1998, Andrew Martin wrote:

> > >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.

	Done


Marc G. Fournier                                
Systems Administrator @ hub.org 
primary: scrappy@hub.org           secondary: scrappy@{freebsd|postgresql}.org 


Wed, 4 Feb 1998 23:31:02 -0400 (AST)
The Hermit Hacker <scrappy@hub.org>
Re: [HACKERS] snapshot won't compile on irix6.2