Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#38 Can't Compile on darwin8.7.1 (Intel)

racoon
closed
nobody
5
2009-01-16
2006-09-17
No

I trust I have tried everything before I post this, including searching
through all support requests and bugs. If I missed something, please
forgive me...

Here is my problem:
I have downloaded ipsec-tools-0.6.6.
I run the following commands:
# ./configure
# make
and I get
policy_token.l:57:19: error: y.tab.h: No such file or directory

Needless to say, the thing will not compile, let alone run.

I understand though through reading the various posts here that it
should.

Discussion

  • liuhoting
    liuhoting
    2007-06-26

    Logged In: YES
    user_id=1828345
    Originator: NO

    I actually get a similar error. I'm running Darwin 8.10.1 and am using ipsec-tools-0.6.7

    I do ./configure and make, and I get the same error message as well:

    policy_token.l:57:19: error: y.tab.h: No such file or directory
    policy_token.l: In function '__libipseclex':
    policy_token.l:100: error: '__libipseclval' undeclared (first use in this function)
    policy_token.l:100: error: (Each undeclared identifier is reported only once
    policy_token.l:100: error: for each function it appears in.)
    policy_token.l:100: error: 'DIR' undeclared (first use in this function)
    policy_token.l:110: error: 'PRIORITY' undeclared (first use in this function)
    policy_token.l:112: error: 'PRIO_BASE' undeclared (first use in this function)
    policy_token.l:115: error: 'PLUS' undeclared (first use in this function)
    policy_token.l:119: error: 'PRIO_OFFSET' undeclared (first use in this function)
    policy_token.l:122: error: 'ACTION' undeclared (first use in this function)
    policy_token.l:128: error: 'PROTOCOL' undeclared (first use in this function)
    policy_token.l:132: error: 'MODE' undeclared (first use in this function)
    policy_token.l:135: error: 'ME' undeclared (first use in this function)
    policy_token.l:136: error: 'ANY' undeclared (first use in this function)
    policy_token.l:138: error: 'LEVEL' undeclared (first use in this function)
    policy_token.l:144: error: 'LEVEL_SPECIFY' undeclared (first use in this function)
    policy_token.l:147: error: 'SLASH' undeclared (first use in this function)
    policy_token.l:152: error: 'IPADDRESS' undeclared (first use in this function)
    policy_token.l:155: error: 'HYPHEN' undeclared (first use in this function)
    policy_token.l:162: error: 'PORT' undeclared (first use in this function)
    make: *** [policy_token.lo] Error 1

    I actually tried making the y.tab.h file myself, since I couldn't find any documentation on this problem at all. I did the following:

    /usr/bin/bison -y ~/ipsec-tools-0.6.7/src/libipsec/policy_parse.y
    mv y.tab.c y.tab.h

    When I run make again, this is what shows up:

    policy_token.l: In function '__libipseclex':
    policy_token.l:100: error: '__libipseclval' undeclared (first use in this function)
    policy_token.l:100: error: (Each undeclared identifier is reported only once
    policy_token.l:100: error: for each function it appears in.)
    policy_token.l: At top level:
    policy_token.l:170: error: conflicting types for '__policy__strbuffer__init__'
    policy_parse.y:122: error: previous declaration of '__policy__strbuffer__init__' was here
    policy_token.l:177: error: conflicting types for '__policy__strbuffer__init__'
    policy_parse.y:122: error: previous declaration of '__policy__strbuffer__init__' was here
    policy_token.l: In function '__policy__strbuffer__init__':
    policy_token.l:178: error: argument 'msg' doesn't match prototype
    policy_parse.y:122: error: prototype declaration
    make: *** [policy_token.lo] Error 1

    I think some of the y.tab.h declarations have entries for policy_strbuffer_init, which might explain why there are conflicting declaration errors. But the rest I'm not too sure about...

    Anybody have any suggestions or advice?

     
  • Timo Teras
    Timo Teras
    2009-01-16

    Closing all sourceforge.net bugs. If this issue has not been cared for please submit a new bug report to https://trac.ipsec-tools.net/ issue tracker. Thank you.

     
  • Timo Teras
    Timo Teras
    2009-01-16

    • status: open --> closed