Hi Shlomi,

thanks for all the info,

i've managed to make the src code work (the one in the
http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/python-
perlmodule/current/)<http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/python-perlmodule/current/>dir.

everything works great after applying all the patches in the dir.

all except one small thing: thread support.

i don't know if you've noticed, but there is an option to complite the
pyperl with thread support, using the MULTI_PERL empty file in the src dir.

after a bit of investigation, i saw that mandriva developers (probably)
deliberatly disabled the support via all the relevant files (they even
disabled the t/test_thd_more.py test for threads,
so that all tests will run OK).

the code in that dir looks abit old (2007), you know of any recent source
code that might have changed since?

since i'm using fedora, i'm not sure that any of the Mandriva rpm's will
help me..

any chance you can unpack that rpm you send me and send me a tar.gz?

i think i tried to installed it on fedora and it didn't work...

thanks again!

Eyal.



On Mon, Aug 10, 2009 at 7:40 PM, Shlomi Fish <[email protected]> wrote:

> Hi!
>
> Sorry for the late response.
>
> On Monday 10 August 2009 13:17:34 eyal edri wrote:
> > hmm..
> >
> > doesnt seem to work either.
> >
> > i downloaded the tar.lzma 1.0.1d file,  (did you apply any of the patches
> > or just installed the src files as they were?)
>
> I installed the package via urpmi.
>
> > followed the README ( doing the perl Makfile.PL; make install) , then
> > python setup.py install..
> >
> > it prints out this wierd glibc error:
> >
> > (i'm starting to lose my mind here .... :)
> >
>
> I think you need the patches. Try building the following .src.rpm:
>
>
> http://ftp.nluug.nl/pub/os/Linux/distr/Mandrivalinux/devel/cooker/SRPMS/contrib/release/python-
> perlmodule-1.0.1d-7mdv2009.1.src.rpm<http://ftp.nluug.nl/pub/os/Linux/distr/Mandrivalinux/devel/cooker/SRPMS/contrib/release/python-%0Aperlmodule-1.0.1d-7mdv2009.1.src.rpm>
>
> A bash script to fetch it is attached.
>
> Regards,
>
>        Shlomi Fish
>
> > [r...@eyale-f8-32 pyperl-1.0.1d]# python test.py
> > *** glibc detected *** /usr/bin/python: free(): invalid pointer:
> 0xb7fc5320
> > ***
> > ======= Backtrace: =========
> > /lib/libc.so.6[0x458ac1]
> > /lib/libc.so.6(cfree+0x90)[0x45c0f0]
> > /usr/lib/python2.5/site-packages/perl2.so[0x11c2f2]
> > /usr/lib/libpython2.5.so.1.0(PyEval_EvalFrameEx+0x31c5)[0x3c7e655]
> > /usr/lib/libpython2.5.so.1.0(PyEval_EvalCodeEx+0x7ef)[0x3c826bf]
> > /usr/lib/libpython2.5.so.1.0(PyEval_EvalCode+0x63)[0x3c82743]
> > /usr/lib/libpython2.5.so.1.0[0x3c9c3e6]
> > /usr/lib/libpython2.5.so.1.0(PyRun_FileExFlags+0x8e)[0x3c9c49e]
> > /usr/lib/libpython2.5.so.1.0(PyRun_SimpleFileExFlags+0x198)[0x3c9db58]
> > /usr/lib/libpython2.5.so.1.0(PyRun_AnyFileExFlags+0x7a)[0x3c9e2ba]
> > /usr/lib/libpython2.5.so.1.0(Py_Main+0xaa6)[0x3ca7e06]
> > /usr/bin/python(main+0x32)[0x80485d2]
> > /lib/libc.so.6(__libc_start_main+0xe0)[0x405390]
> > /usr/bin/python[0x80484e1]
> > ======= Memory map: ========
> > 00110000-00111000 r-xp 00110000 00:00 0          [vdso]
> > 00111000-00112000 r-xp 00000000 08:01 18549033
> > /usr/lib/python2.5/site-packages/perl.so
> > 00112000-00113000 rw-p 00000000 08:01 18549033
> > /usr/lib/python2.5/site-packages/perl.so
> > 00113000-00121000 r-xp 00000000 08:01 18548962
> > /usr/lib/python2.5/site-packages/perl2.so
> > 00121000-00122000 rw-p 0000d000 08:01 18548962
> > /usr/lib/python2.5/site-packages/perl2.so
> > 00122000-0024d000 r-xp 00000000 08:01 18548893
> > /usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so
> > 0024d000-00252000 rw-p 0012a000 08:01 18548893
> > /usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so
> > 00252000-00254000 rw-p 00252000 00:00 0
> > 00254000-00262000 r-xp 00000000 08:01 18582164
> >
> /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/Python/Object/O
> >bject.so 00262000-00263000 rw-p 0000d000 08:01 18582164
> >
> /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/Python/Object/O
> >bject.so 0037e000-00387000 r-xp 00000000 08:01 32932061
> > /lib/libcrypt-2.7.so 00387000-00388000 r--p 00008000 08:01 32932061
> > /lib/libcrypt-2.7.so 00388000-00389000 rw-p 00009000 08:01 32932061
> > /lib/libcrypt-2.7.so 00389000-003b0000 rw-p 00389000 00:00 0
> > 003d0000-003eb000 r-xp 00000000 08:01 32931976   /lib/ld-2.7.so
> > 003eb000-003ec000 r--p 0001a000 08:01 32931976   /lib/ld-2.7.so
> > 003ec000-003ed000 rw-p 0001b000 08:01 32931976   /lib/ld-2.7.so
> > 003ef000-00542000 r-xp 00000000 08:01 32931978   /lib/libc-2.7.so
> > 00542000-00544000 r--p 00153000 08:01 32931978   /lib/libc-2.7.so
> > 00544000-00545000 rw-p 00155000 08:01 32931978   /lib/libc-2.7.so
> > 00545000-00548000 rw-p 00545000 00:00 0
> > 0054a000-00571000 r-xp 00000000 08:01 32931980   /lib/libm-2.7.so
> > 00571000-00572000 r--p 00026000 08:01 32931980   /lib/libm-2.7.so
> > 00572000-00573000 rw-p 00027000 08:01 32931980   /lib/libm-2.7.so
> > 00575000-00578000 r-xp 00000000 08:01 32931984   /lib/libdl-2.7.so
> > 00578000-00579000 r--p 00002000 08:01 32931984   /lib/libdl-2.7.so
> > 00579000-0057a000 rw-p 00003000 08:01 32931984   /lib/libdl-2.7.so
> > 0057c000-00591000 r-xp 00000000 08:01 32932026   /lib/libpthread-2.7.so
> > 00591000-00592000 r--p 00014000 08:01 32932026   /lib/libpthread-2.7.so
> > 00592000-00593000 rw-p 00015000 08:01 32932026   /lib/libpthread-2.7.so
> > 00593000-00595000 rw-p 00593000 00:00 0
> > 006d9000-006e4000 r-xp 00000000 08:01 32932062
> > /lib/libgcc_s-4.1.2-20070925.so.1
> > 006e4000-006e5000 rw-p 0000a000 08:01 32932062
> > /lib/libgcc_s-4.1.2-20070925.so.1
> > 006f9000-00709000 r-xp 00000000 08:01 32932052   /lib/libresolv-2.7.so
> > 00709000-0070a000 r--p 00010000 08:01 32932052   /lib/libresolv-2.7.so
> > 0070a000-0070b000 rw-p 00011000 08:01 32932052   /lib/libresolv-2.7.so
> > 0070b000-0070d000 rw-p 0070b000 00:00 0
> > 00989000-0098b000 r-xp 00000000 08:01 32932057   /lib/libutil-2.7.so
> > 0098b000-0098c000 r--p 00001000 08:01 32932057   /lib/libutil-2.7.so
> > 0098c000-0098d000 rw-p 00002000 08:01 32932057   /lib/libutil-2.7.so
> > 00c82000-00c97000 r-xp 00000000 08:01 32932050   /lib/libnsl-2.7.so
> > 00c97000-00c98000 r--p 00014000 08:01 32932050   /lib/libnsl-2.7.so
> > 00c98000-00c99000 rw-p 00015000 08:01 32932050   /lib/libnsl-2.7.so
> > 00c99000-00c9b000 rw-p 00c99000 00:00 0
> > 03bdf000-03cfa000 r-xp 00000000 08:01 17609019
> > /usr/lib/libpython2.5.so.1.0
> > 03cfa000-03d20000 rw-p 0011a000 08:01 17609019
> > /usr/lib/libpython2.5.so.1.0
> > 03d20000-03d26000 rw-p 03d20000 00:00 0
> > 08048000-08049000 r-xp 00000000 08:01 17620002   /usr/bin/python
> > 08049000-0804a000 rw-p 00000000 08:01 17620002   /usr/bin/python
> > 092e7000-093ef000 rw-p 092e7000 00:00 0          [heap]
> > b7c00000-b7c21000 rw-p b7c00000 00:00 0
> > b7c21000-b7d00000 ---p b7c21000 00:00 0
> > b7d3b000-b7d5d000 rw-p b7d3b000 00:00 0
> > b7d5d000-b7f5d000 r--p 00000000 08:01 17599607
> > /usr/lib/locale/locale-archive
> > b7f5d000-b7fe2000 rw-p b7f5d000 00:00 0
> > bfce4000-bfcf9000 rw-p bffeb000 00:00 0          [stack]
> > apply.py ............ failed
> >
> > On Mon, Aug 10, 2009 at 12:57 PM, Shlomi Fish <[email protected]>
> wrote:
> > > On Monday 10 August 2009 10:55:16 eyal edri wrote:
> > > > Hi Everyone,
> > > >
> > > > i'm trying to run PyPerl 1.0.1c (1.0.1 didn't compile) on fedora 8
> > > > 32bit running perl 5.8.8 and python 2.5.1.
> > >
> > > Hi!
> > >
> > > Based on http://wiki.python.org/moin/PyPerl it seems the Mandriva
> package
> > > is
> > > the way to go:
> > >
> > > http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/python-
> > > perlmodule/current/<
> http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/c
> > >ooker/python-%0Aperlmodule/current/>
> > >
> > > (sorry for the split URL).
> > >
> > > Have you tried it?
> > >
> > > Regards,
> > >
> > >        Shlomi Fish
> > >
> > > > after compiling the src code (following the README), the test.py
> failed
> > >
> > > on
> > >
> > > > 7/10 of the tests. (the error is similar to the one below).
> > > >
> > > > each time i run a simple code like:
> > > >
> > > > *import perl
> > > > import time
> > > >
> > > > perl.require("Foo")
> > > >
> > > > foo_test = perl.get_ref("Foo::test")
> > > >
> > > > for i in range(1, 100):
> > > >     foo_test()
> > > >
> > > > print "end"
> > >
> > > This program works for me on my Mandriva system:
> > >
> > > {{{{{{{{{{{{{
> > > shlomi:~$ python
> > > Python 2.6.2 (r262:71600, Jul 11 2009, 07:37:11)
> > > [GCC 4.4.0] on linux2
> > > Type "help", "copyright", "credits" or "license" for more information.
> > >
> > > >>> import perl
> > > >>> perl.require("Time::HiRes")
> > >
> > > 1
> > >
> > > >>> mytime = perl.get_ref("Time::HiRes::time")
> > > >>> mytime()
> > >
> > > 1249898191.6971929
> > >
> > > >>> mytime()
> > >
> > > 1249898193.4432671
> > >
> > > >>> mytime()
> > >
> > > 1249898196.2481279
> > > }}}}}}}}}}}}
> > >
> > > Regards,
> > >
> > >        Shlomi Fish
> > >
> > > > *the python exits with:
> > > >
> > > > [r...@eyale-f8-32 python]# python importPerl.py
> > > > test 0
> > > > test 1
> > > > test 2
> > > > test 3
> > > > end
> > > > *** glibc detected *** python: free(): invalid pointer: 0xb7f320e0
> ***
> > > > ======= Backtrace: =========
> > > > /lib/libc.so.6[0x458ac1]
> > > > /lib/libc.so.6(cfree+0x90)[0x45c0f0]
> > > > /usr/lib/python2.5/site-packages/perl2.so[0x11ae8d]
> > > > /usr/lib/libpython2.5.so.1.0[0x3c306a9]
> > > > /usr/lib/libpython2.5.so.1.0(PyDict_SetItem+0x94)[0x3c32ad4]
> > > > /usr/lib/libpython2.5.so.1.0(_PyModule_Clear+0x194)[0x3c34f24]
> > > > /usr/lib/libpython2.5.so.1.0(PyImport_Cleanup+0x177)[0x3c95977]
> > > > /usr/lib/libpython2.5.so.1.0(Py_Finalize+0xd0)[0x3c9d250]
> > > > /usr/lib/libpython2.5.so.1.0(Py_Main+0x54f)[0x3ca78af]
> > > > python(main+0x32)[0x80485d2]
> > > > /lib/libc.so.6(__libc_start_main+0xe0)[0x405390]
> > > > python[0x80484e1]
> > > > ======= Memory map: ========
> > > > 00110000-00111000 r-xp 00110000 00:00 0          [vdso]
> > > > 00111000-00112000 r-xp 00000000 08:01 18549033
> > > > /usr/lib/python2.5/site-packages/perl.so
> > > > 00112000-00113000 rw-p 00000000 08:01 18549033
> > > > /usr/lib/python2.5/site-packages/perl.so
> > > > 00113000-0011f000 r-xp 00000000 08:01 18548962
> > > > /usr/lib/python2.5/site-packages/perl2.so
> > > > 0011f000-00120000 rw-p 0000c000 08:01 18548962
> > > > /usr/lib/python2.5/site-packages/perl2.so
> > > > 00120000-0024b000 r-xp 00000000 08:01 18548893
> > > > /usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so
> > > > 0024b000-00250000 rw-p 0012a000 08:01 18548893
> > > > /usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so
> > > > 00250000-00252000 rw-p 00250000 00:00 0
> > > > 00252000-00255000 r-xp 00000000 08:01 18548150
> > > > /usr/lib/python2.5/lib-dynload/timemodule.so
> > > > 00255000-00257000 rw-p 00002000 08:01 18548150
> > > > /usr/lib/python2.5/lib-dynload/timemodule.so
> > > > 00257000-00264000 r-xp 00000000 08:01 18582164
> > >
> > >
> /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/Python/Object
> > >/O
> > >
> > > >bject.so 00264000-00265000 rw-p 0000c000 08:01 18582164
> > >
> > >
> /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/Python/Object
> > >/O
> > >
> > > >bject.so 00265000-0026e000 r-xp 00000000 08:01 18579485
> > > > /usr/lib/perl5/5.8.8/i386-linux-thread-multi/auto/List/Util/Util.so
> > > > 0026e000-0026f000 rw-p 00008000 08:01 18579485
> > > > /usr/lib/perl5/5.8.8/i386-linux-thread-multi/auto/List/Util/Util.so
> > > > 0037e000-00387000 r-xp 00000000 08:01 32932061   /lib/
> libcrypt-2.7.so
> > > > 00387000-00388000 r--p 00008000 08:01 32932061   /lib/
> libcrypt-2.7.so
> > > > 00388000-00389000 rw-p 00009000 08:01 32932061   /lib/
> libcrypt-2.7.so
> > > > 00389000-003b0000 rw-p 00389000 00:00 0
> > > > 003d0000-003eb000 r-xp 00000000 08:01 32931976   /lib/ld-2.7.so
> > > > 003eb000-003ec000 r--p 0001a000 08:01 32931976   /lib/ld-2.7.so
> > > > 003ec000-003ed000 rw-p 0001b000 08:01 32931976   /lib/ld-2.7.so
> > > > 003ef000-00542000 r-xp 00000000 08:01 32931978   /lib/libc-2.7.so
> > > > 00542000-00544000 r--p 00153000 08:01 32931978   /lib/libc-2.7.so
> > > > 00544000-00545000 rw-p 00155000 08:01 32931978   /lib/libc-2.7.so
> > > > 00545000-00548000 rw-p 00545000 00:00 0
> > > > 0054a000-00571000 r-xp 00000000 08:01 32931980   /lib/libm-2.7.so
> > > > 00571000-00572000 r--p 00026000 08:01 32931980   /lib/libm-2.7.so
> > > > 00572000-00573000 rw-p 00027000 08:01 32931980   /lib/libm-2.7.so
> > > > 00575000-00578000 r-xp 00000000 08:01 32931984   /lib/libdl-2.7.so
> > > > 00578000-00579000 r--p 00002000 08:01 32931984   /lib/libdl-2.7.so
> > > > 00579000-0057a000 rw-p 00003000 08:01 32931984   /lib/libdl-2.7.so
> > > > 0057c000-00591000 r-xp 00000000 08:01 32932026   /lib/
> libpthread-2.7.so
> > > > 00591000-00592000 r--p 00014000 08:01 32932026   /lib/
> libpthread-2.7.so
> > > > 00592000-00593000 rw-p 00015000 08:01 32932026   /lib/
> libpthread-2.7.so
> > > > 00593000-00595000 rw-p 00593000 00:00 0
> > > > 006d9000-006e4000 r-xp 00000000 08:01 32932062
> > > > /lib/libgcc_s-4.1.2-20070925.so.1
> > > > 006e4000-006e5000 rw-p 0000a000 08:01 32932062
> > > > /lib/libgcc_s-4.1.2-20070925.so.1
> > > > 006f9000-00709000 r-xp 00000000 08:01 32932052   /lib/
> libresolv-2.7.so
> > > > 00709000-0070a000 r--p 00010000 08:01 32932052   /lib/
> libresolv-2.7.so
> > > > 0070a000-0070b000 rw-p 00011000 08:01 32932052   /lib/
> libresolv-2.7.so
> > > > 0070b000-0070d000 rw-p 0070b000 00:00 0
> > > > 00989000-0098b000 r-xp 00000000 08:01 32932057   /lib/libutil-2.7.so
> > > > 0098b000-0098c000 r--p 00001000 08:01 32932057   /lib/libutil-2.7.so
> > > > 0098c000-0098d000 rw-p 00002000 08:01 32932057   /lib/libutil-2.7.so
> > > > 00c82000-00c97000 r-xp 00000000 08:01 32932050   /lib/libnsl-2.7.so
> > > > 00c97000-00c98000 r--p 00014000 08:01 32932050   /lib/libnsl-2.7.so
> > > > 00c98000-00c99000 rw-p 00015000 08:01 32932050   /lib/libnsl-2.7.so
> > > > 00c99000-00c9b000 rw-p 00c99000 00:00 0
> > > > 03bdf000-03cfa000 r-xp 00000000 08:01 17609019
> > > > /usr/lib/libpython2.5.so.1.0
> > > > 03cfa000-03d20000 rw-p 0011a000 08:01 17609019
> > > > /usr/lib/libpython2.5.so.1.0
> > > > 03d20000-03d26000 rw-p 03d20000 00:00 0
> > > > 08048000-08049000 r-xp 00000000 08:01 17620002   /usr/bin/python
> > > > 08049000-0804a000 rw-p 00000000 08:01 17620002   /usr/bin/python
> > > > 08af1000-08c3b000 rw-p 08af1000 00:00 0          [heap]
> > > > b7b00000-b7b21000 rw-p b7b00000 00:00 0
> > > > b7b21000-b7c00000 ---p b7b21000 00:00 0
> > > > b7ca8000-b7cca000 rw-p b7ca8000 00:00 0
> > > > b7cca000-b7eca000 r--p 00000000 08:01 17599607
> > > > /usr/lib/locale/locale-archive
> > > > b7eca000-b7f4f000 rw-p b7eca000 00:00 0
> > > > bfa51000-bfa66000 rw-p bffeb000 00:00 0          [stack]
> > > > Aborted
> > > >
> > > >
> > > > Anyone ever used the PyPerl Module?
> > > >
> > > > thanks!
> > >
> > > --
> > > -----------------------------------------------------------------
> > > Shlomi Fish       http://www.shlomifish.org/
> > > Parody on "The Fountainhead" - http://xrl.us/bjria
> > >
> > > God gave us two eyes and ten fingers so we will type five times as much
> > > as we
> > > read.
>
> --
> -----------------------------------------------------------------
> Shlomi Fish       http://www.shlomifish.org/
> Rethinking CPAN - http://xrl.us/bjn7p
>
> God gave us two eyes and ten fingers so we will type five times as much as
> we
> read.
>



-- 
Eyal Edri
_______________________________________________
Python-il mailing list
[email protected]
http://hamakor.org.il/cgi-bin/mailman/listinfo/python-il

לענות