pkgsrc-wip és ftpsesame

Kérem szépen, fel akarom rakni az ftpsesame-t, lévén, hogy a bridginget tesztelném. Így száll el a bmake:

===> Extracting for ftpsesame-0.95
===> Patching for ftpsesame-0.95
===> Applying pkgsrc patches for ftpsesame-0.95
===> Overriding tools for ftpsesame-0.95
===> Creating toolchain wrappers for ftpsesame-0.95
===> Building for ftpsesame-0.95
cc -O2 -I/usr/include -I. -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith  -Wno-uninitialized  -Werror  -I/usr/include -c filter.c
filter.c:25:23: net/pfvar.h: No such file or directory
filter.c: In function `filter_init':
filter.c:48: error: storage size of 'status' isn't known
filter.c:53: error: `DIOCGETSTATUS' undeclared (first use in this function)
filter.c:53: error: (Each undeclared identifier is reported only once
filter.c:53: error: for each function it appears in.)
filter.c:62: error: invalid application of `sizeof' to incomplete type `pfioc_pooladdr'
filter.c:63: error: invalid application of `sizeof' to incomplete type `pfioc_rule'
filter.c:64: error: invalid application of `sizeof' to incomplete type `pfioc_trans'
filter.c:65: error: invalid application of `sizeof' to incomplete type `pfioc_trans_e'
filter.c:67: error: invalid use of undefined type `struct pfioc_trans'
filter.c:68: error: invalid use of undefined type `struct pfioc_trans'
filter.c:68: error: invalid application of `sizeof' to incomplete type `pfioc_trans_e'
filter.c:69: error: invalid use of undefined type `struct pfioc_trans'
filter.c:70: error: invalid use of undefined type `struct pfioc_trans_e'
filter.c:70: error: `PF_RULESET_FILTER' undeclared (first use in this function)
filter.c:77: error: invalid use of undefined type `struct pfioc_rule'
filter.c:77: error: `PF_PASS' undeclared (first use in this function)
filter.c:79: error: invalid use of undefined type `struct pfioc_rule'
filter.c:80: error: invalid use of undefined type `struct pfioc_rule'
filter.c:81: error: invalid use of undefined type `struct pfioc_rule'
filter.c:82: error: invalid use of undefined type `struct pfioc_rule'
filter.c:83: error: invalid use of undefined type `struct pfioc_rule'
filter.c:83: error: `PF_ADDR_ADDRMASK' undeclared (first use in this function)
filter.c:84: error: invalid use of undefined type `struct pfioc_rule'
filter.c:85: error: invalid use of undefined type `struct pfioc_rule'
filter.c:86: error: invalid use of undefined type `struct pfioc_rule'
filter.c:87: error: invalid use of undefined type `struct pfioc_rule'
filter.c:87: error: `PF_OP_EQ' undeclared (first use in this function)
filter.c:88: error: invalid use of undefined type `struct pfioc_rule'
filter.c:89: error: invalid use of undefined type `struct pfioc_rule'
filter.c:90: error: invalid use of undefined type `struct pfioc_rule'
filter.c:92: error: invalid use of undefined type `struct pfioc_rule'
filter.c:92: error: invalid use of undefined type `struct pfioc_rule'
filter.c:94: error: invalid use of undefined type `struct pfioc_rule'
filter.c:94: error: invalid use of undefined type `struct pfioc_rule'
filter.c:48: warning: unused variable `status'
filter.c: In function `filter_allow':
filter.c:101: error: `PF_ANCHOR_NAME_SIZE' undeclared (first use in this function)
filter.c:107: error: invalid use of undefined type `struct pfioc_pooladdr'
filter.c:108: error: invalid use of undefined type `struct pfioc_rule'
filter.c:109: error: invalid use of undefined type `struct pfioc_trans_e'
filter.c:111: error: `DIOCXBEGIN' undeclared (first use in this function)
filter.c:113: error: invalid use of undefined type `struct pfioc_rule'
filter.c:113: error: invalid use of undefined type `struct pfioc_trans_e'
filter.c:115: error: `DIOCBEGINADDRS' undeclared (first use in this function)
filter.c:117: error: invalid use of undefined type `struct pfioc_rule'
filter.c:117: error: invalid use of undefined type `struct pfioc_pooladdr'
filter.c:120: error: invalid use of undefined type `struct pfioc_rule'
filter.c:121: error: invalid use of undefined type `struct pfioc_rule'
filter.c:122: error: invalid use of undefined type `struct pfioc_rule'
filter.c:123: error: `DIOCADDRULE' undeclared (first use in this function)
filter.c:127: error: invalid use of undefined type `struct pfioc_rule'
filter.c:133: error: `DIOCXCOMMIT' undeclared (first use in this function)
filter.c:101: warning: unused variable `an'
filter.c: In function `filter_lookup':
filter.c:149: error: storage size of 'pnl' isn't known
filter.c:159: error: `PF_IN' undeclared (first use in this function)
filter.c:165: error: `DIOCNATLOOK' undeclared (first use in this function)
filter.c:167: error: `PF_OUT' undeclared (first use in this function)
filter.c:149: warning: unused variable `pnl'
filter.c: At top level:
filter.c:39: error: storage size of `pfp' isn't known
filter.c:40: error: storage size of `pfr' isn't known
filter.c:41: error: storage size of `pft' isn't known
filter.c:42: error: storage size of `pfte' isn't known
*** Error code 1

Sejtésem szerint ott van a kutya elásva, hogy ebben a patchben a #include van, s a pfvar.h path nálam a /usr/include/net/pf/pfvar.h. Lévén non-programmer, nem merek hozzányúlni, a sourceforge-os listára meg nem tudok feliratkozni, mert proxy error-okat dobál. Van valakinek valami workaround-ötlete?

Hozzászólások

Bemásoltam a pfvar.h és ppp_defs.h fájlokat a megfelelő helyre. Most is elszáll, csak így:

===> Building for ftpsesame-0.95
cc -O2 -I/usr/include -I. -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith  -Wno-uninitialized  -Werror  -I/usr/include -c filter.c
cc -O2 -I/usr/include -I. -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith  -Wno-uninitialized  -Werror  -I/usr/include -c ftpsesame.c
ftpsesame.c:80: error: syntax error before "gotsig_alarm"
ftpsesame.c:80: warning: type defaults to `int' in declaration of `gotsig_alarm'
ftpsesame.c:80: warning: type defaults to `int' in declaration of `gotsig_close'
ftpsesame.c:80: warning: data definition has no type or storage class
ftpsesame.c: In function `main':
ftpsesame.c:521: error: `BIOCIMMEDIATE' undeclared (first use in this function)
ftpsesame.c:521: error: (Each undeclared identifier is reported only once
ftpsesame.c:521: error: for each function it appears in.)
ftpsesame.c:546: warning: implicit declaration of function `signal'
ftpsesame.c:546: error: `SIGALRM' undeclared (first use in this function)
ftpsesame.c:547: error: `SIGINT' undeclared (first use in this function)
ftpsesame.c:548: error: `SIGQUIT' undeclared (first use in this function)
ftpsesame.c:549: error: `SIGTERM' undeclared (first use in this function)
ftpsesame.c: At top level:
ftpsesame.c:677: error: syntax error before "void"
*** Error code 1

Jelzem: átírtam a forrásban közvetlenül az include-okat, így se forul le. Sz*rok bele, nem hackelem, majd valaki a pkgsrc-wip vagy dragonfly levlistán segít.