Skip Menu |

This queue is for tickets about the Math-GMP CPAN distribution.

Report information
The Basics
Id: 15016
Status: resolved
Priority: 0/
Queue: Math-GMP

People
Owner: Nobody in particular
Requestors: barry_berg$$NOSPAM$$ [...] uhc.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 2.04
Fixed in: 2.05



Subject: Can not install with CPAN this module
In addition MANIFEST Does not show a gmp.h file and one not downloaded install Math::GMP CPAN: Storable loaded ok Going to read /usr/perl/5.8.7/dev_perl/.cpan/Metadata Database was generated on Tue, 11 Oct 2005 10:01:19 GMT Running install for module Math::GMP Running make for C/CH/CHIPT/Math-GMP-2.04.tar.gz CPAN: Digest::MD5 loaded ok CPAN: Compress::Zlib loaded ok Checksum for /usr/perl/5.8.7/dev_perl/.cpan/sources/authors/id/C/CH/CHIPT/Math-GMP-2.04.tar.gz ok Scanning cache /usr/perl/5.8.7/dev_perl/.cpan/build for sizes x Math-GMP-2.04 x Math-GMP-2.04/Changes, 1058 bytes, 3 media blocks. x Math-GMP-2.04/COPYING.LIB, 25275 bytes, 50 media blocks. x Math-GMP-2.04/MANIFEST, 105 bytes, 1 media blocks. x Math-GMP-2.04/typemap, 289 bytes, 1 media blocks. x Math-GMP-2.04/GMP.xs, 6948 bytes, 14 media blocks. x Math-GMP-2.04/t x Math-GMP-2.04/t/gmppm.t, 8790 bytes, 18 media blocks. x Math-GMP-2.04/lib x Math-GMP-2.04/lib/Math x Math-GMP-2.04/lib/Math/GMP.pm, 8910 bytes, 18 media blocks. x Math-GMP-2.04/INSTALL, 359 bytes, 1 media blocks. x Math-GMP-2.04/Makefile.PL, 335 bytes, 1 media blocks. x Math-GMP-2.04/README, 473 bytes, 1 media blocks. x Math-GMP-2.04/LICENSE, 947 bytes, 2 media blocks. Removing previously used /usr/perl/5.8.7/dev_perl/.cpan/build/Math-GMP-2.04 CPAN.pm: Going to build C/CH/CHIPT/Math-GMP-2.04.tar.gz Checking if your kit is complete... Looks good Note (probably harmless): No library found for -lgmp Writing Makefile for Math::GMP cp lib/Math/GMP.pm blib/lib/Math/GMP.pm AutoSplitting blib/lib/Math/GMP.pm (blib/lib/auto/Math/GMP) /usr/perl/5.8.7/bin/perl -e 'use ExtUtils::Mksymlists; Mksymlists("NAME" => "Math::GMP", "DL_FUNCS" => { }, "FUNCLIST" => [], "DL_VARS" => []);' /usr/perl/5.8.7/bin/perl /usr/perl/5.8.7/lib/ExtUtils/xsubpp -typemap /usr/perl/5.8.7/lib/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=-1 -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -I/usr/local/include -q32 -D_LARGE_FILES -qlonglong -O -DVERSION=\"2.04\" -DXS_VERSION=\"2.04\" "-I/usr/perl/5.8.7/lib/aix-thread-multi/CORE" GMP.c 1506-507 (W) No licenses available. Contact your program supplier to add additional users. Compilation will proceed shortly. "GMP.xs", line 4.10: 1506-296 (S) #include file "gmp.h" not found. "GMP.c", line 91.9: 1506-045 (S) Undeclared identifier mpz_t. "GMP.c", line 91.17: 1506-045 (S) Undeclared identifier RETVAL. "GMP.c", line 111.9: 1506-045 (S) Undeclared identifier mpz_t. "GMP.c", line 111.17: 1506-045 (S) Undeclared identifier RETVAL. "GMP.c", line 129.9: 1506-045 (S) Undeclared identifier mpz_t. "GMP.c", line 129.17: 1506-045 (S) Undeclared identifier n. "GMP.c", line 133.25: 1506-275 (S) Unexpected text ')' encountered. "GMP.c", line 133.30: 1506-277 (S) Syntax error: possible missing ')' or ','? "GMP.c", line 152.9: 1506-045 (S) Undeclared identifier mpz_t. "GMP.c", line 152.17: 1506-045 (S) Undeclared identifier n. "GMP.xs", line 98.5: 1506-275 (S) Unexpected text 'int' encountered. "GMP.xs", line 98.9: 1506-045 (S) Undeclared identifier len. "GMP.c", line 157.5: 1506-276 (S) Syntax error: possible missing ':'? "GMP.c", line 161.25: 1506-275 (S) Unexpected text ')' encountered. "GMP.c", line 161.30: 1506-277 (S) Syntax error: possible missing ')' or ','? "GMP.xs", line 106.7: 1506-045 (S) Undeclared identifier RETVAL. "GMP.c", line 188.9: 1506-045 (S) Undeclared identifier mpz_t. "GMP.c", line 188.17: 1506-045 (S) Undeclared identifier n. "GMP.c", line 189.9: 1506-275 (S) Unexpected text 'int' encountered. "GMP.c", line 189.17: 1506-045 (S) Undeclared identifier b. "GMP.xs", line 119.5: 1506-275 (S) Unexpected text 'int' encountered. "GMP.xs", line 119.9: 1506-045 (S) Undeclared identifier len. "GMP.c", line 194.5: 1506-276 (S) Syntax error: possible missing ':'? "GMP.c", line 198.25: 1506-275 (S) Unexpected text ')' encountered. "GMP.c", line 198.30: 1506-277 (S) Syntax error: possible missing ')' or ','? "GMP.xs", line 127.9: 1506-045 (S) Undeclared identifier RETVAL. "GMP.c", line 225.9: 1506-045 (S) Undeclared identifier mpz_t. "GMP.c", line 225.17: 1506-045 (S) Undeclared identifier n. "GMP.c", line 226.9: 1506-275 (S) Unexpected text 'int' encountered. "GMP.c", line 226.17: 1506-045 (S) Undeclared identifier b. "GMP.c", line 227.9: 1506-275 (S) Unexpected text 'int' encountered. "GMP.c", line 227.17: 1506-045 (S) Undeclared identifier RETVAL. "GMP.c", line 228.9: 1506-276 (S) Syntax error: possible missing ':'? "GMP.c", line 228.9: 1506-275 (S) Unexpected text ')' encountered. "GMP.c", line 232.25: 1506-275 (S) Unexpected text ')' encountered. "GMP.c", line 232.30: 1506-277 (S) Syntax error: possible missing ')' or ','? "GMP.c", line 239.13: 1506-045 (S) Undeclared identifier targ. "GMP.c", line 251.9: 1506-045 (S) Undeclared identifier mpz_t. "GMP.c", line 251.17: 1506-045 (S) Undeclared identifier n. "GMP.c", line 252.9: 1506-046 (S) Syntax error. "GMP.c", line 252.25: 1506-045 (S) Undeclared identifier RETVAL. "GMP.c", line 253.9: 1506-275 (S) Unexpected text ')' encountered. make: 1254-004 The error code from the last command is 1. Stop. /usr/bin/make -- NOT OK Running make test Can't test without successful make Running make install make had returned bad status, install seems impossible = = = = = = = = = = = = = = = = = = = = = = = = = = = == = = = = = = = Summary of my perl5 (revision 5 version 8 subversion 7) configuration: Platform: osname=aix, osvers=5.1.0.51, archname=aix-thread-multi uname='aix cmtgvapp01 1 5 00066c0a4c00 ' config_args='-Dmksymlinks -Uinstallusrbinperl -Dprefix=/usr/perl/5.8.7 -Dsiteprefix=/usr/perl/5.8.7/site_perl -Dusethreads -Duseithreads' hint=recommended, useposix=true, d_sigaction=define usethreads=define use5005threads=undef useithreads=define usemultiplicity=define useperlio=define d_sfio=undef uselargefiles=define usesocks=undef use64bitint=undef use64bitall=undef uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='cc_r', ccflags ='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=-1 -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -I/usr/local/include -q32 -D_LARGE_FILES -qlonglong', optimize='-O', cppflags='' ccversion='5.0.2.9', gccversion='', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='ld', ldflags =' -brtl -bdynamic -bmaxdata:0x80000000 -L/usr/local/lib -b32' libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib libs=-lbind -lnsl -ldbm -ldl -lld -lm -lcrypt -lpthreads -lc -lbsd perllibs=-lbind -lnsl -ldl -lld -lm -lcrypt -lpthreads -lc -lbsd libc=/lib/libc.a, so=a, useshrplib=false, libperl=libperl.a gnulibc_version='' Dynamic Linking: dlsrc=dl_aix.xs, dlext=so, d_dlsymun=undef, ccdlflags=' -bE:/usr/perl/5.8.7/lib/aix-thread-multi/CORE/perl.exp' cccdlflags=' ', lddlflags='-bhalt:4 -bexpall -G -bnoentry -lpthreads -lc -L/usr/local/lib' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES PERL_IMPLICIT_CONTEXT Built under aix Compiled at Oct 10 2005 16:59:46 %ENV: PERL="/usr/perl/5.8.7/bin/perl" PERL5LIB="/usr/perl/5.8.7/dev_perl/lib/aix-thread-multi:/usr/perl/5.8.7/dev_perl/lib:/usr/perl/5.8.7/lib/aix-thread-multi:/usr/perl/5.8.7/lib:/usr/perl/5.8.7/site_perl/lib/aix-thread-multi:/usr/perl/5.8.7/site_perl/lib:." @INC: /usr/perl/5.8.7/dev_perl/lib/aix-thread-multi /usr/perl/5.8.7/dev_perl/lib/aix-thread-multi /usr/perl/5.8.7/dev_perl/lib /usr/perl/5.8.7/lib/aix-thread-multi /usr/perl/5.8.7/lib/aix-thread-multi /usr/perl/5.8.7/lib /usr/perl/5.8.7/site_perl/lib/aix-thread-multi /usr/perl/5.8.7/site_perl/lib/aix-thread-multi /usr/perl/5.8.7/site_perl/lib . /usr/perl/5.8.7/lib/aix-thread-multi /usr/perl/5.8.7/lib /usr/perl/5.8.7/site_perl/lib/aix-thread-multi /usr/perl/5.8.7/site_perl/lib /usr/perl/5.8.7/site_perl/lib .
From: rustycar54 [...] descomp.com
On Tue Oct 11 18:48:12 2005, guest wrote: Show quoted text
> > In addition MANIFEST Does not show a gmp.h file and one not downloaded >
I am having the same problem - no gmp.h, no obvious way to create one (I looked at Makefile). I'm on debian 4.0, not that this should matter. Is there a workaround? When I downloaded the module directly (not using 'perl -MCPAN ......') and inspected it, there is no obvious gmp.h either. Thanks!
From: rustycar54 [...] descomp.com
Sorry to reply to myself, but I have found the fix - feel free to close this issue (I'm not the initial requestor, but the solution is pretty simple). the solution? Install the GNU multiprecision arithmetic library. According to some searching I did, 'You can find it at http://www.swox.com/gmp/ The Debian package is libgmp2-dev, for Redhat it's gmp-devel.' Sorry for not doing enough homework first.... Rusty On Wed Aug 13 10:07:41 2008, rustycar wrote: Show quoted text
> On Tue Oct 11 18:48:12 2005, guest wrote:
> > > > In addition MANIFEST Does not show a gmp.h file and one not downloaded > >
> > I am having the same problem - no gmp.h, no obvious way to create one (I > looked at Makefile). I'm on debian 4.0, not that this should matter. > > Is there a workaround? When I downloaded the module directly (not using > 'perl -MCPAN ......') and inspected it, there is no obvious gmp.h either. > > Thanks! >
Makefile.PL should give a better error as of version 2.05 when the library is not installed.