moderated >> AIX testers wanted for Math::Random

by Geoffrey Rommel » Wed, 12 Jul 2006 01:56:55 GMT

I recently received a bug report for Math::Random versions 0.67 and 0.68.
The environment was AIX 5.2.0.0, perl 5.8.7 (or 5.8.8?), and gcc 4.0.1. I
don't have an AIX machine to test on, and the current CPAN test results for
this module don't show any tests for AIX.

So, if you have AIX and could test Math::Random, you would be doing a Good
Deed. The following questions are of particular interest:
- If "make test" dumps core, can you isolate the exact line where the
failure occurs?
- Does specifying '-O0' to the compiler make any difference?
- Does gcc give different results from Visual Age C++?

You can reach me at GROMMEL [at] cpan [dot] org. Thanks.

Similar Threads

1. AIX testers wanted for Math::Random

2. Trouble installing modules (Net::SSH::Perl, Math::Pari, Crypt::Random)

In looking for a good Perl SSH module, I came across Net::SSH::Perl,
which has a ton of dependencies.  While looking into this, I stumbled
across CPAN::shell, which I figured would make installing Net::SSH::Perl
a lot easier.  So, I installed CPAN::shell, but am unable to get all the
dependencies for Net::SSH::Perl installed.

The install starts bombing out at Crypt::Random (and continues through
several other Crypt modules) - it kicks out a number of errors similar
to this:

t/generator..........ok 3/18PARI:   ***   forbidden division t_REAL %
t_INT. at /usr/lib/perl5/site_perl/5.6.1/i386-linux/Math/Pari.pm line
978.

I had to install Math::Pari manually (due to having to provide some
build directory), but it installed without incident.

Anyone know how I can get around this?  Or, alternatively, a better SSH
module to use?

Jason Price
Network Engineer
Thomson West
651.848.7685
 XXXX@XXXXX.COM  

3. Math-Random-MT-Auto-4.08.00.tar.gz

4. Help with Math::GMP compile on AIX 5.3

Hi All.
I am trying to compile Math::GMP odule on my AIX 5.3 system and I keep
getting the following error: (Note that I compiled GMP Math libraries
without issues and I have added the '-L/usr/local/lib' to the
Makefile.PL :

Checking if your kit is complete...
Looks good
Writing Makefile for Math::GMP

Math-GMP-2.04> make

cp lib/Math/GMP.pm blib/lib/Math/GMP.pm
AutoSplitting blib/lib/Math/GMP.pm (blib/lib/auto/Math/GMP)
        /usr/bin/perl -e 'use ExtUtils::Mksymlists;  Mksymlists("NAME"
=> "Math:
:GMP", "DL_FUNCS" => {  }, "FUNCLIST" => [], "DL_VARS" => []);'
        /usr/bin/perl /usr/opt/perl5/lib/5.8.2/ExtUtils/xsubpp  -
typemap /usr/op
t/perl5/lib/5.8.2/ExtUtils/typemap -typemap typemap  GMP.xs > GMP.xsc
&& mv GMP.
xsc GMP.c
        cc_r -c    -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -
qmaxmem=16384
 -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32 -
D_LARGE_FILES -qlon
glong -O    -DVERSION=\"2.04\"  -DXS_VERSION=\"2.04\"  "-I/usr/opt/
perl5/lib/5.8
.2/aix-thread-multi/CORE"   GMP.c
Running Mkbootstrap for Math::GMP ()
        chmod 644 GMP.bs
        rm -f blib/arch/auto/Math/GMP/GMP.so
        LD_RUN_PATH="" ld  -bhalt:4 -bM:SRE -bI:/usr/opt/perl5/lib/
5.8.2/aix-thr
ead-multi/CORE/perl.exp -bE:GMP.exp -bnoentry -lpthreads -lc_r GMP.o  -
o blib/ar
ch/auto/Math/GMP/GMP.so   -L/usr/local/lib -lgmp
ld: 0711-317 ERROR: Undefined symbol: .__gmpz_init
ld: 0711-317 ERROR: Undefined symbol: .__gmpz_sqrt
ld: 0711-317 ERROR: Undefined symbol: .__gmpz_tstbit
ld: 0711-317 ERROR: Undefined symbol: .__gmpz_init_set
ld: 0711-317 ERROR: Undefined symbol: .__gmpz_fac_ui
ld: 0711-317 ERROR: Undefined symbol: .__gmpz_ior
ld: 0711-317 ERROR: Undefined symbol: .__gmpz_xor
ld: 0711-317 ERROR: Undefined symbol: .__gmpz_and
ld: 0711-317 ERROR: Undefined symbol: .__gmpz_fib_ui
ld: 0711-317 ERROR: Undefined symbol: .__gmpz_gcd
ld: 0711-317 ERROR: Undefined symbol: .__gmpz_pow_ui
ld: 0711-317 ERROR: Undefined symbol: .__gmpz_jacobi
ld: 0711-317 ERROR: Undefined symbol: .__gmpz_cmp
ld: 0711-317 ERROR: Undefined symbol: .__gmpz_mod
ld: 0711-317 ERROR: Undefined symbol: .__gmpz_tdiv_qr
ld: 0711-317 ERROR: Undefined symbol: .__gmpz_fdiv_q
ld: 0711-317 ERROR: Undefined symbol: .__gmpz_mul
ld: 0711-317 ERROR: Undefined symbol: .__gmpz_sub
ld: 0711-317 ERROR: Undefined symbol: .__gmpz_add
ld: 0711-317 ERROR: Undefined symbol: .__gmpz_fdiv_r_2exp
ld: 0711-317 ERROR: Undefined symbol: .__gmpz_fdiv_r
ld: 0711-317 ERROR: Undefined symbol: .__gmpz_powm
ld: 0711-317 ERROR: Undefined symbol: .__gmpz_fdiv_q_2exp
ld: 0711-317 ERROR: Undefined symbol: .__gmpz_mul_2exp
ld: 0711-317 ERROR: Undefined symbol: .__gmpz_get_si
ld: 0711-317 ERROR: Undefined symbol: .__gmpz_add_ui
ld: 0711-317 ERROR: Undefined symbol: .__gmpz_get_ui
ld: 0711-317 ERROR: Undefined symbol: .__gmpz_sizeinbase
ld: 0711-317 ERROR: Undefined symbol: .__gmpz_get_str
ld: 0711-317 ERROR: Undefined symbol: .__gmpz_clear
ld: 0711-317 ERROR: Undefined symbol: .__gmpz_init_set_str
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
make: 1254-004 The error code from the last command is 8.


Stop.

Any ideas what I is going on here?

Thanks much!

5. Help with compiling Math::GMP on AIX 5.3 - Perl

6. Problem compiling Perl Module: Math::Pari in AIX 5.1

Hi all,

I have placed this post in the Perl groups but I have not been able to
get this resolved so far. I am wondering if anyone in this forum may
have tried this before with this specific module or with any other and
gotten anything similar.
I need to install Net::SSH which requires Math::Pari as a
pre-requisite. When I tried running the "make" command, I get the
following:

$ >make
......
.....
......

mkdir blib/arch
mkdir blib/arch/auto
mkdir blib/arch/auto/Math
mkdir blib/arch/auto/Math/Pari
Running Mkbootstrap for Math::Pari ()
        chmod 644 Pari.bs
        LD_RUN_PATH="/lib" ld -o blib/arch/auto/Math/Pari/Pari.so
-bhalt:4 -bM:
SRE -bI:/usr/opt/perl5/lib/5.6.0/aix/CORE/perl.exp -bE:Pari.exp -b
noentry -lC -
lc  Pari.o  libPARI/libPARI.a  -L/usr/local/lib -lm
ld: 0711-317 ERROR: Undefined symbol: .PERL_UNUSED_VAR
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
make: 1254-004 The error code from the last command is 8.


Stop.


Any ideas why it would not find the symbol? Am I missing a library?

Thanks in advance,

BTNA

7. unable to build Math-GMP perl module on AIX 5.3

8. Math::GMP tests and Crypt::Random fail on Compaq (Math::Pari related ??)

Hi,

I've been compiling Math::GMP for different OS's in order to use
Net::SFTP and I have successfully compiled and used it for Solaris,
HP-UX.11 and Linux, but I'm running into trouble on Compaq (Tru5.1b).

GMP library compiled without trouble and all tests were passed. I'm
trying to make a dynamic and only OS dependant version of Math::GMP
(and of Net::SFTP) and thus GMP was configured as follows: (hardware
model from config.guess)

./configure --prefix=$(INSTALL_DIR)/GMP --disable-static
--build=alphaev6-dec-osf5.1 --host=none-unknown-osf5.1

Now the next step was to compile Math::GMP and here are the failed
test results:

PERL_DL_NONLAZY=1 /vobs/prod/tools/perl/OSF1alpha.NG/bin/perl
"-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib',
'blib/arch')" t/*.t
t/gmppm....ok 149/349# Test 277 got: '9999999999' (t/gmppm.t at line
117 fail #277)
#     Expected: '1410065407'
# Test 278 got: '99999999999' (t/gmppm.t at line 117 fail #278)
#     Expected: '1215752191'
# Test 279 got: '999999999999' (t/gmppm.t at line 117 fail #279)
#     Expected: '3567587327'
# Test 284 got: '9999999999' (t/gmppm.t at line 117 fail #284)
#     Expected: '1410065407'
t/gmppm....FAILED tests 277-279, 284
        Failed 4/349 tests, 98.85% okay
Failed Test Stat Wstat Total Fail  Failed  List of Failed
-------------------------------------------------------------------------------
t/gmppm.t                349    4   1.15%  277-279 284
Failed 1/1 test scripts, 0.00% okay. 4/349 subtests failed, 98.85%
okay.
gmake[1]: *** [test_dynamic] Error 2

I am out of ideas what to try next.

I tried to ignore this and continued to compile my Net::SFTP but ran
into problems with Crypt::Random. The Crypt::Random tests fail due to
invalid arguments passed to divll.


PERL_DL_NONLAZY=1 /vobs/prod/tools/perl/OSF1alpha.NG/bin/perl
"-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib',
'blib/arch')" t/*.t
t/generator..........ok
t/makerandom_itv.....ok 4/5PARI:   ***   Invalid arguments to divll.
at /vobs/prod/AMD/ftpcopy/build/OSF1/Crypt-Random-1.13/blib/lib/Crypt/Random.pm
line 72.
t/makerandom_itv.....dubious
        Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED test 5
        Failed 1/5 tests, 80.00% okay
t/octet_string.......ok
t/pari_misfeature....PARI:   ***   Invalid arguments to divll. at
lib/Crypt/Random.pm line 72.
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/makerandom_itv.t   255 65280     5    1  20.00%  5
t/pari_misfeature.t  255 65280     1    1 100.00%  1
Failed 2/5 test scripts, 60.00% okay. 2/26 subtests failed, 92.31%
okay.
gmake[1]: *** [test_dynamic] Error 2
gmake[1]: Leaving directory
`/vobs/prod/AMD/ftpcopy/build/OSF1/Crypt-Random-1.13'

Can anyone say whether this problem is related to the Math::Pari ie.
is Crypt::Random using Math::Pari incorrectly or what? Also
Crypt::Random tests take forever (1/2-2 hours) to execute. I haven't
experienced this kind of slowness on any other platform.

I'm using Perl 5.8.0 and it says:

Summary of my perl5 (revision 5.0 version 8 subversion 0)
configuration:
  Platform:
    osname=dec_osf, osvers=5.1, archname=OSF1alpha-dec_osf
    uname='osf1 sinika v5.1 732 alpha '
    config_args='-Dcc=cc -Dprefix=/vobs/prod/tools/perl/OSF1alpha'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=define use64bitall=define uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-std -D_INTRINSICS -fprm d -ieee
-I/usr/local/include -DLANGUAGE_C',
    optimize='-O4',
    cppflags='-std -D_INTRINSICS -ieee -I/usr/local/include
-DLANGUAGE_C'
    ccversion='V6.3-029', gccversion='', 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='double', nvsize=8, Off_t='off_t',
lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='ld', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc
/usr/lib /var/shlib
    libs=-lpthread -ldbm -ldb -lm -lutil
    perllibs=-lpthread -lm -lutil
    libc=/usr/shlib/libc.so, so=so, useshrplib=true,
libperl=libperl.so
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' 
-Wl,-rpath,/vobs/prod/tools/perl/OSF1alpha/lib/5.8.0/OSF1alpha-dec_osf/CORE'
    cccdlflags=' ', lddlflags='-shared -expect_unresolved "*" -O4
-msym -std -s -L/usr/local/lib'


Characteristics of this binary (from libperl): 
  Compile-time options: USE_64_BIT_INT USE_64_BIT_ALL USE_LARGE_FILES
  Built under dec_osf
  Compiled at Oct 15 2002 10:03:55
  %ENV:
    PERL5LIB="/vobs/prod/AMD/ftpcopy/lib/OSF1/lib:/vobs/prod/AMD/ftpcopy/lib/OSF1/lib/site_perl:/vobs/prod/AMD/ftpcopy/lib/OSF1/lib/site_perl/5.8.0/OSF1"
  @INC:
    /vobs/prod/AMD/ftpcopy/lib/OSF1/lib/5.8.0/OSF1alpha-dec_osf
    /vobs/prod/AMD/ftpcopy/lib/OSF1/lib/5.8.0
    /vobs/prod/AMD/ftpcopy/lib/OSF1/lib
    /vobs/prod/AMD/ftpcopy/lib/OSF1/lib/site_perl/5.8.0/OSF1alpha-dec_osf
    /vobs/prod/AMD/ftpcopy/lib/OSF1/lib/site_perl/5.8.0
    /vobs/prod/AMD/ftpcopy/lib/OSF1/lib/site_perl
    /vobs/prod/AMD/ftpcopy/lib/OSF1/lib/site_perl/5.8.0/OSF1
    /vobs/prod/tools/perl/OSF1alpha/lib/5.8.0/OSF1alpha-dec_osf
    /vobs/prod/tools/perl/OSF1alpha/lib/5.8.0
    /vobs/prod/tools/perl/OSF1alpha/lib/site_perl/5.8.0/OSF1alpha-dec_osf
    /vobs/prod/tools/perl/OSF1alpha/lib/site_perl/5.8.0
    /vobs/prod/tools/perl/OSF1alpha/lib/site_perl

my platform is:

OSF1 V5.1 2650 alpha

best regards,

/jUSSi