Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Mar 2009 02:58:37 -0500
From:      Scot Hetzel <swhetzel@gmail.com>
To:        FreeBSD-gnats-submit@freebsd.org, freebsd-bugs@freebsd.org
Subject:   Re: misc/133152: net-mgmt/net-snmp: fails building on recent -CURRENT
Message-ID:  <790a9fff0903280058v36ad2824naf8b877333849e1f@mail.gmail.com>
In-Reply-To: <200903280750.n2S7o29a003252@freefall.freebsd.org>
References:  <200903280747.n2S7lTao005960@www.freebsd.org> <200903280750.n2S7o29a003252@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--0016e64650a078f2290466293792
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

On Sat, Mar 28, 2009 at 2:50 AM,  <FreeBSD-gnats-submit@freebsd.org> wrote:
> Thank you very much for your problem report.
> It has the internal identification `misc/133152'.
> The individual assigned to look at your
> report is: freebsd-bugs.
>
This should be a ports PR, please change it.

I have also attached my first patch, which changes the in6p_* macros to inp_*.

Either version can be used to build net-mgmt/net-snmp.

Thanks,

Scot

--0016e64650a078f2290466293792
Content-Type: text/plain; charset=US-ASCII; 
	name="patch-agent_mibgroup_mibII_ipv6.c-ver2.txt"
Content-Disposition: attachment; 
	filename="patch-agent_mibgroup_mibII_ipv6.c-ver2.txt"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_fsu0cvb50

LS0tIGFnZW50L21pYmdyb3VwL21pYklJL2lwdjYuYy5vcmlnCTIwMDktMDMtMjggMDE6Mjc6MjEu
NDIxMDc5MDAwIC0wNTAwCisrKyBhZ2VudC9taWJncm91cC9taWJJSS9pcHY2LmMJMjAwOS0wMy0y
OCAwMjowNDo1NC45NzQ4MDYxMDYgLTA1MDAKQEAgLTEzMzIsNyArMTMzMiw3IEBACiAgICAgICAg
IGogPSAoaW50KSB2cC0+bmFtZWxlbjsKICAgICAgICAgZm9yIChpID0gMDsgaSA8IHNpemVvZihz
dHJ1Y3QgaW42X2FkZHIpOyBpKyspCiAgICAgICAgICAgICBuZXduYW1lW2orK10gPSB0c3RwY2Iu
aW42cF9sYWRkci5zNl9hZGRyW2ldOwotICAgICAgICBuZXduYW1lW2orK10gPSBudG9ocyh0c3Rw
Y2IuaW42cF9scG9ydCk7CisgICAgICAgIG5ld25hbWVbaisrXSA9IG50b2hzKHRzdHBjYi5pbnBf
bHBvcnQpOwogICAgICAgICBpZiAoSU42X0lTX0FERFJfTElOS0xPQ0FMKCZ0c3RwY2IuaW42cF9s
YWRkcikpCiAgICAgICAgICAgICBuZXduYW1lW2orK10gPQogICAgICAgICAgICAgICAgIG50b2hz
KCoodWludDE2X3QgKikgJiB0c3RwY2IuaW42cF9sYWRkci5zNl9hZGRyWzJdKTsKQEAgLTEzOTYs
NyArMTM5Niw3IEBACiAgICAgICAgICp2YXJfbGVuID0gc2l6ZW9mKHN0cnVjdCBpbjZfYWRkcik7
CiAgICAgICAgIHJldHVybiBzYXZwY2IuaW42cF9sYWRkci5zNl9hZGRyOwogICAgIGNhc2UgSVBW
NlVEUExPQ0FMUE9SVDoKLSAgICAgICAgbG9uZ19yZXR1cm4gPSBudG9ocyhzYXZwY2IuaW42cF9s
cG9ydCk7CisgICAgICAgIGxvbmdfcmV0dXJuID0gbnRvaHMoc2F2cGNiLmlucF9scG9ydCk7CiAg
ICAgICAgIHJldHVybiAodV9jaGFyICopICYgbG9uZ19yZXR1cm47CiAgICAgY2FzZSBJUFY2VURQ
SUZJTkRFWDoKICAgICAgICAgaWYgKElONl9JU19BRERSX0xJTktMT0NBTCgmc2F2cGNiLmluNnBf
bGFkZHIpKQpAQCAtMTUxOSwxOSArMTUxOSwxOSBAQAogICAgICAgICBpZiAoMCA9PSAodHN0cGNi
LmlucF92ZmxhZyAmIElOUF9JUFY2KSkKICAgICAgICAgICAgIGdvdG8gc2tpcDsKICNlbmRpZgot
ICAgICAgICBpZiAoIU5FVFNOTVBfS0xPT0tVUCh0c3RwY2IuaW42cF9wcGNiLCAoY2hhciAqKSAm
dGNw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fYWRkcik7IGkrKykKICAgICAgICAg
ICAgIG5ld25hbWVbaisrXSA9IHRzdHBjYi5pbjZwX2xhZGRyLnM2X2FkZHJbaV07Ci0gICAgICAg
IG5ld25hbWVbaisrXSA9IG50b2hzKHRzdHBjYi5pbjZwX2xwb3J0KTsKKyAgICAgICAgbmV3bmFt
ZVtqKytdID0gbnRvaHModHN0cGNiLmlucF9scG9ydCk7CiAgICAgICAgIGZvciAoaSA9IDA7IGkg
PCBzaXplb2Yoc3RydWN0IGluNl9hZGRyKTsgaSsrKQogICAgICAgICAgICAgbmV3bmFtZVtqKytd
ID0gdHN0cGNiLmluNnBfZmFkZHIuczZfYWRkcltpXTsKLSAgICAgICAgbmV3bmFtZVtqKytdID0g
bnRvaHModHN0cGNiLmluNnBfZnBvcnQpOworICAgICAgICBuZXduYW1lW2orK10gPSBudG9ocyh0
c3RwY2IuaW5wX2Zwb3J0KTsKICAgICAgICAgaWYgKElONl9JU19BRERSX0xJTktMT0NBTCgmdHN0
cGNiLmluNnBfbGFkZHIpKQogICAgICAgICAgICAgbmV3bmFtZVtqKytdID0KICAgICAgICAgICAg
ICAgICBudG9ocygqKHVpbnQxNl90ICopICYgdHN0cGNiLmluNnBfbGFkZHIuczZfYWRkclsyXSk7
CkBAIC0xNzY4LDcgKzE3NjgsNyBAQAogICAgICAgICBERUJVR01TRygoIm1pYklJL2lwdjYiLCAi
ICVkXG4iLCBleGFjdCkpOwogCiAjaWYgMSAgICAgICAgICAgICAgICAgICAgICAgICAgIC8qIHRo
aXMgaXMgdmVyeSBvZGQgYnV0IHNvbWV0aW1lcyBoYXBwZW4sIGFuZCBjYXVzZSBpbmZpbml0ZSBs
b29wICovCi0gICAgICAgIGlmIChudG9ocyh0c3RwY2IuaW42cF9scG9ydCkgPT0gMCkKKyAgICAg
ICAgaWYgKG50b2hzKHRzdHBjYi5pbnBfbHBvcnQpID09IDApCiAgICAgICAgICAgICBnb3RvIHNr
aXA7CiAjZW5kaWYKICAgICAgICAgcmVzdWx0ID0gc25tcF9vaWRfY29tcGFyZShuYW1lLCAqbGVu
Z3RoLCBuZXduYW1lLCBqKTsKQEAgLTE4MjMsMTMgKzE4MjMsMTMgQEAKICAgICAgICAgKnZhcl9s
ZW4gPSBzaXplb2Yoc3RydWN0IGluNl9hZGRyKTsKICAgICAgICAgcmV0dXJuICh1X2NoYXIgKikg
JiBzYXZwY2IuaW42cF9sYWRkci5zNl9hZGRyWzBdOwogICAgIGNhc2UgSVBWNlRDUExPQ0FMUE9S
VDoKLSAgICAgICAgbG9uZ19yZXR1cm4gPSBudG9ocyhzYXZwY2IuaW42cF9scG9ydCk7CisgICAg
ICAgIGxvbmdfcmV0dXJuID0gbnRvaHMoc2F2cGNiLmlucF9scG9ydCk7CiAgICAgICAgIHJldHVy
biAodV9jaGFyICopICYgbG9uZ19yZXR1cm47CiAgICAgY2FzZSBJUFY2VENQUkVNT1RFQUREUjoK
ICAgICAgICAgKnZhcl9sZW4gPSBzaXplb2Yoc3RydWN0IGluNl9hZGRyKTsKICAgICAgICAgcmV0
dXJuICh1X2NoYXIgKikgJiBzYXZwY2IuaW42cF9mYWRkci5zNl9hZGRyWzBdOwogICAgIGNhc2Ug
SVBWNlRDUFJFTU9URVBPUlQ6Ci0gICAgICAgIGxvbmdfcmV0dXJuID0gbnRvaHMoc2F2cGNiLmlu
NnBfZnBvcnQpOworICAgICAgICBsb25nX3JldHVybiA9IG50b2hzKHNhdnBjYi5pbnBfZnBvcnQp
OwogICAgICAgICByZXR1cm4gKHVfY2hhciAqKSAmIGxvbmdfcmV0dXJuOwogICAgIGNhc2UgSVBW
NlRDUElGSU5ERVg6CiAgICAgICAgIGlmIChJTjZfSVNfQUREUl9MSU5LTE9DQUwoJnNhdnBjYi5p
bjZwX2xhZGRyKSkK
--0016e64650a078f2290466293792--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?790a9fff0903280058v36ad2824naf8b877333849e1f>