develooper 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
February 23, 2003 17:10
[perl #21339] Devel::PPPort from bleadperl generates ppport.h incompatible with Perl 5.005
Message ID:
# New Ticket Created by  (Ilya Martynov) 
# Please include the string:  [perl #21339]
# in the subject line of all future correspondence about this issue. 
# <URL: >

This is a bug report for perl from,
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

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 blib/lib/Devel/
/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/      Sat Feb 22 14:11:35 2003
+++ ext/Devel/PPPort/  Sat Feb 22 14:12:08 2003
@@ -357,9 +357,6 @@
 #       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:
    osname=freebsd, osvers=4.0-current, archname=i386-freebsd
    uname='FreeBSD 4.0-current FreeBSD 4.0-current #0: $Date$'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef useperlio=undef d_sfio=undef
    cc='cc', optimize='undef', gccversion=2.95.2 19991024 (release)
    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 '
    libs=-lm -lc -lcrypt
    libc=, so=so, useshrplib=true,
  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:

Environment for perl 5.00503:
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PERL_BADLANG (unset)

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About