[Shipwright] EXTERNAL: Re: Errors importing GnuPG::Interface

Wenck, Samuel samuel.wenck at lmco.com
Fri Aug 24 14:24:58 EDT 2012


Hi Sunnavy,

Thanks, I followed your advice and installed the gmp-devel RPM for CentOS and I was able to get the GnuPG::Interface module imported into the Shipwright vessel. However, now when executing the shipwright-builder script for the Shipwright vessel, the builder is failing during the build of the Socket module:

building cpan-ExtUtils-CBuilder
building cpan-ExtUtils-ParseXS
building cpan-ExtUtils-Manifest
building cpan-ExtUtils-Constant
building cpan-Socket
build cpan-Socket configure part failed, last output of build.log is:
        found build for cpan-Socket, will install cpan-Socket using that
        build configure part in cpan-Socket with cmd: /usr/bin/perl -I/opt/rt_build/rt4.0.6_vessel/shipwright/yard/inc -MShipwright::Util::CleanINC Makefile.PL LIB=/opt/rt_build/rt4.0.6_vessel/shipwright/build/rt4.0.6_vessel/lib/perl5/ PREFIX=/opt/rt_build/rt4.0.6_vessel/shipwright/build/rt4.0.6_vessel INSTALLSITEARCH=/opt/rt_build/rt4.0.6_vessel/shipwright/build/rt4.0.6_vessel/lib/perl5 INSTALLARCHLIB=/opt/rt_build/rt4.0.6_vessel/shipwright/build/rt4.0.6_vessel/lib/perl5
        running shipwright build command: /usr/bin/perl -I/opt/rt_build/rt4.0.6_vessel/shipwright/yard/inc -MShipwright::Util::CleanINC Makefile.PL LIB=/opt/rt_build/rt4.0.6_vessel/shipwright/build/rt4.0.6_vessel/lib/perl5/ PREFIX=/opt/rt_build/rt4.0.6_vessel/shipwright/build/rt4.0.6_vessel INSTALLSITEARCH=/opt/rt_build/rt4.0.6_vessel/shipwright/build/rt4.0.6_vessel/lib/perl5 INSTALLARCHLIB=/opt/rt_build/rt4.0.6_vessel/shipwright/build/rt4.0.6_vessel/lib/perl5
        Attempt to reload Socket.pm aborted.
        Compilation failed in require at /opt/rt_build/rt4.0.6_vessel/shipwright/build/rt4.0.6_vessel/lib/perl5/IPC/Cmd.pm line 46.
        BEGIN failed--compilation aborted at /opt/rt_build/rt4.0.6_vessel/shipwright/build/rt4.0.6_vessel/lib/perl5/IPC/Cmd.pm line 46.
        Compilation failed in require at /opt/rt_build/rt4.0.6_vessel/shipwright/build/rt4.0.6_vessel/lib/perl5/ExtUtils/CBuilder/Base.pm line 11.
        BEGIN failed--compilation aborted at /opt/rt_build/rt4.0.6_vessel/shipwright/build/rt4.0.6_vessel/lib/perl5/ExtUtils/CBuilder/Base.pm line 11.
        Compilation failed in require at /opt/rt_build/rt4.0.6_vessel/shipwright/build/rt4.0.6_vessel/lib/perl5/ExtUtils/CBuilder/Platform/Unix.pm line 4.
        BEGIN failed--compilation aborted at /opt/rt_build/rt4.0.6_vessel/shipwright/build/rt4.0.6_vessel/lib/perl5/ExtUtils/CBuilder/Platform/Unix.pm line 4.
        Compilation failed in require at (eval 10) line 2.
        BEGIN failed--compilation aborted at (eval 10) line 2.
        Compilation failed in require at Makefile.PL line 18.
 at ./bin/shipwright-builder line 605
        main::_install('cpan-Socket', 'GLOB(0x1cf2e58)') called at ./bin/shipwright-builder line 435
        main::install() called at ./bin/shipwright-builder line 300


I checked line 18 of the Makefile.PL for shipwright/yard/sources/cpan-Socket/vendor and it is:

	18     require ExtUtils::CBuilder;

You can see above that the ExtUtils::CBuilder module was already built for this vessel.
Am I missing something?

Thanks again, Sam



-----Original Message-----
From: shipwright-bounces at lists.bestpractical.com [mailto:shipwright-bounces at lists.bestpractical.com] On Behalf Of sunnavy
Sent: Thursday, August 23, 2012 8:47 PM
To: shipwright at lists.bestpractical.com
Subject: EXTERNAL: Re: [Shipwright] Errors importing GnuPG::Interface

Hi Wenck

the Math::BigInt issue is just a warning because Shipwright first searches clean INC(if error happens, it will search the whole INC automatically)

Shipwright will import latest version on CPAN if the module is not in perl core, so you don't need to worry about the warnings.

so your problem is not there. note the following lines:

> running source cpan-Math-BigInt-GMP: 
> /root/.shipwright/downloads/cpan/authors/id/P/PJ/PJACKLAM/Math-BigInt-
> GMP-1.37.tar.gz running cmd: /usr/bin/perl 
> -MShipwright::Util::CleanINC Makefile.PL
> err:
> Can't link/include 'gmp.h', 'gmp'
> running cmd: /usr/bin/perl Makefile.PL
> err:
> Can't link/include 'gmp.h', 'gmp'
> read_file 'Makefile' - sysopen: No such file or directory at

your machine seems doesn't have package like "libgmp-dev" installed?

Regards
sunnavy

On 12-08-23 16:15, Wenck, Samuel wrote:
> I am attempting to import the cpan:GnuPG::Interface Perl module into a Shipwright vessel using Shipwright version 2.4.32 running under Centos 6.3 x86. I am having issues ewith one of its dependencies, Math::BigInt, which Shipwright is having problems determining the version locally installed on the build host.
> 
> Usually, when I encounter these issues, I install the Perl module in question onto the build host which I did successfully:
> 
> cpan[3]> i GnuPG::Interface
> Module id = GnuPG::Interface
>     DESCRIPTION  OO interface to GNU Privacy Guard
>     CPAN_USERID  FTOBIN (Frank J. Tobin <ftobin at cpan.org>)
>     CPAN_VERSION 0.44
>     CPAN_FILE    J/JE/JESSE/GnuPG-Interface-0.44.tar.gz
>     UPLOAD_DATE  2011-05-03
>     DSLIP_STATUS MdpO? (mature,developer,perl,object-oriented,)
>     MANPAGE      GnuPG::Interface - Perl interface to GnuPG
>     INST_FILE    /usr/local/share/perl5/GnuPG/Interface.pm
>     INST_VERSION 0.44
> 
> 
> I also made sure that the dependency, Math::BigInt was installed locally:
> 
> cpan[4]> i Math::BigInt
> Module id = Math::BigInt
>     DESCRIPTION  Arbitrary size integer math package
>     CPAN_USERID  TELS (Tels <nospam-abuse at bloodgate.com>)
>     CPAN_VERSION 1.997
>     CPAN_FILE    P/PJ/PJACKLAM/Math-BigInt-1.997.tar.gz
>     UPLOAD_DATE  2011-09-04
>     DSLIP_STATUS SupOp (standard,comp.lang.perl.*,perl,object-oriented,Standard-Perl)
>     MANPAGE      Math::BigInt - Arbitrary size integer/float math package
>     INST_FILE    /usr/local/share/perl5/Math/BigInt.pm
>     INST_VERSION 1.997
> 
> 
> However, when the Shipwright import command executes, it somehow gets confused about the locally installed BigInt module version:
> 
> running source cpan-Math-BigInt: 
> /root/.shipwright/downloads/cpan/authors/id/P/PJ/PJACKLAM/Math-BigInt-
> 1.997.tar.gz
> skipping Test::More
> skipping ExtUtils::MakeMaker
> preparing to run source: bignum
> running source cpan-bignum: 
> /root/.shipwright/downloads/cpan/authors/id/F/FL/FLORA/bignum-0.29.tar
> .gz /tmp/shipwright_source_VZgMmw/cpan-bignum is a Module::Install 
> based distribution running cmd: /usr/bin/perl -Mversion 
> -MShipwright::Util::CleanINC shipwright_makefile.pl running cmd: 
> /usr/bin/make clean preparing to run source: Math::BigRat running 
> source cpan-Math-BigRat: 
> /root/.shipwright/downloads/cpan/authors/id/P/PJ/PJACKLAM/Math-BigRat-
> 0.2602.tar.gz /tmp/shipwright_source_VZgMmw/cpan-Math-BigRat is a 
> Module::Install based distribution running cmd: /usr/bin/perl 
> -Mversion -MShipwright::Util::CleanINC shipwright_makefile.pl
> err:
> Warning: prerequisite Math::BigInt 1.991 not found. We have 1.89.
> running cmd: /usr/bin/make clean
> 
> I believe that CentOS might include the older version of the BigInt module in its Perl RPM but I thought that Shipwright would pick up the locally installed newer version first. I checked on the installed version this way:
> 
> # perl -MMath::BigInt -e 'print "$Math::BigInt::VERSION\n";'
> 1.997
> 
> So the installed Perl sees the newer version but Shipwright does not and does not want to import the newer version as a dependency for the GnuPG::Interface module. I have attached the full output of the import command for reference.
> 
> I have successfully built the same shipwright vessel under CentOS 5.8 with no issues and I am wondering the cause and a work around or solution.
> 
> Thanks in advance, Sam
> 
> 


> _______________________________________________
> Shipwright mailing list
> Shipwright at lists.bestpractical.com
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/shipwright

_______________________________________________
Shipwright mailing list
Shipwright at lists.bestpractical.com
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/shipwright


More information about the Shipwright mailing list