View Single Post
  #4 (permalink)  
Old 01-08-2008, 10:28 AM
quanah quanah is offline
Zimbra Employee
 
Posts: 572
Default

Quote:
Originally Posted by hughesjr View Post
In response to this:

CentOS is NOT supported

1. This problem also happens on RHEL-5, not just CentOS-5. There is no problem on CentOS-5 wrt this issue that is also not present on RHEL-5.
Hi Johnny,

Before taking cheap shots, I suggest you check the facts first.

(a) We've mainly been talking about CentOS4, not CentOS5.

(b) RHEL5 works just fine with Scalar::Util. If CentOS5 doesn't, then CentOS5 has the problem.

Here's RHEL5 64-bit:

Code:
[build@build11 tmp]$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5 (Tikanga)
[build@build11 tmp]$ uname -a
Linux build11 2.6.18-8.el5 #1 SMP Fri Jan 26 14:15:14 EST 2007 x86_64 x86_64 x86_64 GNU/Linux
[build@build11 tmp]$ cat /tmp/system.pl
#!/usr/bin/perl
use lib "/usr/lib/perl5/5.8.8";
use Scalar::Util qw (dualvar);
[build@build11 tmp]$ perl /tmp/system.pl
[build@build11 tmp]$
Here's RHEL5 32-bit:
Code:
[build@build10 tmp]$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5 (Tikanga)
[build@build10 tmp]$ uname -a
Linux build10 2.6.18-8.el5 #1 SMP Fri Jan 26 14:15:21 EST 2007 i686 athlon i386 GNU/Linux
[build@build10 tmp]$ cat /tmp/system.pl
#!/usr/bin/perl
use lib "/usr/lib/perl5/5.8.8";
use Scalar::Util qw (dualvar);
[build@build10 tmp]$ perl /tmp/system.pl
So RHEL5 certainly ships with Dualvar support in Scalar::Util.

Here's RHEL4, in comparison:

Code:
-bash-3.00$ cat /etc/redhat-release
Red Hat Enterprise Linux ES release 4 (Nahant Update 6)
-bash-3.00$ uname -a
Linux qa07 2.6.9-67.ELsmp #1 SMP Wed Nov 7 13:58:04 EST 2007 i686 i686 i386 GNU/Linux

-bash-3.00$ cat /tmp/system.pl
#!/usr/bin/perl
use lib "/usr/lib/perl5/5.8.5";
use Scalar::Util qw (dualvar);
-bash-3.00$ perl /tmp/system.pl
 is only avaliable with the XS version at /tmp/system.pl line 3
BEGIN failed--compilation aborted at /tmp/system.pl line 3.
So as you can clearly see, the Scalar::Util shipped by RHEL5 does not have this problem. The version shipped by RHEL4 does. Using Zimbra's Scalar::Util shipped with RHEL4 solves the problem:

Code:
[root@qa07 zcs-5.0.0_GA_1869.RHEL4.20071218182359]# cat /etc/redhat-release
Red Hat Enterprise Linux ES release 4 (Nahant Update 6)
[root@qa07 zcs-5.0.0_GA_1869.RHEL4.20071218182359]# uname -a
Linux qa07 2.6.9-67.ELsmp #1 SMP Wed Nov 7 13:58:04 EST 2007 i686 i686 i386 GNU/Linux
[root@qa07 zcs-5.0.0_GA_1869.RHEL4.20071218182359]# cat /tmp/zimbra.pl
#!/usr/bin/perl
use lib "/opt/zimbra/zimbramon/lib";
use Scalar::Util qw (dualvar);
[root@qa07 zcs-5.0.0_GA_1869.RHEL4.20071218182359]# perl /tmp/zimbra.pl
[root@qa07 zcs-5.0.0_GA_1869.RHEL4.20071218182359]#
[root@qa07 zcs-5.0.0_GA_1869.RHEL4.20071218182359]# su - zimbra
[zimbra@qa07 ~]$ perl /tmp/zimbra.pl
[zimbra@qa07 ~]$
So, rather than trying to start a flame war, please actually test things and try to be constructive. Obviously, Zimbra would rather things work on CentOS than not work. But we have an obligation to our user base to be clear on what we find does and does not work. RHEL4 is working.

--Quanah
__________________
Quanah Gibson-Mount
Sr. Member of Technical Staff
Zimbra, Inc
A Division of VMware, Inc.
--------------------
Zimbra :: the leader in open source messaging and collaboration

Last edited by quanah; 01-08-2008 at 11:00 AM..
Reply With Quote