Subject: | ppport.h is a bit out of date - should require 5.8.0 |
"ppport.h", line 2979: warning #2047-D: incompatible redefinition of
macro
"PERL_UNUSED_DECL" (declared at line 330 of
"/pro/lib/perl5/5.10.1/IA64.ARCHREV_0-LP64/CORE/perl.h")
# define PERL_UNUSED_DECL
^
With ppport-3.19, that warning disappears
$ perl ppport.h
Scanning ./CDB_File.xs ...
=== Analyzing ./CDB_File.xs ===
Uses PL_na
Uses newSVpvn, which depends on newSV, newSVpv
*** WARNING: Uses PerlIO_close, which may not be portable below perl
5.7.3, even with 'ppport.h'
*** WARNING: Uses PerlIO_fileno, which may not be portable below perl
5.7.3, even with 'ppport.h'
*** WARNING: Uses PerlIO_flush, which may not be portable below perl
5.7.3, even with 'ppport.h'
*** WARNING: Uses PerlIO_read, which may not be portable below perl
5.7.3, even with 'ppport.h'
*** WARNING: Uses PerlIO_seek, which may not be portable below perl
5.7.3, even with 'ppport.h'
*** WARNING: Uses PerlIO_write, which may not be portable below perl
5.7.3, even with 'ppport.h'
Analysis completed (6 warnings)
Looks good
$ perl ppport.h --compat-v
ersion=5.8.0
Scanning ./CDB_File.xs ...
=== Analyzing ./CDB_File.xs ===
No need to include 'ppport.h'
Analysis completed
Suggested changes:
--- ./CDB_File.xs 2008-03-21 16:40:57 +0100
+++ ./CDB_File.xs.patched 2011-01-21 13:06:23 +0100
@@ -36,7 +36,6 @@
#include "EXTERN.h"
#include "perl.h"
#include "XSUB.h"
-#include "ppport.h"
#include <sys/stat.h>
#include <sys/types.h>