Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Errors when installing Mail::ClamAV module

Discussion in 'E-mail Discussion' started by cretu, Apr 6, 2004.

  1. cretu

    cretu Well-Known Member

    Joined:
    Jul 21, 2002
    Messages:
    208
    Likes Received:
    0
    Trophy Points:
    166
    Hello,

    I am trying to install Mail::ClamAV module on RedHat 9 boxes and it is failing on all of them. However, module's installation on RH 7.3 boxes goes without any errors. I am wondering what I could have been missing.

    Here is the installation result:

    PHP:
    root@hostname [~/mailscanner-autoinstall-1.5]# /scripts/perlinstaller Mail::ClamAV
    Testing connection speed...(this could take a while)....Done
    Five usable mirrors located
    CPAN
    Storable loaded ok
    Going to read 
    /home/.cpan/Metadata
      Database was generated on Tue
    06 Apr 2004 01:51:08 GMT
    Running install 
    for module Mail::ClamAV
    Running make 
    for S/SA/SABECK/Mail-ClamAV-0.08.tar.gz
    CPAN
    Digest::MD5 loaded ok
    CPAN
    Compress::Zlib loaded ok
    Checksum 
    for /home/.cpan/sources/authors/id/S/SA/SABECK/Mail-ClamAV-0.08.tar.gz ok
    Scanning cache 
    /home/.cpan/build for sizes
    Mail
    -ClamAV-0.08/
    Mail-ClamAV-0.08/t/
    Mail-ClamAV-0.08/t/virus.eml
    Mail
    -ClamAV-0.08/t/Mail-ClamAV.t
    Mail
    -ClamAV-0.08/README
    Mail
    -ClamAV-0.08/ClamAV.pm
    Mail
    -ClamAV-0.08/config.pl
    Mail
    -ClamAV-0.08/Changes
    Mail
    -ClamAV-0.08/Makefile.PL
    Mail
    -ClamAV-0.08/ppport.h
    Mail
    -ClamAV-0.08/META.yml
    Mail
    -ClamAV-0.08/INSTALL
    Mail
    -ClamAV-0.08/MANIFEST
    Removing previously used 
    /home/.cpan/build/Mail-ClamAV-0.08

      CPAN
    .pmGoing to build S/SA/SABECK/Mail-ClamAV-0.08.tar.gz

    Checking 
    if your kit is complete...
    Looks good
    Writing Makefile 
    for Mail::ClamAV
    cp ClamAV
    .pm blib/lib/Mail/ClamAV.pm
    /usr/bin/perl -Mblib -MInline=NOISY,_INSTALL_ -MMail::ClamAV -e1 0.08 blib/arch
    Starting Build Prepocess Stage
    Finished Build Prepocess Stage

    Starting Build Parse Stage
    Finished Build Parse Stage

    Starting Build Glue 1 Stage
    Finished Build Glue 1 Stage

    Starting Build Glue 2 Stage
    Finished Build Glue 2 Stage

    Starting Build Glue 3 Stage
    Finished Build Glue 3 Stage

    Starting Build Compile Stage
      Starting 
    "perl Makefile.PL" Stage
    Writing Makefile 
    for Mail::ClamAV
      Finished 
    "perl Makefile.PL" Stage

      Starting 
    "make" Stage
    make
    [1]: Entering directory `/home/.cpan/build/Mail-ClamAV-0.08/_Inline/build/Mail/ClamAV'
    /usr/bin/perl /usr/lib/perl5/5.8.1/ExtUtils/xsubpp  -typemap /usr/lib/perl5/5.8.1/ExtUtils/typemap
       ClamAV.xs > ClamAV.xsc && mv ClamAV.xsc ClamAV.c
    cc -c  -I/home/.cpan/build/Mail-ClamAV-0.08 -I/usr/include -fno-strict-aliasing -I/usr/local/inclu
    de -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O3   -DVERSION=\"0.08\" -DXS_VE
    RSION=\"0.08\" -fpic "-I/usr/lib/perl5/5.8.1/i686-linux/CORE"   ClamAV.c
    ClamAV.xs: In function 
    `clamav_perl__scanbuff':
    ClamAV.xs:140: warning: passing arg 3 of `cl_scanbuff' 
    from incompatible pointer type
    ClamAV
    .xsIn function `clamav_perl__scanfd':
    ClamAV.xs:180: warning: passing arg 2 of 
    `cl_scandesc' from incompatible pointer type
    ClamAV.xs: In function `clamav_perl__scanfile'
    :
    ClamAV.xs:216warningpassing arg 2 of `cl_scanfile' from incompatible pointer type
    ClamAV.xs: In function 
    `clamav_perl_constant':
    ClamAV.xs:274: `CL_OLE2' 
    undeclared (first use in this function)
    ClamAV.xs:274: (Each undeclared identifier is reported only once
    ClamAV
    .xs:274: for each function it appears in.)
    ClamAV.xs:275: `CL_ENCRYPTED' undeclared (first use in this function)
    make[1]: *** [ClamAV.o] Error 1
    make[1]: Leaving directory 
    `/home/.cpan/build/Mail-ClamAV-0.08/_Inline/build/Mail/ClamAV'

    A problem was encountered while attempting to compile and install your Inline
    C code. The command that failed was:
      make

    The build directory was:
    /home/.cpan/build/Mail-ClamAV-0.08/_Inline/build/Mail/ClamAV

    To debug the problem, cd to the build directory, and inspect the output files.

     at /home/.cpan/build/Mail-ClamAV-0.08/blib/lib/Mail/ClamAV.pm line 150
    BEGIN failed--compilation aborted at /home/.cpan/build/Mail-ClamAV-0.08/blib/lib/Mail/ClamAV.pm li
    ne 429.
    Compilation failed in require.
    BEGIN failed--compilation aborted.
    make: *** [ClamAV.inl] Error 2
      /usr/bin/make  -- NOT OK
    Running make install
      make had returned bad status, install seems impossible
    perlmod--Install done
    Any help would be appritiated as I am trying to configure MailScanner with this module.

    Thank you in advance!

    Cretu
     
  2. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    191
    You have to install the Inline perl module.
     
  3. cretu

    cretu Well-Known Member

    Joined:
    Jul 21, 2002
    Messages:
    208
    Likes Received:
    0
    Trophy Points:
    166
    Hi there,

    It seems that this is not a case, I had Inline already installed and I have tried to re-install - Inline seems just fine.
    But,,, stil Mail::ClamAV returns with errors and this happens only on RH 9 boxes - I have tried on 3 already. Mail::ClamAV just failed as listed above.

    Any insights would be appritiated.

    Cretu
     
  4. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    191
    Really? I had the same error and installing Inline fixed it (I did not have it installed). Well, good luck.

     
    #4 casey, Apr 7, 2004
    Last edited: Apr 7, 2004
  5. cretu

    cretu Well-Known Member

    Joined:
    Jul 21, 2002
    Messages:
    208
    Likes Received:
    0
    Trophy Points:
    166
    Hi,

    Unfortunetelly:

    Inline
    and
    Inline:C

    did not help even they installed properly.

    Help...

    Cretu
     
  6. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    191
    The only thing I can think of would be to re-install perl from layer1. It takes about 15 minutes. I believe you will then have to re-install all the modules you manually installed previously.

    Oh, and just FYI, I installed Mail::ClamAV on 2 RH 9 boxes myself without issue.
     
  7. cretu

    cretu Well-Known Member

    Joined:
    Jul 21, 2002
    Messages:
    208
    Likes Received:
    0
    Trophy Points:
    166
    casey,

    I belive that Mail::ClamAV was specifically written for Perl 6.1. The 3 boxes I have tried on have Perl 8.1 installed and I also saw the line in config.pl file of Mail::ClamAV tellling to use P 6.1:

    package Mail::ClamAV;
    use 5.006001;

    Above found in file /home/.cpan/build/Mail-ClamAV-0.08/blib/lib/Mail/ClamAV.pm -> still I am not sure if this is a problem BUT - having other 3 boxes with P 6.1 installing without any problems vs. boxes with P 8.1 having problem - the version of Perl could be a case... Still I can be mistaken.

    Thank you for your help and dedication to solving this casey today.

    Cretu
     
  8. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    191
    Both of my RH 9 boxes have perl 5.8.1 as well, and it works fine.
     
  9. cretu

    cretu Well-Known Member

    Joined:
    Jul 21, 2002
    Messages:
    208
    Likes Received:
    0
    Trophy Points:
    166
    I am clueless then...

    - Inline - was installed fine
    - Inline::C - even this I have tried

    I have tried to install Mail::ClamAV from SSH by issuing /scripts/perinstaller Mail::ClamAV and from whiithin WHM - same results across these 3 boxes.

    Perhaps, there is yet another Perl module needed to compile Mail::ClamAV.

    Any other thoughts?

    Cretu
     
  10. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    191
    Are you by any chance working with RH9 boxes that have been upgraded from 7.3? I just experienced the same issue.

    I'll keep looking into it.
     
  11. cretu

    cretu Well-Known Member

    Joined:
    Jul 21, 2002
    Messages:
    208
    Likes Received:
    0
    Trophy Points:
    166
    casey,

    No, there were loaded with RH9. Also, I tried installing this module on RHE 3 and there is also same error happening.

    Let me know if you find out anything. Perhaps, other Perl module is needed to install it?

    Cretu
     
  12. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    191
    Got it. The reason is that I installed the other ones a few weeks ago. Since then there have been two updates. Apparently mail-clamav-0.80 does not work with perl 5.8.1. Anyway, I got it to work using the one I had on my other RH9 servers:
    http://search.cpan.org/~sabeck/Mail-ClamAV-0.06/
    Download it and install it manually.
     
  13. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    191
    0.07 also does not work. I just tried. It looks like 0.06 is the one to use.
     
  14. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    works fine for me on 5.8.1, did you read the changlog for the module?

    That's v 0.70_rc of ClamAV needs to be installed to use 0.70+
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. cretu

    cretu Well-Known Member

    Joined:
    Jul 21, 2002
    Messages:
    208
    Likes Received:
    0
    Trophy Points:
    166
    chirpy,

    I am having problems with installing Mail::ClamAV module on boxes with perl 6.8.1 running RH 9 and RHE 3.

    Do you have any idea why?

    Cretu
     
  16. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    I found one problem on some servers. It looks like on some servers the bzip2-devel tools are not installed. If you install them:

    up2date -i bzip2-devel

    The try installing Mail::ClamAV again:

    /scripts/perlinstaller Mail::ClamAV

    However, I've had a reread of the original post and I can't help with the problem you're seeing there without having access to the server to investigate it further for you as I cannot recreate that particular problem.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #16 chirpy, Apr 11, 2004
    Last edited: Apr 11, 2004
  17. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    191
    Yeah, I have v 0.70_rc installed.
     
  18. eagle

    eagle Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    139
    Likes Received:
    0
    Trophy Points:
    166
    I had (no: HAVE) the same thing:

    Code:
    make[1]: Entering directory `/home/.cpan/build/Mail-ClamAV-0.08/_Inline/build/Mail/ClamAV'
    /usr/bin/perl /usr/lib/perl5/5.8.0/ExtUtils/xsubpp  -typemap /usr/lib/perl5/5.8.0/ExtUtils/typemap   ClamAV.xs > ClamAV.xsc && mv ClamAV.xsc ClamAV.c
    gcc -c  -I/home/.cpan/build/Mail-ClamAV-0.08 -I/usr/include -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -march=i386 -mcpu=i686   -DVERSION=\"0.08\" -DXS_VERSION=\"0.08\" -fPIC "-I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE"   ClamAV.c
    Running Mkbootstrap for Mail::ClamAV ()
    chmod 644 ClamAV.bs
    rm -f blib/arch/auto/Mail/ClamAV/ClamAV.so
    LD_RUN_PATH="/usr/lib:/lib" gcc  -shared -L/usr/local/lib ClamAV.o  -o blib/arch/auto/Mail/ClamAV/ClamAV.so   -lz -lbz2 -lgmp -lpthread -lclamav
    /usr/bin/ld: cannot find -lgmp
    collect2: ld returned 1 exit status
    make[1]: *** [blib/arch/auto/Mail/ClamAV/ClamAV.so] Error 1
    make[1]: Leaving directory `/home/.cpan/build/Mail-ClamAV-0.08/_Inline/build/Mail/ClamAV'
    
    A problem was encountered while attempting to compile and install your Inline
    C code. The command that failed was:
      make
    
    The build directory was:
    /home/.cpan/build/Mail-ClamAV-0.08/_Inline/build/Mail/ClamAV
    
    To debug the problem, cd to the build directory, and inspect the output files.
    
     at /home/.cpan/build/Mail-ClamAV-0.08/blib/lib/Mail/ClamAV.pm line 150
    BEGIN failed--compilation aborted at /home/.cpan/build/Mail-ClamAV-0.08/blib/lib/Mail/ClamAV.pm line 429.
    Compilation failed in require.
    BEGIN failed--compilation aborted.
    make: *** [ClamAV.inl] Error 2
      /usr/bin/make  -- NOT OK
    Running make install
      make had returned bad status, install seems impossible
    perlmod--Install done
    
    
    I've tried everything:
    bzip2devel installing
    inline
    inline::C
    0.70-rc clamav
    upgraded Mailscanner

    And installing 0.06 manually. That worked, but Mailscanner keeps hanging in processes, giving even higher loads than with clamav.

    Anyone who knows may tell me
    :(
     
  19. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    Looks like your problem is here:
    You need to install gmp-devel:

    up2date -i gmp-devel
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  20. eagle

    eagle Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    139
    Likes Received:
    0
    Trophy Points:
    166
    txs chirpy. That did it.

    When you are messing around for a while, you get to overlook obvious things. Txs again, /scripts/perlinstaller Mail::ClamAV works now
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice