Trouble with amanda 3.4 and swig 1.3.40 (EL6)

Orion Poplawski <[email protected]>
Newsgroups gmane.comp.archivers.amanda.devel
Message-ID <[email protected]>
Trying to build amanda 3.4 on EL6 and running into this:

syntax error at /usr/lib64/perl5/vendor_perl/Amanda/Config.pm line 861, near "0{"
syntax error at /usr/lib64/perl5/vendor_perl/Amanda/Config.pm line 916, near "0{"
syntax error at /usr/lib64/perl5/vendor_perl/Amanda/Config.pm line 971, near "0{"
syntax error at /usr/lib64/perl5/vendor_perl/Amanda/Config.pm line 1026, near "0{"
syntax error at /usr/lib64/perl5/vendor_perl/Amanda/Config.pm line 1081, near "0{"
syntax error at /usr/lib64/perl5/vendor_perl/Amanda/Config.pm line 1136, near "0{"
syntax error at /usr/lib64/perl5/vendor_perl/Amanda/Config.pm line 1191, near "0{"
syntax error at /usr/lib64/perl5/vendor_perl/Amanda/Config.pm line 1246, near "0{"
syntax error at /usr/lib64/perl5/vendor_perl/Amanda/Config.pm line 1301, near "0{"
syntax error at /usr/lib64/perl5/vendor_perl/Amanda/Config.pm line 1356, near "0{"


Code looks like:

#Convert an string to a enum value
sub confparm_key_to_value {
    my ($stringvalue) = @_;

    if (0{$stringvalue}) {                           <=======
        return $_confparm_key_VALUES{$stringvalue}
    }

#default, just return the string
    return $stringvalue;
}


The 0 should be "defined $_confparm_key_VALUES" so it looks like that is
getting evaluated.  Obviously appears to work fine in newer swig.

-- 
Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA, Boulder/CoRA Office             FAX: 303-415-9702
3380 Mitchell Lane                       [email protected]
Boulder, CO 80301                   http://www.nwra.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.