Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Crypt::Random installation problems on RH

by Anonymous Monk
on Jul 30, 2004 at 11:07 UTC ( [id://378644] : perlquestion . print w/replies, xml ) Need Help??

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Greetings monks

I'm having no end of fun trying to get Crypt::Random installed - Math::Pari installs without any test failures, but C::R fails at testing. Googling brings up similar reports but no solution - anyone have any idea what the problem is?

Many thanks Going to build V/VI/VIPUL/Crypt-Random-1.23.tar.gz Checking if your kit is complete... Looks good Writing Makefile for Crypt::Random cp lib/Crypt/Random/Provider/ blib/lib/Crypt/Random/Provider/ra cp lib/Crypt/Random/Provider/ blib/lib/Crypt/Random/Provid +er/ cp lib/Crypt/ blib/lib/Crypt/ cp lib/Crypt/Random/ blib/lib/Crypt/Random/ cp lib/Crypt/Random/Provider/ blib/lib/Crypt/Random/Provider/egd cp lib/Crypt/Random/Provider/ blib/lib/Crypt/Random/Provider/Fi cp lib/Crypt/Random/Provider/ blib/lib/Crypt/Random/Provi +der/ cp bin/makerandom blib/script/makerandom /usr/bin/perl -I/usr/lib/perl5/5.6.1/i386-linux -I/usr/lib/perl5/5.6.1 + -MExtUtils::MakeMaker -e "MY->fixin(shift)" blib/script/makerandom Manifying blib/man3/Crypt::Random.3pm /usr/bin/make -- OK Running make test PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib -I/usr/lib/perl +5/5.6.1/i386-linux -I/usr/lib/perl5/5.6.1 -e 'use Test::Harness qw(&r +untests $verbose); $verbose=0; runtests @ARGV;' t/*.t t/generator..........ok 3/18PARI: *** forbidden division t_REAL % +t_INT. at /usr/lib/perl5/site_perl/5.6.1/i386-linux/Math/ line + 978. t/generator..........dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 4-18 Failed 15/18 tests, 16.67% okay t/makerandom_itv.....PARI: *** forbidden division t_REAL % t_INT. +at /usr/lib/perl5/site_perl/5.6.1/i386-linux/Math/ line 978. t/makerandom_itv.....dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 1-5 Failed 5/5 tests, 0.00% okay t/octet_string.......ok t/pari_misfeature....PARI: *** forbidden division t_REAL % t_INT. +at /usr/lib/perl5/site_perl/5.6.1/i386-linux/Math/ line 978. t/pari_misfeature....dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED test 1 Failed 1/1 tests, 0.00% okay t/random.............ok Failed Test Stat Wstat Total Fail Failed List of Failed ---------------------------------------------------------------------- +--------- t/generator.t 255 65280 18 15 83.33% 4-18 t/makerandom_itv.t 255 65280 5 5 100.00% 1-5 t/pari_misfeature.t 255 65280 1 1 100.00% 1 Failed 3/5 test scripts, 40.00% okay. 21/27 subtests failed, 22.22% ok +ay. make: *** [test_dynamic] Error 11 /usr/bin/make test -- NOT OK Running make install make test had returned bad status, won't install without force
Summary of my perl5 (revision 5.0 version 6 subversion 1) configuratio +n: Platform: osname=linux, osvers=2.4.17-0.13smp, archname=i386-linux uname='linux 2.4.17-0.13smp #1 smp fri feb 1 + 10:30:48 est 2002 i686 unknown ' config_args='-des -Doptimize=-O2 -march=i386 -mcpu=i686 -Dcc=gcc - +Dcf_by=Red Hat, Inc. -Dcccdlflags=-fPIC -Dinstallprefix=/usr -Dprefix +=/usr -Darchname=i386-linux -Dvendorprefix=/usr -Dsiteprefix=/usr -Uu +sethreads -Uuseithreads -Uuselargefiles -Dd_dosuid -Dd_semctl_semun - +Di_db -Di_ndbm -Di_gdbm -Di_shadow -Di_syslog -Dman3ext=3pm' hint=recommended, useposix=true, d_sigaction=define usethreads=undef use5005threads=undef useithreads=undef usemultipl +icity=undef useperlio=undef d_sfio=undef uselargefiles=undef usesocks=undef use64bitint=undef use64bitall=undef uselongdouble=undef Compiler: cc='gcc', ccflags ='-fno-strict-aliasing -I/usr/local/include', optimize='-O2 -march=i386 -mcpu=i686', cppflags='-fno-strict-aliasing -I/usr/local/include' ccversion='', gccversion='2.96 20000731 (Red Hat Linux 7.2 2.96-10 +9)', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=1 +2 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', + lseeksize=4 alignbytes=4, usemymalloc=n, prototype=define Linker and Libraries: ld='gcc', ldflags =' -L/usr/local/lib' libpth=/usr/local/lib /lib /usr/lib libs=-lnsl -ldl -lm -lc -lcrypt -lutil perllibs=-lnsl -ldl -lm -lc -lcrypt -lutil libc=/lib/, so=so, useshrplib=false, libperl=libperl. +a Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynami +c' cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib'

Replies are listed 'Best First'.
Re: Crypt::Random installation problems on RH
by gellyfish (Monsignor) on Jul 30, 2004 at 11:15 UTC

    I think it is probably to do with the version of Math::Pari or GP/Pari installed - I have had no problem with Math-Pari-2.010501 and pari-2.1.5


Re: Crypt::Random installation problems on RH
by tachyon (Chancellor) on Jul 30, 2004 at 12:42 UTC

    No problems for me either on RH 7.3, with Math-Pari-2.010501 and pari-2.1.5 with perl 5.6.2 and 5.8.3



Re: Crypt::Random installation problems on RH
by Anonymous Monk on Jul 30, 2004 at 13:54 UTC
    Oh well :(

    I'm also using Math-Pari-2.010501 and pari-2.1.5, reinstalled from scratch and exactly the same problem. I wonder if it's a gcc issue?

    gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-110)

      I think you might find that is the case - that version of gcc on RH was buggy in a number of respects IIRC


        Indeed, especially since there was never an official gcc 2.96 release.