From owner-freebsd-bugs@FreeBSD.ORG Sat Mar 28 08:27:24 2009 Return-Path: Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C6A0B106566B for ; Sat, 28 Mar 2009 08:27:24 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.24]) by mx1.freebsd.org (Postfix) with ESMTP id 4457B8FC0C for ; Sat, 28 Mar 2009 08:27:24 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: by qw-out-2122.google.com with SMTP id 9so973502qwb.7 for ; Sat, 28 Mar 2009 01:27:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=y0kQsG6FmqvVeLbr2FQr22KasmYL+YLo28Ws4mT0iCs=; b=WLZOUbOezwKbIvn8kpCwepHa5ZLjSINMtR2+7wlWChzHokSOXcetKatkpdyhsmbAC4 T6xn2r+a+RnT9t7iZmXJLXbFt+gQ6SpiFNEJgrQZAUxI/tB0uRyffv4nO+WUGcKdqBGr RXZGzETrEReI1FiZu136A1WTNTu6gJG4nH+bE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=rq90ptdmiOs+4vPrRL/YWUaeo1TryOG4Cpp35wzAcQOf+W345jyHftUN3WFrsXfDhE 8AoeA7cLLt20WIhtAEILqi6WROwhP51kAB13NFrLivn/ABcBzNl6GYWq95PmRHP019S5 YeFWG9aZG/4k1kRfX7I8a5O5xxe8J+n3dJ2Yw= MIME-Version: 1.0 Received: by 10.220.99.149 with SMTP id u21mr948986vcn.94.1238227117207; Sat, 28 Mar 2009 00:58:37 -0700 (PDT) In-Reply-To: <200903280750.n2S7o29a003252@freefall.freebsd.org> References: <200903280747.n2S7lTao005960@www.freebsd.org> <200903280750.n2S7o29a003252@freefall.freebsd.org> Date: Sat, 28 Mar 2009 02:58:37 -0500 Message-ID: <790a9fff0903280058v36ad2824naf8b877333849e1f@mail.gmail.com> From: Scot Hetzel To: FreeBSD-gnats-submit@freebsd.org, freebsd-bugs@freebsd.org Content-Type: multipart/mixed; boundary=0016e64650a078f2290466293792 Cc: Subject: Re: misc/133152: net-mgmt/net-snmp: fails building on recent -CURRENT X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Mar 2009 08:27:25 -0000 --0016e64650a078f2290466293792 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On Sat, Mar 28, 2009 at 2:50 AM, 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 dGNwNmNiLCBzaXplb2YodGNwNmNiKSkpIHsKKyAgICAgICAgaWYgKCFORVRTTk1QX0tMT09LVVAo dHN0cGNiLmlucF9wcGNiLCAoY2hhciAqKSAmdGNwNmNiLCBzaXplb2YodGNwNmNiKSkpIHsKICAg ICAgICAgICAgIERFQlVHTVNHVEwoKCJtaWJJSS9pcHY2IiwgImtsb29rdXAgZmFpbCBmb3IgdGNi Ni50Y3A2Y2IgYXQgJXhcbiIsCi0gICAgICAgICAgICAgICAgICAgICAgICB0c3RwY2IuaW42cF9w cGNiKSk7CisgICAgICAgICAgICAgICAgICAgICAgICB0c3RwY2IuaW5wX3BwY2IpKTsKICAgICAg ICAgICAgIGZvdW5kID0gMDsKICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICB9CiAgICAgICAg IGogPSAoaW50KSB2cC0+bmFtZWxlbjsKICAgICAgICAgZm9yIChpID0gMDsgaSA8IHNpemVvZihz dHJ1Y3QgaW42X2FkZHIpOyBpKyspCiAgICAgICAgICAgICBuZXduYW1lW2orK10gPSB0c3RwY2Iu aW42cF9sYWRkci5zNl9hZGRyW2ldOwotICAgICAgICBuZXduYW1lW2orK10gPSBudG9ocyh0c3Rw Y2IuaW42cF9scG9ydCk7CisgICAgICAgIG5ld25hbWVbaisrXSA9IG50b2hzKHRzdHBjYi5pbnBf bHBvcnQpOwogICAgICAgICBmb3IgKGkgPSAwOyBpIDwgc2l6ZW9mKHN0cnVjdCBpbjZfYWRkcik7 IGkrKykKICAgICAgICAgICAgIG5ld25hbWVbaisrXSA9IHRzdHBjYi5pbjZwX2ZhZGRyLnM2X2Fk ZHJbaV07Ci0gICAgICAgIG5ld25hbWVbaisrXSA9IG50b2hzKHRzdHBjYi5pbjZwX2Zwb3J0KTsK KyAgICAgICAgbmV3bmFtZVtqKytdID0gbnRvaHModHN0cGNiLmlucF9mcG9ydCk7CiAgICAgICAg IGlmIChJTjZfSVNfQUREUl9MSU5LTE9DQUwoJnRzdHBjYi5pbjZwX2xhZGRyKSkKICAgICAgICAg ICAgIG5ld25hbWVbaisrXSA9CiAgICAgICAgICAgICAgICAgbnRvaHMoKih1aW50MTZfdCAqKSAm IHRzdHBjYi5pbjZwX2xhZGRyLnM2X2FkZHJbMl0pOwpAQCAtMTU0NSw3ICsxNTQ1LDcgQEAKICAg ICAgICAgREVCVUdNU0coKCJtaWJJSS9pcHY2IiwgIiAlZFxuIiwgZXhhY3QpKTsKIAogI2lmIDEg ICAgICAgICAgICAgICAgICAgICAgICAgICAvKiB0aGlzIGlzIHZlcnkgb2RkIGJ1dCBzb21ldGlt ZXMgaGFwcGVuLCBhbmQgY2F1c2UgaW5maW5pdGUgbG9vcCAqLwotICAgICAgICBpZiAobnRvaHMo dHN0cGNiLmluNnBfbHBvcnQpID09IDApCisgICAgICAgIGlmIChudG9ocyh0c3RwY2IuaW5wX2xw b3J0KSA9PSAwKQogICAgICAgICAgICAgZ290byBza2lwOwogI2VuZGlmCiAKQEAgLTE2MDEsMTMg KzE2MDEsMTMgQEAKICAgICAgICAgKnZhcl9sZW4gPSBzaXplb2Yoc3RydWN0IGluNl9hZGRyKTsK ICAgICAgICAgcmV0dXJuICh1X2NoYXIgKikgJiBzYXZwY2IuaW42cF9sYWRkci5zNl9hZGRyWzBd OwogICAgIGNhc2UgSVBWNlRDUExPQ0FMUE9SVDoKLSAgICAgICAgbG9uZ19yZXR1cm4gPSBudG9o cyhzYXZwY2IuaW42cF9scG9ydCk7CisgICAgICAgIGxvbmdfcmV0dXJuID0gbnRvaHMoc2F2cGNi LmlucF9scG9ydCk7CiAgICAgICAgIHJldHVybiAodV9jaGFyICopICYgbG9uZ19yZXR1cm47CiAg ICAgY2FzZSBJUFY2VENQUkVNT1RFQUREUjoKICAgICAgICAgKnZhcl9sZW4gPSBzaXplb2Yoc3Ry dWN0IGluNl9hZGRyKTsKICAgICAgICAgcmV0dXJuICh1X2NoYXIgKikgJiBzYXZwY2IuaW42cF9m YWRkci5zNl9hZGRyWzBdOwogICAgIGNhc2UgSVBWNlRDUFJFTU9URVBPUlQ6Ci0gICAgICAgIGxv bmdfcmV0dXJuID0gbnRvaHMoc2F2cGNiLmluNnBfZnBvcnQpOworICAgICAgICBsb25nX3JldHVy biA9IG50b2hzKHNhdnBjYi5pbnBfZnBvcnQpOwogICAgICAgICByZXR1cm4gKHVfY2hhciAqKSAm IGxvbmdfcmV0dXJuOwogICAgIGNhc2UgSVBWNlRDUElGSU5ERVg6CiAgICAgICAgIGlmIChJTjZf SVNfQUREUl9MSU5LTE9DQUwoJnNhdnBjYi5pbjZwX2xhZGRyKSkKQEAgLTE3NDIsMTkgKzE3NDIs MTkgQEAKICAgICAgICAgaWYgKDAgPT0gKHRzdHBjYi5pbnBfdmZsYWcgJiBJTlBfSVBWNikpCiAg ICAgICAgICAgICBnb3RvIHNraXA7CiAjZW5kaWYKLSAgICAgICAgaWYgKCFORVRTTk1QX0tMT09L VVAodHN0cGNiLmluNnBfcHBjYiwgKGNoYXIgKikgJnRjcGNiLCBzaXplb2YodGNwY2IpKSkgewor ICAgICAgICBpZiAoIU5FVFNOTVBfS0xPT0tVUCh0c3RwY2IuaW5wX3BwY2IsIChjaGFyICopICZ0 Y3BjYiwgc2l6ZW9mKHRjcGNiKSkpIHsKICAgICAgICAgICAgIERFQlVHTVNHVEwoKCJtaWJJSS9p cHY2IiwgImtsb29rdXAgZmFpbCBmb3IgdGNiNi50Y3BjYiBhdCAleFxuIiwKLSAgICAgICAgICAg ICAgICAgICAgICAgIHRzdHBjYi5pbjZwX3BwY2IpKTsKKyAgICAgICAgICAgICAgICAgICAgICAg IHRzdHBjYi5pbnBfcHBjYikpOwogICAgICAgICAgICAgZm91bmQgPSAwOwogICAgICAgICAgICAg YnJlYWs7CiAgICAgICAgIH0KICAgICAgICAgaiA9IChpbnQpIHZwLT5uYW1lbGVuOwogICAgICAg ICBmb3IgKGkgPSAwOyBpIDwgc2l6ZW9mKHN0cnVjdCBpbjZfYWRkcik7IGkrKykKICAgICAgICAg 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--