[Zope-Perl] PyPerl Installation error

Sanjay Rawat tosanjayr1 at rediffmail.com
Wed Mar 24 05:34:10 EDT 2010


Hi All:
I am trying to install Pyperl on my Ubuntu (9.10, Karmic) box. I am running python 2.6.4 with Perl 5.10.0. I followed the instructions i.e. (cd Python-Object; perl Makefile.PL; make install)
      python setup.py install
With sudo option.
While running the setup.py install, I got the following errors:
========
 sudo python setup.py install
running install
running build
running build_py
running build_ext
building 'perl2' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/local/include -I/usr/lib/perl/5.10/CORE -I/usr/include/python2.6 -c perlmodule.c -o build/temp.linux-i686-2.6/perlmodule.o -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DDL_HACK -DMULTI_PERL
In file included from /usr/include/python2.6/Python.h:8,
                 from perlmodule.c:8:
/usr/include/python2.6/pyconfig.h:1028:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/sys/types.h:27,
                 from /usr/lib/perl/5.10/CORE/perl.h:587,
                 from perlmodule.c:7:
/usr/include/features.h:158:1: warning: this is the location of the previous definition
In file included from /usr/include/python2.6/Python.h:8,
                 from perlmodule.c:8:
/usr/include/python2.6/pyconfig.h:1037:1: warning: "_XOPEN_SOURCE" redefined
In file included from /usr/include/sys/types.h:27,
                 from /usr/lib/perl/5.10/CORE/perl.h:587,
                 from perlmodule.c:7:
/usr/include/features.h:160:1: warning: this is the location of the previous definition
In file included from perlmodule.c:13:
lang_lock.h:4:25: warning: "/*" within comment
lang_lock.h:5:23: warning: "/*" within comment
perlmodule.c: In function ‘call_perl’:
perlmodule.c:221: warning: value computed is not used
In file included from perlmodule.c:255:
opcode.c: In function ‘opmask_addlocal’:
opcode.c:39: warning: format not a string literal and no format arguments
opcode.c:41: warning: format not a string literal and no format arguments
perlmodule.c: At top level:
perlmodule.c:259: warning: function declaration isn’t a prototype
perlmodule.c:372: warning: function declaration isn’t a prototype
perlmodule.c:382: warning: function declaration isn’t a prototype
perlmodule.c:392: warning: function declaration isn’t a prototype
perlmodule.c:402: warning: function declaration isn’t a prototype
perlmodule.c:412: warning: function declaration isn’t a prototype
perlmodule.c:460: warning: function declaration isn’t a prototype
perlmodule.c:513: warning: function declaration isn’t a prototype
perlmodule.c:565: warning: function declaration isn’t a prototype
perlmodule.c:649: warning: function declaration isn’t a prototype
perlmodule.c:748: warning: function declaration isn’t a prototype
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/local/include -I/usr/lib/perl/5.10/CORE -I/usr/include/python2.6 -c lang_lock.c -o build/temp.linux-i686-2.6/lang_lock.o -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DDL_HACK -DMULTI_PERL
In file included from /usr/include/python2.6/Python.h:8,
                 from lang_lock.c:6:
/usr/include/python2.6/pyconfig.h:1028:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/sys/types.h:27,
                 from /usr/lib/perl/5.10/CORE/perl.h:587,
                 from lang_lock.c:5:
/usr/include/features.h:158:1: warning: this is the location of the previous definition
In file included from /usr/include/python2.6/Python.h:8,
                 from lang_lock.c:6:
/usr/include/python2.6/pyconfig.h:1037:1: warning: "_XOPEN_SOURCE" redefined
In file included from /usr/include/sys/types.h:27,
                 from /usr/lib/perl/5.10/CORE/perl.h:587,
                 from lang_lock.c:5:
/usr/include/features.h:160:1: warning: this is the location of the previous definition
In file included from lang_lock.c:8:
lang_lock.h:4:25: warning: "/*" within comment
lang_lock.h:5:23: warning: "/*" within comment
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/local/include -I/usr/lib/perl/5.10/CORE -I/usr/include/python2.6 -c lang_map.c -o build/temp.linux-i686-2.6/lang_map.o -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DDL_HACK -DMULTI_PERL
In file included from /usr/include/python2.6/Python.h:8,
                 from lang_map.c:9:
/usr/include/python2.6/pyconfig.h:1028:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/sys/types.h:27,
                 from /usr/lib/perl/5.10/CORE/perl.h:587,
                 from lang_map.c:8:
/usr/include/features.h:158:1: warning: this is the location of the previous definition
In file included from /usr/include/python2.6/Python.h:8,
                 from lang_map.c:9:
/usr/include/python2.6/pyconfig.h:1037:1: warning: "_XOPEN_SOURCE" redefined
In file included from /usr/include/sys/types.h:27,
                 from /usr/lib/perl/5.10/CORE/perl.h:587,
                 from lang_map.c:8:
/usr/include/features.h:160:1: warning: this is the location of the previous definition
In file included from lang_map.c:12:
lang_lock.h:4:25: warning: "/*" within comment
lang_lock.h:5:23: warning: "/*" within comment
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/local/include -I/usr/lib/perl/5.10/CORE -I/usr/include/python2.6 -c svrv_object.c -o build/temp.linux-i686-2.6/svrv_object.o -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DDL_HACK -DMULTI_PERL
In file included from /usr/include/python2.6/Python.h:8,
                 from svrv_object.c:8:
/usr/include/python2.6/pyconfig.h:1028:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/sys/types.h:27,
                 from /usr/lib/perl/5.10/CORE/perl.h:587,
                 from svrv_object.c:7:
/usr/include/features.h:158:1: warning: this is the location of the previous definition
In file included from /usr/include/python2.6/Python.h:8,
                 from svrv_object.c:8:
/usr/include/python2.6/pyconfig.h:1037:1: warning: "_XOPEN_SOURCE" redefined
In file included from /usr/include/sys/types.h:27,
                 from /usr/lib/perl/5.10/CORE/perl.h:587,
                 from svrv_object.c:7:
/usr/include/features.h:160:1: warning: this is the location of the previous definition
In file included from svrv_object.c:17:
lang_lock.h:4:25: warning: "/*" within comment
lang_lock.h:5:23: warning: "/*" within comment
svrv_object.c: In function ‘PySVRV_New’:
svrv_object.c:56: warning: unused variable ‘my_perl’
svrv_object.c: In function ‘pysvrv_keys’:
svrv_object.c:225: warning: unused variable ‘my_perl’
svrv_object.c: In function ‘pysvrv_values’:
svrv_object.c:239: warning: unused variable ‘my_perl’
svrv_object.c:463:26: warning: "/*" within comment
svrv_object.c: In function ‘array_splice’:
svrv_object.c:517: warning: format not a string literal and no format arguments
svrv_object.c:526: warning: format not a string literal and no format arguments
svrv_object.c:538: warning: format not a string literal and no format arguments
svrv_object.c:552: warning: format not a string literal and no format arguments
svrv_object.c: In function ‘pysvrv_pop’:
svrv_object.c:805: warning: unused variable ‘sv’
svrv_object.c: In function ‘pysvrv_remove’:
svrv_object.c:905: warning: unused variable ‘my_perl’
svrv_object.c: In function ‘pysvrv_index’:
svrv_object.c:943: warning: unused variable ‘my_perl’
svrv_object.c: In function ‘pysvrv_av_alloc’:
svrv_object.c:1087: warning: unused variable ‘my_perl’
svrv_object.c: In function ‘pysvrv_getattr’:
svrv_object.c:1183: warning: assignment discards qualifiers from pointer target type
svrv_object.c:1216: warning: format not a string literal and no format arguments
svrv_object.c:1217: warning: format not a string literal and no format arguments
svrv_object.c: In function ‘pysvrv_setattr’:
svrv_object.c:1265: warning: format not a string literal and no format arguments
svrv_object.c:1266: warning: format not a string literal and no format arguments
svrv_object.c: In function ‘pysvrv_length’:
svrv_object.c:1431: error: ‘my_perl’ undeclared (first use in this function)
svrv_object.c:1431: error: (Each undeclared identifier is reported only once
svrv_object.c:1431: error: for each function it appears in.)
svrv_object.c: In function ‘pysvrv_nonzero’:
svrv_object.c:1461: error: ‘my_perl’ undeclared (first use in this function)
svrv_object.c: In function ‘pysvrv_repeat’:
svrv_object.c:1787: warning: unused variable ‘svp’
svrv_object.c: At top level:
svrv_object.c:2012: warning: ‘intargfunc’ is deprecated
svrv_object.c:2013: warning: ‘intargfunc’ is deprecated
svrv_object.c:2014: warning: ‘intintargfunc’ is deprecated
error: command 'gcc' failed with exit status 1
sanjay at sanjay-laptop:~/pythonCode/dist/pyperl-1.0.1c$ 
==========================
I tried to locate source of error, but I find that 'my_perl' is either defined or its not at all that that line number. I find, instead, 'dCTX' or 'HvKEYS(sv)'. Please help me to srot ou this issue. It will be really great if I can call Perl from my Python code.

thanks in advance
regards
-Sanjay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope-perl/attachments/20100324/1467e853/attachment.html 


More information about the Zope-perl mailing list