www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Slemko <ma...@znep.com>
Subject Re: os-aix/2605: Compile filed during make (fwd)
Date Wed, 15 Jul 1998 18:10:00 GMT
The following reply was made to PR os-aix/2605; it has been noted by GNATS.

From: Marc Slemko <marcs@znep.com>
To: apbugs@apache.org
Cc:  Subject: Re: os-aix/2605: Compile filed during make (fwd)
Date: Wed, 15 Jul 1998 11:08:17 -0700 (PDT)

 Cute.  Real cute.  
 
 And we currently include conf.h first, so we can't ifndef in conf.h.
 
 ---------- Forwarded message ----------
 Date: Wed, 15 Jul 1998 08:02:48 -0500 (CDT)
 From: "Paul F. Williams" <paulw@uwex.edu>
 To: Marc Slemko <marcs@znep.com>
 Subject: Re: os-aix/2605: Compile filed during make
 
 The lines in cdefs.h are
 
 +121
   +122  /*
   +123   * GCC1 and some versions of GCC2 declare dead (non-returning) and
   +124   * pure (no side effects) functions using "volatile" and "const";
   +125   * unfortunately, these then cause warnings under "-ansi -pedantic".
   +126   * GCC2 uses a new, peculiar __attribute__((attrs)) style.  All of
   +127   * these work for GNU C++ (modulo a slight glitch in the C++ grammar
   +128   * in the distribution version of 2.5.5).
   +129   */
   +130  #if !defined(__GNUC__) || __GNUC__ < 2 || __GNUC_MINOR__ < 5
   +131  #define __attribute__(x)        /* delete __attribute__ if 
 non-gcc or gc
 c1 */
   +132  #if defined(__GNUC__) && !defined(__STRICT_ANSI__)
   +133  #define __dead          __volatile
   +134  #define __pure          __const
   +135  #endif
   +136  #endif
 
 
 If I recall the variation here was one had a (x) and the other had
 a (__x).   I don't know if that is a major problem.
 
 
 paulw
 
 
 --------------------------------------------------------------------
 Paul F. Williams, UW-Extension, 432 N. Lake St.,  Madison, WI 53706
 paulw@uwex.edu, 608-262-6011
 
 "If you took all the economists in this country and laid them end
 to end, they'd point in every direction." - Will Rogers
 --------------------------------------------------------------------
 
 On Tue, 14 Jul 1998, Marc Slemko wrote:
 
 > On 13 Jul 1998, Paul Williams wrote:
 > 
 > > "/usr/include/sys/cdefs.h", line 131.9: 1506-236 (W) Macro name __attribute__ has
been redefined.^M
 > > "/usr/include/sys/cdefs.h", line 131.9: 1506-358 (I) "__attribute__" is defined
on line 829 of ../../in
 > > clude/conf.h.^M
 > 
 > What is the content of /usr/include/sys/cdefs.h around line 131?
 > 
 > 
 

Mime
View raw message