httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philip M. Gollucci" <pgollu...@p6m7g8.com>
Subject apreq/glue/perl/xsbuilder/ppport.h:231:1: "PERL_UNUSED_DECL" redefined
Date Mon, 10 Apr 2006 07:35:09 GMT
Hi,

compiling libapreq2 (trunk) with perl 5.8.[1234567] and perl 5.8.8.

All of the first set work, perl5.8.8 does not however and fails with 
this error:

In file included from 
/usr/home/pgollucci/dev/repos/asf/httpd/apreq/trunk/glue/perl/xsbuilder/apreq_xs_postperl.h:27,
                  from Apache2.xs:39:
/usr/home/pgollucci/dev/repos/asf/httpd/apreq/trunk/glue/perl/xsbuilder/ppport.h:231:1: 
"PERL_UNUSED_DECL" redefined
In file included from Apache2.xs:35:
/software/perl/5.8.8/lib/CORE/perl.h:163:1: this is the location of the 
previous definition

For future reference, how might I do aribtrary diffs with perforce ?

perl.h from 5.8.7 [snipped]
#ifdef HASATTRIBUTE
#  if (defined(__GNUC__) && defined(__cplusplus)) || 
defined(__INTEL_COMPILER)
#    define PERL_UNUSED_DECL
#  else
#    define PERL_UNUSED_DECL __attribute__((unused))
#  endif
#else
#  define PERL_UNUSED_DECL
#endif

perl.h from 5.8.8 [snipped]
#if defined(SYMBIAN) && defined(__GNUC__)
#  ifdef __cplusplus
#    define PERL_UNUSED_DECL
#  else
#    define PERL_UNUSED_DECL __attribute__((unused))
#  endif
#endif

#ifndef PERL_UNUSED_DECL
#  ifdef HASATTRIBUTE_UNUSED
#    define PERL_UNUSED_DECL __attribute__unused__
#  else
#    define PERL_UNUSED_DECL
#  endif
#endif

looking at the apreq's ppport.h file which has

#ifdef HASATTRIBUTE
#  if (defined(__GNUC__) && defined(__cplusplus)) || 
defined(__INTEL_COMPILER)
#    define PERL_UNUSED_DECL
#  else
#    define PERL_UNUSED_DECL __attribute__((unused))
#  endif
#else
#  define PERL_UNUSED_DECL
#endif

and is part of the apreq SVN.
/* ppport.h -- Perl/Pollution/Portability Version 2.011
WOW, thats ANCIENT!

************
I'm guessing apreq needs to regenerate this with one from a version of 
Devel::PPPort for perl 5.8.8 ?  If thats the case, just let me know, 
I've got a commit bit in apreq :)


perl5.8.7 -MDevel::PPPort -e 'print "5.8.7 = $Devel::PPPort::VERSION\n"'
5.8.7 = 3.08

perl5.8.8 -MDevel::PPPort -e 'print "5.8.8 = $Devel::PPPort::VERSION\n"'
5.8.8 = 3.06_01
************

In case anyone is wondering, the compile was with:

perl 5.8.[78] (not from ports)
httpd 2.2.0 event mpm, threaded apr (not from ports)
mp2 svn trunk
FreeBSD 6.1-PRERELEASE




-- 
------------------------------------------------------------------------
Philip M. Gollucci (pgollucci@p6m7g8.com) 323.219.4708
Consultant / http://p6m7g8.net/Resume/resume.shtml
Senior Software Engineer - TicketMaster - http://ticketmaster.com
1024D/A79997FA F357 0FDD 2301 6296 690F  6A47 D55A 7172 A799 97F

"It takes a minute to have a crush on someone, an hour to like someone,
and a day to love someone, but it takes a lifetime to forget someone..."

Mime
View raw message