Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Проблема с /etc/init.d/ipsec
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Russian
View previous topic :: View next topic  
Author Message
peter@work
n00b
n00b


Joined: 31 Jan 2005
Posts: 52

PostPosted: Fri Sep 09, 2005 12:24 pm    Post subject: Проблема с /etc/init.d/ipsec Reply with quote

При старте получаю
Code:

kachalova-gw peter # /etc/init.d/ipsec start
 * Re-caching dependency info (mtimes differ)...
 * 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[name])
awk: cmd. line:486:                                                  ^ syntax error
awk: cmd. line:488:             if (default[search] in wanted)
awk: cmd. line:488:                 ^ syntax error
/usr/lib/ipsec/_include: line 100: 16647 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: 16645 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_setup                            [ !! ]


Вычитал что это проблема gawk'а из-за сборки его с ключом --enable-switch, но как решить эту проблему?
Что будет правильнее пересобрать gawk или подправиль /usr/lib/ipsec/_realsetup ?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Russian All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum