KES
2008-Aug-07 07:39 UTC
ng_ipacct.c:905: error: too few arguments to function 'in_pcblookup_local'
When .ifndef PACKAGE_BUILDING IGNORE= "Depends on kernel" .endif I get Depends on kernel When I change that to: .ifndef PACKAGE_BUILDING NO_PACKAGE= "Depends on kernel" .endif a get: kes# make deinstall reinstall clean ===> Deinstalling for net-mgmt/ng_ipacct ===> ng_ipacct not installed, skipping ===> Building for ng_ipacct-20061223 ===> ng_ipacct (all) Warning: Object directory not changed from original /usr/ports/net-mgmt/ng_ipacct/work/ng_ipacct/ng_ipacct cc -O -pipe -g -D_KERNEL -DKLD_MODULE -std=c99 -nostdinc -I/usr/ports/net-mgmt/ng_ipacct/work/ng_ipacct/ng_ipacct -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -c ng_ipacct.c ng_ipacct.c: In function 'pcb_get_cred': ng_ipacct.c:905: error: too few arguments to function 'in_pcblookup_local' *** Error code 1 Stop in /usr/ports/net-mgmt/ng_ipacct/work/ng_ipacct/ng_ipacct. *** Error code 1 Stop in /usr/ports/net-mgmt/ng_ipacct/work/ng_ipacct. *** Error code 1 Stop in /usr/ports/net-mgmt/ng_ipacct. *** Error code 1 Stop in /usr/ports/net-mgmt/ng_ipacct. *** Error code 1 Stop in /usr/ports/net-mgmt/ng_ipacct. kes#
Xin LI
2008-Aug-07 22:36 UTC
ng_ipacct.c:905: error: too few arguments to function 'in_pcblookup_local'
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 KES wrote: [...] | kes# make deinstall reinstall clean | ===> Deinstalling for net-mgmt/ng_ipacct | ===> ng_ipacct not installed, skipping | ===> Building for ng_ipacct-20061223 | ===> ng_ipacct (all) | Warning: Object directory not changed from original /usr/ports/net-mgmt/ng_ipacct/work/ng_ipacct/ng_ipacct | cc -O -pipe -g -D_KERNEL -DKLD_MODULE -std=c99 -nostdinc - -I/usr/ports/net-mgmt/ng_ipacct/work/ng_ipacct/ng_ipacct -I. -I@ - -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 - --param large-function-growth=1000 -fno-common -mno-align-long-strings - -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 - -mno-sse3 -ffreestanding -Wall -Wredundant-decls -Wnested-externs - -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline - -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -c ng_ipacct.c | ng_ipacct.c: In function 'pcb_get_cred': | ng_ipacct.c:905: error: too few arguments to function 'in_pcblookup_local' | *** Error code 1 Newer FreeBSD versions requires a 'ucred' parameter, from my understanding it looks that one has to pass the current thread's ucred? Cheers, - -- Xin LI <delphij@delphij.net> http://www.delphij.net/ FreeBSD - The Power to Serve! -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkibeN4ACgkQi+vbBBjt66DO6wCfeG4bbzuFs40CNR28aNFoR/ld P0UAniG1zwrzmQurBOg3yRSDejM4mEaN =mN+B -----END PGP SIGNATURE-----