Skip Menu |

This queue is for tickets about the Inline-Python CPAN distribution.

Report information
The Basics
Id: 99261
Status: open
Priority: 0/
Queue: Inline-Python

People
Owner: Nobody in particular
Requestors: mmusgrove [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.45
Fixed in: (no value)



Subject: error: 'lenfunc' undeclared here
[aslt@ci-server01 Inline-Python-0.45-ebQYMs]$ perl Makefile.PL Found these python executables on your PATH: 1. /usr/bin/python Using the only python executable I could find Set the INLINE_PYTHON_EXECUTABLE environment variable to the full path to your python executable to override this selection. Using /usr/bin/python Using These Settings: Extra Libs: -lpthread -ldl -lutil Python Lib: -L/usr/lib64/python2.4/config -lpython2.4 Includes: -I/usr/include/python2.4 Extra Flags: none (perl Makefile.PL --help for details) Checking if your kit is complete... Warning: the following files are missing in your kit: t/32boolean.t Please inform the author. Generating a Unix-style Makefile Writing Makefile for Inline::Python Writing MYMETA.yml and MYMETA.json [aslt@ci-server01 Inline-Python-0.45-ebQYMs]$ make cp Python.pm blib/lib/Inline/Python.pm cp Python.pod blib/lib/Inline/Python.pod Running Mkbootstrap for Inline::Python () chmod 644 Python.bs /opt/perl/bin/perl /opt/perl/lib/5.18.2/ExtUtils/xsubpp -typemap /opt/perl/lib/5.18.2/ExtUtils/typemap Python.xs > Python.xsc && mv Python.xsc Python.c cc -c -I/usr/include/python2.4 -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"0.45\" -DXS_VERSION=\"0.45\" -fPIC "-I/opt/perl/lib/5.18.2/x86_64-linux-thread-multi-ld/CORE" -DEXPOSE_PERL -DCREATE_PYTHON -UCREATE_PERL Python.c cc -c -I/usr/include/python2.4 -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"0.45\" -DXS_VERSION=\"0.45\" -fPIC "-I/opt/perl/lib/5.18.2/x86_64-linux-thread-multi-ld/CORE" -DEXPOSE_PERL -DCREATE_PYTHON -UCREATE_PERL py2pl.c cc -c -I/usr/include/python2.4 -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"0.45\" -DXS_VERSION=\"0.45\" -fPIC "-I/opt/perl/lib/5.18.2/x86_64-linux-thread-multi-ld/CORE" -DEXPOSE_PERL -DCREATE_PYTHON -UCREATE_PERL perlmodule.c perlmodule.c:398: error: âlenfuncâ undeclared here (not in a function) perlmodule.c:398: error: expected â}â before numeric constant make: *** [perlmodule.o] Error 1 [aslt@ci-server01 Inline-Python-0.45-ebQYMs]$ perl -V Summary of my perl5 (revision 5 version 18 subversion 2) configuration: Platform: osname=linux, osvers=2.6.18-348.6.1.el5, archname=x86_64-linux-thread-multi-ld uname='linux nmsdev5.efjdfw.local 2.6.18-348.6.1.el5 #1 smp tue may 21 15:29:55 edt 2013 x86_64 x86_64 x86_64 gnulinux ' config_args='-des -Dprefix=/opt/perl -Dusethreads -Dusemorebits -Duseshrplib' hint=recommended, useposix=true, d_sigaction=define useithreads=define, usemultiplicity=define useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef use64bitint=define, use64bitall=define, uselongdouble=define usemymalloc=n, bincompat5005=undef Compiler: cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', optimize='-O2', cppflags='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include' ccversion='', gccversion='4.1.2 20080704 (Red Hat 4.1.2-54)', gccosandvers='' intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 ivtype='long', ivsize=8, nvtype='long double', nvsize=16, Off_t='off_t', lseeksize=8 alignbytes=16, prototype=define Linker and Libraries: ld='cc', ldflags =' -fstack-protector -L/usr/local/lib' libpth=/usr/local/lib /lib /usr/lib /lib64 /usr/lib64 /usr/local/lib64 libs=-lnsl -ldb -ldl -lm -lcrypt -lutil -lpthread -lc perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc libc=/lib/libc-2.5.so, so=so, useshrplib=true, libperl=libperl.so gnulibc_version='2.5' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E -Wl,-rpath,/opt/perl/lib/5.18.2/x86_64-linux-thread-multi-ld/CORE' cccdlflags='-fPIC', lddlflags='-shared -O2 -L/usr/local/lib -fstack-protector' Characteristics of this binary (from libperl): Compile-time options: HAS_TIMES MULTIPLICITY PERLIO_LAYERS PERL_DONT_CREATE_GVSV PERL_HASH_FUNC_ONE_AT_A_TIME_HARD PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP PERL_PRESERVE_IVUV PERL_SAWAMPERSAND USE_64_BIT_ALL USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES USE_LOCALE USE_LOCALE_COLLATE USE_LOCALE_CTYPE USE_LOCALE_NUMERIC USE_LONG_DOUBLE USE_PERLIO USE_PERL_ATOF USE_REENTRANT_API Built under linux Compiled at May 23 2014 14:11:53 %ENV: PERL5LIB="" PERL5OPT="" PERL5_CPANPLUS_IS_RUNNING="30429" PERL5_CPAN_IS_RUNNING="30429" @INC: /opt/perl/lib/site_perl/5.18.2/x86_64-linux-thread-multi-ld /opt/perl/lib/site_perl/5.18.2 /opt/perl/lib/5.18.2/x86_64-linux-thread-multi-ld /opt/perl/lib/5.18.2 /opt/perl/lib/site_perl . [aslt@ci-server01 Inline-Python-0.45-ebQYMs]$ python -v # installing zipimport hook import zipimport # builtin # installed zipimport hook # /usr/lib64/python2.4/site.pyc matches /usr/lib64/python2.4/site.py import site # precompiled from /usr/lib64/python2.4/site.pyc # /usr/lib64/python2.4/os.pyc matches /usr/lib64/python2.4/os.py import os # precompiled from /usr/lib64/python2.4/os.pyc import posix # builtin # /usr/lib64/python2.4/posixpath.pyc matches /usr/lib64/python2.4/posixpath.py import posixpath # precompiled from /usr/lib64/python2.4/posixpath.pyc # /usr/lib64/python2.4/stat.pyc matches /usr/lib64/python2.4/stat.py import stat # precompiled from /usr/lib64/python2.4/stat.pyc import errno # builtin # /usr/lib64/python2.4/UserDict.pyc matches /usr/lib64/python2.4/UserDict.py import UserDict # precompiled from /usr/lib64/python2.4/UserDict.pyc # /usr/lib64/python2.4/copy_reg.pyc matches /usr/lib64/python2.4/copy_reg.py import copy_reg # precompiled from /usr/lib64/python2.4/copy_reg.pyc # /usr/lib64/python2.4/types.pyc matches /usr/lib64/python2.4/types.py import types # precompiled from /usr/lib64/python2.4/types.pyc import japanese # directory /usr/lib64/python2.4/site-packages/japanese # /usr/lib64/python2.4/site-packages/japanese/__init__.pyc matches /usr/lib64/python2.4/site-packages/japanese/__init__.py import japanese # precompiled from /usr/lib64/python2.4/site-packages/japanese/__init__.pyc import japanese.aliases # directory /usr/lib64/python2.4/site-packages/japanese/aliases # /usr/lib64/python2.4/site-packages/japanese/aliases/__init__.pyc matches /usr/lib64/python2.4/site-packages/japanese/aliases/__init__.py import japanese.aliases # precompiled from /usr/lib64/python2.4/site-packages/japanese/aliases/__init__.pyc import encodings # directory /usr/lib64/python2.4/encodings # /usr/lib64/python2.4/encodings/__init__.pyc matches /usr/lib64/python2.4/encodings/__init__.py import encodings # precompiled from /usr/lib64/python2.4/encodings/__init__.pyc # /usr/lib64/python2.4/codecs.pyc matches /usr/lib64/python2.4/codecs.py import codecs # precompiled from /usr/lib64/python2.4/codecs.pyc import _codecs # builtin # /usr/lib64/python2.4/encodings/aliases.pyc matches /usr/lib64/python2.4/encodings/aliases.py import encodings.aliases # precompiled from /usr/lib64/python2.4/encodings/aliases.pyc # /usr/lib64/python2.4/warnings.pyc matches /usr/lib64/python2.4/warnings.py import warnings # precompiled from /usr/lib64/python2.4/warnings.pyc # /usr/lib64/python2.4/linecache.pyc matches /usr/lib64/python2.4/linecache.py import linecache # precompiled from /usr/lib64/python2.4/linecache.pyc # /usr/lib64/python2.4/encodings/utf_8.pyc matches /usr/lib64/python2.4/encodings/utf_8.py import encodings.utf_8 # precompiled from /usr/lib64/python2.4/encodings/utf_8.pyc Python 2.4.3 (#1, Jan 9 2013, 06:47:03) [GCC 4.1.2 20080704 (Red Hat 4.1.2-54)] on linux2 Type "help", "copyright", "credits" or "license" for more information. dlopen("/usr/lib64/python2.4/lib-dynload/readline.so", 2); import readline # dynamically loaded from /usr/lib64/python2.4/lib-dynload/readline.so
I see that you are using Python 2.4. This version has not seen any updates in more than 5 years and I cannot even find any documentation for its C API anymore. So it's hard to say what the type was called in this version. Is it possible for you to upgrade or install a newer version manually?
On Thu Oct 02 02:04:56 2014, NINE wrote: Show quoted text
> I see that you are using Python 2.4. This version has not seen any > updates in more than 5 years and I cannot even find any documentation > for its C API anymore. So it's hard to say what the type was called in > this version. > > Is it possible for you to upgrade or install a newer version manually?
Yes. If I force it to use Python 2.6, it installs fine. Is 2.6 the minimally supported Python version? If so then this is a documentation bug. If not then this is a bug elsewhere (in Makefile.PL perhaps).
Show quoted text
> Is 2.6 the minimally supported Python version? If so then this is a > documentation bug. If not then this is a bug elsewhere (in Makefile.PL > perhaps).
The documentation states that Inline::Python works with Python 2.5 to 2.7. I will remove the sentence about that it may work on older versions as we now know that it clearly doesn't.
Subject: Re: [rt.cpan.org #99261] error: 'lenfunc' undeclared here
Date: Thu, 2 Oct 2014 10:11:54 -0500
To: bug-Inline-Python [...] rt.cpan.org
From: "Mr. Muskrat" <mmusgrove [...] cpan.org>
Thank you! That'll make it easier on the next person. :) My co-worker is happy that I was able to get it working for him. On Thu, Oct 2, 2014 at 10:10 AM, Stefan Seifert via RT < bug-Inline-Python@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=99261 > >
> > Is 2.6 the minimally supported Python version? If so then this is a > > documentation bug. If not then this is a bug elsewhere (in Makefile.PL > > perhaps).
> > The documentation states that Inline::Python works with Python 2.5 to 2.7. > I will remove the sentence about that it may work on older versions as we > now know that it clearly doesn't. > >