The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Exim fail during upgrade (FreeBSD)

Discussion in 'General Discussion' started by sky, Oct 27, 2007.

  1. sky

    sky Well-Known Member

    Joined:
    Nov 24, 2002
    Messages:
    92
    Likes Received:
    0
    Trophy Points:
    0
    I upgraded from cpanel version 10 to 11. Exim is one of the things that was being upgraded but it failed with the following messages. How do I get it resolved? thank you in advance!

    cc perl.c
    perl.c:29:20: EXTERN.h: No such file or directory
    perl.c:30:18: perl.h: No such file or directory
    perl.c:31:18: XSUB.h: No such file or directory
    perl.c:47: error: syntax error before '*' token
    perl.c:50: error: syntax error before '*' token
    perl.c:50: warning: data definition has no type or storage class
    perl.c: In function `XS':
    perl.c:54: error: `dXSARGS' undeclared (first use in this function)
    perl.c:54: error: (Each undeclared identifier is reported only once
    perl.c:54: error: for each function it appears in.)
    perl.c:56: error: syntax error before "len"
    perl.c:58: error: `items' undeclared (first use in this function)
    perl.c:61: error: `len' undeclared (first use in this function)
    perl.c:62: error: invalid lvalue in assignment
    perl.c: At top level:
    perl.c:71: error: redefinition of 'XS'
    perl.c:53: error: previous definition of 'XS' was here
    perl.c: In function `XS':
    perl.c:72: error: `dXSARGS' undeclared (first use in this function)
    perl.c:73: error: syntax error before "len"
    perl.c:74: error: `items' undeclared (first use in this function)
    perl.c:76: error: `len' undeclared (first use in this function)
    perl.c: At top level:
    perl.c:80: error: redefinition of 'XS'
    perl.c:71: error: previous definition of 'XS' was here
    perl.c:80: error: redefinition of 'XS'
    perl.c:71: error: previous definition of 'XS' was here
    perl.c: In function `XS':
    perl.c:81: error: `dXSARGS' undeclared (first use in this function)
    perl.c:82: error: syntax error before "len"
    perl.c:83: error: `items' undeclared (first use in this function)
    perl.c:85: error: `len' undeclared (first use in this function)
    perl.c: In function `xs_init':
    perl.c:92: error: `xs_expand_string' undeclared (first use in this function)
    perl.c:93: error: `xs_debug_write' undeclared (first use in this function)
    perl.c:94: error: `xs_log_write' undeclared (first use in this function)
    perl.c: In function `init_perl':
    perl.c:102: error: `SV' undeclared (first use in this function)
    perl.c:102: error: `sv' undeclared (first use in this function)
    perl.c:103: error: syntax error before "len"
    perl.c:106: warning: assignment makes pointer from integer without a cast
    perl.c:111: error: `dSP' undeclared (first use in this function)
    perl.c:121: error: `SP' undeclared (first use in this function)
    perl.c:122: error: `G_SCALAR' undeclared (first use in this function)
    perl.c:122: error: `G_DISCARD' undeclared (first use in this function)
    perl.c:122: error: `G_KEEPERR' undeclared (first use in this function)
    perl.c:124: error: `errgv' undeclared (first use in this function)
    perl.c:124: error: `len' undeclared (first use in this function)
    perl.c: In function `call_perl_cat':
    perl.c:152: error: `dSP' undeclared (first use in this function)
    perl.c:153: error: `SV' undeclared (first use in this function)
    perl.c:153: error: `sv' undeclared (first use in this function)
    perl.c:154: error: syntax error before "len"
    perl.c:164: error: `ENTER' undeclared (first use in this function)
    perl.c:165: error: `SAVETMPS' undeclared (first use in this function)
    perl.c:166: error: `SP' undeclared (first use in this function)
    perl.c:168: error: `PUTBACK' undeclared (first use in this function)
    perl.c:169: error: `G_SCALAR' undeclared (first use in this function)
    perl.c:169: error: `G_EVAL' undeclared (first use in this function)
    perl.c:170: error: `SPAGAIN' undeclared (first use in this function)
    perl.c:171: error: `POPs' undeclared (first use in this function)
    perl.c:173: error: `errgv' undeclared (first use in this function)
    perl.c:175: error: `len' undeclared (first use in this function)
    perl.c:185: error: `FREETMPS' undeclared (first use in this function)
    perl.c:186: error: `LEAVE' undeclared (first use in this function)
    *** Error code 1

    Stop in /usr/ports/mail/exim/work/exim-4.68/build-FreeBSD-i386.
    *** Error code 1

    Stop in /usr/ports/mail/exim/work/exim-4.68.
    *** Error code 1

    Stop in /usr/ports/mail/exim.
    ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade.89222.0 env UPGRADE_TOOL=portupgrade UPGRADE_PORT=exim-4.62 UPGRADE_PORT_VER=4.62 make FETCH_BEFORE_ARGS=-q
    ** Fix the problem and try again.
    ---> Build of mail/exim ended at: Sun, 28 Oct 2007 11:14:56 +0800 (consumed 00:01:25)
    ---> Upgrade of mail/exim ended at: Sun, 28 Oct 2007 11:14:56 +0800 (consumed 00:01:25)
    ---> ** Upgrade tasks 1: 0 done, 0 ignored, 0 skipped and 1 failed
    ---> Listing the results (+:done / -:ignored / *:skipped / !:failed)
    ! mail/exim (exim-4.62) (missing header)
    ---> Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed
    ---> Session ended at: Sun, 28 Oct 2007 11:14:56 +0800 (consumed 00:01:27)
     
  2. nyjimbo

    nyjimbo Well-Known Member

    Joined:
    Jan 25, 2003
    Messages:
    1,125
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    New York
    What version of Perl and what version of Freebsd are you running?
     
  3. sky

    sky Well-Known Member

    Joined:
    Nov 24, 2002
    Messages:
    92
    Likes Received:
    0
    Trophy Points:
    0
    v5.8.8 built for i386-freebsd

    and

    FreeBSD 5.4-RELEASE


    seems like my WHM is upgraded to version 11 but customer cpanel is still 10 .. zzzz
     
  4. sky

    sky Well-Known Member

    Joined:
    Nov 24, 2002
    Messages:
    92
    Likes Received:
    0
    Trophy Points:
    0
    anyone has any ideas?
     
  5. sky

    sky Well-Known Member

    Joined:
    Nov 24, 2002
    Messages:
    92
    Likes Received:
    0
    Trophy Points:
    0
    I can't seem to get this freaking thing to upgrade. It gets stuck there. Seems like missing headers. How do I confirm this?
     
  6. sky

    sky Well-Known Member

    Joined:
    Nov 24, 2002
    Messages:
    92
    Likes Received:
    0
    Trophy Points:
    0
    sigh .... another one of those questions no one knows ... sent a ticket to cpanel ..... no reply too ... zzzz
     
  7. nyjimbo

    nyjimbo Well-Known Member

    Joined:
    Jan 25, 2003
    Messages:
    1,125
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    New York
    It seems like its a perl related issue but if you claim you have 5.8.8 and thats intact I am wondering if the exim build is finding remnants of an older perl.

    Go to /usr/ports/mail/exim and do a "make clean" or "make deinstall" and then perhaps
    you can do a "eximup --force", but if you are not comfortable with this then put in a ticket.

    I have seen Freebsd 5.4 boxes get messed up perl and ports and then you have to rip things out and start over with them.
     
  8. sky

    sky Well-Known Member

    Joined:
    Nov 24, 2002
    Messages:
    92
    Likes Received:
    0
    Trophy Points:
    0
    thanx for the reply nyjimbo :)

    How do I find other perl installs on freebsd? When you say mess up and start over, as in reinstall the server?
     
  9. sky

    sky Well-Known Member

    Joined:
    Nov 24, 2002
    Messages:
    92
    Likes Received:
    0
    Trophy Points:
    0
    one thing I noticed. when i do a "which perl" I get /usr/bin/perl

    When I run
    cd /usr/ports/mail/exim
    make clean
    make

    ===> exim-4.68 depends on file: /usr/local/bin/perl5.8.8 - found
    ===> exim-4.68 depends on file: /usr/local/sbin/pkg_info - found


    Why do I have two perl 5.8.8 installation ? Which is the correct one and how to resolve this?
     
  10. nyjimbo

    nyjimbo Well-Known Member

    Joined:
    Jan 25, 2003
    Messages:
    1,125
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    New York
    You need to see if you really have two perls or if some are links. Sometimes you will have a real perl in say /usr/bin/perl but then also have a link in /usr/local/bin, just go to the folder and do a ls -l | more to see if its a link or real file.
     
  11. nyjimbo

    nyjimbo Well-Known Member

    Joined:
    Jan 25, 2003
    Messages:
    1,125
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    New York
    You can use "find" or "locate" as a normal method.

    As to starting over I mean on rare occasion I had to remove the whole ports structure and
    start over grabbing the original ports archive and then doing portsnaps and portupgrades and so on until everything is cleaned up. But if you do not know how to do this I dont recommend it until you have at least tried the simpler stuff like "make clean" or "make deinstall" in the exim folder OR safer still putting in a ticket as it might be something that the Cpanel team can fix with a quicker tweak.
     
  12. sky

    sky Well-Known Member

    Joined:
    Nov 24, 2002
    Messages:
    92
    Likes Received:
    0
    Trophy Points:
    0
    as long as the downloading/restarting of the port structure does not cause my services to go down, I am willing to experiment and try :)

    so how do I really have only one perl on the system?
     
  13. sky

    sky Well-Known Member

    Joined:
    Nov 24, 2002
    Messages:
    92
    Likes Received:
    0
    Trophy Points:
    0
    I confirm that there is no link between the two. even "perl -V" provides a totally different lib paths etc.
     
  14. nyjimbo

    nyjimbo Well-Known Member

    Joined:
    Jan 25, 2003
    Messages:
    1,125
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    New York
    Well it could be that one of the perls is incomplete. Depending on the perl and what it thinks are its paths it might not find the proper packages or bundles.

    Try these and report back with results:

    locate EXTERN.h
    locate perl.h

    and the path info from BOTH of the "perl -V" outputs (just the bottom parts @INC should do).
     
  15. sky

    sky Well-Known Member

    Joined:
    Nov 24, 2002
    Messages:
    92
    Likes Received:
    0
    Trophy Points:
    0
    locate EXTERN.h
    /root/perl/perl587installer/perl-5.8.7/EXTERN.h
    /root/perl/perl587installer/perl-5.8.7/x2p/EXTERN.h
    /root/perl/perl588installer/perl-5.8.8/EXTERN.h
    /root/perl/perl588installer/perl-5.8.8/x2p/EXTERN.h
    /usr/local/lib/perl5/5.8.7/i386-freebsd/CORE/EXTERN.h
    /usr/local/lib/perl5/5.8.8/i386-freebsd/CORE/EXTERN.h
    /usr/local/lib/perl5/5.8.8/mach/CORE/EXTERN.h
    /usr/src/gnu/usr.bin/patch/EXTERN.h

    locate perl.h
    /root/perl/perl587installer/perl-5.8.7/perl.h
    /root/perl/perl588installer/perl-5.8.8/perl.h
    /root/tmp/share/doc/ImageMagick/www/perl.html
    /usr/local/lib/perl5/5.8.7/i386-freebsd/CORE/perl.h
    /usr/local/lib/perl5/5.8.8/i386-freebsd/CORE/perl.h
    /usr/local/lib/perl5/5.8.8/mach/CORE/perl.h
    /usr/local/share/doc/ImageMagick/www/perl.html
    /usr/ports/devel/p5-PCSC-Card/files/patch-PCSCperl.h
    /usr/share/doc/en_US.ISO8859-1/articles/vinum/perl.html
    /usr/share/doc/en_US.ISO8859-1/books/porters-handbook/using-perl.html
    /usr/share/doc/ru_RU.KOI8-R/books/porters-handbook/using-perl.html


    for the perl in /usr/local/bin/perl5.8.8

    Built under freebsd
    Compiled at Mar 24 2007 19:54:12
    @INC:
    /usr/local/lib/perl5/5.8.8/BSDPAN
    /usr/local/lib/perl5/site_perl/5.8.8/mach
    /usr/local/lib/perl5/site_perl/5.8.8
    /usr/local/lib/perl5/site_perl/5.8.7
    /usr/local/lib/perl5/site_perl/5.8.6
    /usr/local/lib/perl5/site_perl/5.6.2
    /usr/local/lib/perl5/site_perl
    /usr/local/lib/perl5/5.8.8/mach
    /usr/local/lib/perl5/5.8.8


    for the perl in /usr/bin/perl
    Compiled at Oct 28 2007 20:44:11
    @INC:
    /usr/lib/perl5/5.8.8/i386-freebsd
    /usr/lib/perl5/5.8.8
    /usr/lib/perl5/site_perl/5.8.8/i386-freebsd
    /usr/lib/perl5/site_perl/5.8.8
    /usr/lib/perl5/site_perl/5.8.7/i386-freebsd
    /usr/lib/perl5/site_perl/5.8.7
    /usr/lib/perl5/site_perl/5.8.6
    /usr/lib/perl5/site_perl/5.6.2
    /usr/lib/perl5/site_perl
     
  16. sky

    sky Well-Known Member

    Joined:
    Nov 24, 2002
    Messages:
    92
    Likes Received:
    0
    Trophy Points:
    0
    Hmmm no one can give me pointers here ? :P
     
Loading...

Share This Page