apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William A. Rowe, Jr." <wr...@rowe-clan.net>
Subject Re: __attribute__ redefinition warnings
Date Thu, 06 Mar 2003 00:21:00 GMT
Stas, to avoid clobbering what the clib headers already do, would...

#ifndef __attribute__
#define __attribute__(__x)
#endif

solve the problem as well?  Does defined(_foo_) pick up _foo_(x) declarations?
If not is there such a beast?

Bill

At 05:52 PM 3/5/2003, Stas Bekman wrote:
>Stas Bekman wrote:
>>Can apr.h be changed to undef the __attribute__ macro, if it's already defined, before
redefining it? In the mod_perl 2.0 build we have to include include files from perl and apr,
so on certain platforms (e.g. aix 4.3.3) people get the following warning:
>>-------- Original Message --------
>>Subject: make errors with mod_perl-1.99_08 on aix 4.3.3
>>Date: Wed, 26 Feb 2003 15:34:29 -0500
>>From: Priest, Darryl - BALTO <darryl.priest@piperrudnick.com>
>>To: 'modperl@perl.apache.org' <modperl@perl.apache.org>
>>I'm getting the warning for every cc in the make:
>>"/usr/local/perl5.8.0/lib/5.8.0/aix/CORE/config.h", line 41.9: 1506-236 (W)
>>Macro name __attribute__ has been redefined.
>>"/usr/local/perl5.8.0/lib/5.8.0/aix/CORE/config.h", line 41.9: 1506-358 (I)
>>"__attribute__" is defined on line 28 of /usr/local/apache/include/apr.h.
>
>will this work? (hopefully sliding into 0.9.2)
>
>Index: include/apr.h.in
>===================================================================
>RCS file: /home/cvspublic/apr/include/apr.h.in,v
>retrieving revision 1.119
>diff -u -r1.119 apr.h.in
>--- include/apr.h.in    16 Feb 2003 10:07:54 -0000      1.119
>+++ include/apr.h.in    5 Mar 2003 23:52:46 -0000
>@@ -94,6 +94,7 @@
>     (__GNUC__ == 2 && __GNUC_MINOR__ < 7) ||\
>     defined(NEXT)
> #define APR_INLINE
>+#undef __attribute__
> #define __attribute__(__x)
> #define APR_HAS_INLINE         0
> #else
>
>
>__________________________________________________________________
>Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
>http://stason.org/    mod_perl Guide ---> http://perl.apache.org
>mailto:stas@stason.org http://use.perl.org http://apacheweek.com
>http://modperlbook.org http://apache.org  http://ticketmaster.com



Mime
View raw message