Front page | perl.perl5.porters |
Postings from February 2003
[perl #21339] Devel::PPPort from bleadperl generates ppport.h incompatible with Perl 5.005
Thread Next
From:
perlbug-followup
Date:
February 23, 2003 17:10
Subject:
[perl #21339] Devel::PPPort from bleadperl generates ppport.h incompatible with Perl 5.005
Message ID:
rt-21339-52610.10.0492788849347@bugs6.perl.org
# New Ticket Created by (Ilya Martynov)
# Please include the string: [perl #21339]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt2/Ticket/Display.html?id=21339 >
This is a bug report for perl from ilya@martynov.org,
generated with the help of perlbug 1.26 running under perl 5.00503.
-----------------------------------------------------------------
[Please enter your report here]
Devel::PPPort from bleadperl generates ppport.h incompatible with Perl
5.005
Simple way to reproduce this problem is take this module from
bleadperl sources and try to build it with Perl 5.005. PPPort.xs
uses ppport.h so its build fails.
master:~/PPPort$ make test
mkdir blib
mkdir blib/lib
mkdir blib/lib/Devel
cp PPPort.pm blib/lib/Devel/PPPort.pm
/usr/bin/perl -Iblib/arch -Iblib/lib -I/usr/libdata/perl/5.00503/mach -I/usr/libdata/perl/5.00503 ppport_h.PL ppport.h
/usr/bin/perl -I/usr/libdata/perl/5.00503/mach -I/usr/libdata/perl/5.00503 /usr/libdata/perl/5.00503/ExtUtils/xsubpp -noprototypes -typemap /usr/libdata/perl/5.00503/ExtUtils/typemap PPPort.xs >xstmp.c && mv xstmp.c PPPort.c
cc -c -DVERSION=\"2.0002\" -DXS_VERSION=\"2.0002\" -DPIC -fpic -I/usr/libdata/perl/5.00503/mach/CORE PPPort.c
In file included from PPPort.xs:7:
ppport.h:176: could_not_find_Perl_patchlevel.h: No such file or directory
*** Error code 1
Stop in /usr/home/ilya/PPPort.
Patch which fixes this problem:
--- ext/Devel/PPPort/PPPort.pm.old Sat Feb 22 14:11:35 2003
+++ ext/Devel/PPPort/PPPort.pm Sat Feb 22 14:12:08 2003
@@ -357,9 +357,6 @@
# ifndef __PATCHLEVEL_H_INCLUDED__
# include <patchlevel.h>
# endif
-# ifndef PERL_VERSION
-# include <could_not_find_Perl_patchlevel.h>
-# endif
# ifndef PERL_REVISION
# define PERL_REVISION (5)
/* Replace: 1 */
[Please do not change anything below this line]
-----------------------------------------------------------------
---
Site configuration information for perl 5.00503:
Configured by markm at Sun Mar 5 13:39:27 SAST 2000.
Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration:
Platform:
osname=freebsd, osvers=4.0-current, archname=i386-freebsd
uname='FreeBSD freefall.FreeBSD.org 4.0-current FreeBSD 4.0-current #0: $Date$'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef useperlio=undef d_sfio=undef
Compiler:
cc='cc', optimize='undef', gccversion=2.95.2 19991024 (release)
cppflags=''
ccflags =''
stdchar='char', d_stdstdio=undef, usevfork=true
intsize=4, longsize=4, ptrsize=4, doublesize=8
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
alignbytes=4, usemymalloc=n, prototype=define
Linker and Libraries:
ld='cc', ldflags ='-Wl,-E -lperl -lm '
libpth=/usr/lib
libs=-lm -lc -lcrypt
libc=, so=so, useshrplib=true, libperl=libperl.so.3
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' -Wl,-R/usr/lib'
cccdlflags='-DPIC -fpic', lddlflags='-Wl,-E -shared -lperl -lm '
Locally applied patches:
---
@INC for perl 5.00503:
/usr/site/perl/i386-freebsd
/usr/site/perl
/usr/local/lib/perl5/site_perl/5.005/i386-freebsd
/usr/local/lib/perl5/site_perl/5.005
.
/usr/libdata/perl/5.00503/mach
/usr/libdata/perl/5.00503
---
Environment for perl 5.00503:
HOME=/home/ilya
LANG=ru_RU.KOI8-R
LANGUAGE (unset)
LD_LIBRARY_PATH (unset)
LOGDIR (unset)
PATH=/home/ilya/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/home/ilya/bin
PERL5LIB=/usr/site/perl
PERL_BADLANG (unset)
SHELL=/usr/local/bin/bash
Thread Next
-
[perl #21339] Devel::PPPort from bleadperl generates ppport.h incompatible with Perl 5.005
by perlbug-followup