Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 108572 - gawk 3.1.5 switch, default, case keywords problem
Summary: gawk 3.1.5 switch, default, case keywords problem
Status: RESOLVED DUPLICATE of bug 94681
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 108573 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-10-09 02:12 UTC by Jochen Maes (RETIRED)
Modified: 2005-10-09 02:15 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jochen Maes (RETIRED) gentoo-dev 2005-10-09 02:12:13 UTC
If gawk is emerged with --enable-switch then it gives syntax errors on those 3
keywords. 
openswan fex uses those keywords. 
There needs to be a check fot it imho

Reproducible: Always
Steps to Reproduce:
1. emerge gawk 3.1.5
2. emerge openswan-2.3.1
3. /etc/init.d/ipsec start

Actual Results:  
powke openswan # /etc/init.d/ipsec start
 * Starting IPSEC ... ...
awk: cmd. line:100:     default[""] = ""
awk: cmd. line:100:     ^ syntax error
awk: cmd. line:205:                     for (i in default)
awk: cmd. line:205:                               ^ syntax error
awk: cmd. line:344:     } else if (search in default)
awk: cmd. line:344:                          ^ syntax error
awk: cmd. line:348:                     default[search] = rest
awk: cmd. line:348:                     ^ syntax error
awk: cmd. line:349:             else
awk: cmd. line:349:             ^ syntax error
awk: cmd. line:410:     if (name in default)
awk: cmd. line:410:                 ^ syntax error
awk: cmd. line:412:     default[name] = value
awk: cmd. line:412:     ^ syntax error
awk: cmd. line:484:             for (name in default)
awk: cmd. line:484:                          ^ syntax error
awk: cmd. line:486:                             output(o_parm, name, default[nam
                                                                               
                                                  
e])
awk: cmd. line:486:                                                  ^ syntax er
                                                                               
                                                  
ror
awk: cmd. line:488:             if (default[search] in wanted)
awk: cmd. line:488:                 ^ syntax error
/usr/lib/ipsec/_include: line 100:  5084 Broken pipe             awk 'BEGIN {
        wasfile = ""
}
FNR == 1 {
        print ""
        print "#<", FILENAME, 1
        lineno = 0
        wasfile = FILENAME
}
{
        lineno++
        # lineno is now the number of this line
}
/^#[<>:]/ {
        next
}
/^include[ \t]+/ {
        orig = $0
        sub(/[ \t]+#.*$/, "")
        if (NF != 2) {
                msg = "(" FILENAME ", line " lineno ")"
                msg = msg " include syntax error in \"" orig "\""
                print "#:" msg
                exit 1
        }
        newfile = $2
        if (newfile !~ /^\// && FILENAME ~ /\//) {
                prefix = FILENAME
                sub("[^/]+$", "", prefix)
                newfile = prefix newfile
        }
        system("ipsec _include " newfile)
        print ""
        print "#>", FILENAME, lineno + 1
        next
}
{ print }' $*
/usr/lib/ipsec/_include: line 100:  5082 Broken pipe             awk 'BEGIN {
        wasfile = ""








}
FNR == 1 {
        print ""
        print "#<", FILENAME, 1
        lineno = 0
        wasfile = FILENAME
}
{
        lineno++
        # lineno is now the number of this line
}
/^#[<>:]/ {
        next
}
/^include[ \t]+/ {
        orig = $0
        sub(/[ \t]+#.*$/, "")
        if (NF != 2) {
                msg = "(" FILENAME ", line " lineno ")"
                msg = msg " include syntax error in \"" orig "\""
                print "#:" msg
                exit 1
        }
        newfile = $2
        if (newfile !~ /^\// && FILENAME ~ /\//) {
                prefix = FILENAME
                sub("[^/]+$", "", prefix)
                newfile = prefix newfile
        }
        system("ipsec _include " newfile)
        print ""
        print "#>", FILENAME, lineno + 1
        next
}
{ print }' $*
ipsec_setup: ipsec setup: /usr/lib/ipsec/_realsetup must be called by ipsec_setu
                                                                               
                                                  
p                                                                         [ !! ]


Expected Results:  
powke openswan # /etc/init.d/ipsec start
 * Starting IPSEC ... ...
ipsec_setup: Starting Openswan IPsec 2.3.1...
ipsec_setup: insmod /lib/modules/2.6.13-gentoo-r2/kernel/net/key/af_key.ko 
ipsec_setup: insmod /lib/modules/2.6.13-gentoo-r2/kernel/net/ipv4/ah4.ko 
ipsec_setup: insmod /lib/modules/2.6.13-gentoo-r2/kernel/net/ipv4/esp4.ko 
ipsec_setup: insmod /lib/modules/2.6.13-gentoo-r2/kernel/net/ipv4/ipcomp.ko 
ipsec_setup: insmod /lib/modules/2.6.13-gentoo-r2/kernel/net/ipv4/xfrm4_tunnel.k
                                                                               
                                                  
o 
ipsec_setup: insmod /lib/modules/2.6.13-gentoo-r2/kernel/crypto/sha1.ko 
ipsec_setup: insmod /lib/modules/2.6.13-gentoo-r2/kernel/crypto/des.ko 
ipsec_setup: insmod /lib/modules/2.6.13-gentoo-r2/kernel/crypto/aes.ko 
ipsec_setup: ipsec_setup: WARNING: cannot flush state/policy database -- `%defau
                                                                               
                                                  
ltroute'. Install a newer version of iproute/iproute2 or install the ipsec-tools
                                                                               
                                                  
 package to obtain the setkey command.                                    [ ok ]
Comment 1 SpanKY gentoo-dev 2005-10-09 02:14:59 UTC
*** Bug 108573 has been marked as a duplicate of this bug. ***
Comment 2 SpanKY gentoo-dev 2005-10-09 02:15:36 UTC

*** This bug has been marked as a duplicate of 94681 ***