From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Dec 15 01:00:31 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5A14E16A492 for ; Fri, 15 Dec 2006 01:00:31 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3067D43C9D for ; Fri, 15 Dec 2006 00:58:49 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id kBF10QBr052044 for ; Fri, 15 Dec 2006 01:00:27 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id kBF10Q4x052043; Fri, 15 Dec 2006 01:00:26 GMT (envelope-from gnats) Resent-Date: Fri, 15 Dec 2006 01:00:26 GMT Resent-Message-Id: <200612150100.kBF10Q4x052043@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, trasz Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6809416A407 for ; Fri, 15 Dec 2006 00:59:41 +0000 (UTC) (envelope-from trasz@pin.if.uz.zgora.pl) Received: from pin.if.uz.zgora.pl (pin.if.uz.zgora.pl [212.109.128.251]) by mx1.FreeBSD.org (Postfix) with ESMTP id D795843CAA for ; Fri, 15 Dec 2006 00:58:02 +0000 (GMT) (envelope-from trasz@pin.if.uz.zgora.pl) Received: by pin.if.uz.zgora.pl (Postfix, from userid 1001) id 2D82439DBA; Fri, 15 Dec 2006 02:02:52 +0100 (CET) Message-Id: <20061215010252.2D82439DBA@pin.if.uz.zgora.pl> Date: Fri, 15 Dec 2006 02:02:52 +0100 (CET) From: trasz To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/106746: [PATCH] net/mpd: fix build with gcc41 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Dec 2006 01:00:31 -0000 >Number: 106746 >Category: ports >Synopsis: [PATCH] net/mpd: fix build with gcc41 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Dec 15 01:00:25 GMT 2006 >Closed-Date: >Last-Modified: >Originator: trasz >Release: FreeBSD 6.1-RELEASE-p10 i386 >Organization: >Environment: System: FreeBSD pin.if.uz.zgora.pl 6.1-RELEASE-p10 FreeBSD 6.1-RELEASE-p10 #0: Wed Nov 15 19:16:30 CET 2006 >Description: Fix build with gcc41 and pet portlint. http://pointyhat.freebsd.org/errorlogs/i386-errorlogs/e.7.2006121307/mpd-3.18_4.log Added file(s): - files/patch-src::iface.h - files/patch-src::radius.c Generated with FreeBSD Port Tools 0.77 >How-To-Repeat: >Fix: --- mpd-3.18_4.patch begins here --- diff -ruN --exclude=CVS /usr/ports/net/mpd/Makefile /home/trasz/mpd/Makefile --- /usr/ports/net/mpd/Makefile Sat Nov 25 17:46:44 2006 +++ /home/trasz/mpd/Makefile Fri Dec 15 02:02:12 2006 @@ -21,7 +21,6 @@ MANCOMPRESSED= maybe USE_OPENSSL= yes -USE_RC_SUBR= yes MAKE_ENV= COPTS="${COPTS} -I${OPENSSLINC}" LDADD="${LDADD} -L${OPENSSLLIB}" .include diff -ruN --exclude=CVS /usr/ports/net/mpd/files/patch-src::iface.h /home/trasz/mpd/files/patch-src::iface.h --- /usr/ports/net/mpd/files/patch-src::iface.h Thu Jan 1 01:00:00 1970 +++ /home/trasz/mpd/files/patch-src::iface.h Fri Dec 15 02:02:12 2006 @@ -0,0 +1,10 @@ +--- src/iface.h.orig Fri Dec 15 01:39:27 2006 ++++ src/iface.h Fri Dec 15 01:40:35 2006 +@@ -21,6 +21,7 @@ + #include "mbuf.h" + #include "timer.h" + #include "vars.h" ++#include "command.h" + + /* + * DEFINITIONS diff -ruN --exclude=CVS /usr/ports/net/mpd/files/patch-src::radius.c /home/trasz/mpd/files/patch-src::radius.c --- /usr/ports/net/mpd/files/patch-src::radius.c Thu Jan 1 01:00:00 1970 +++ /home/trasz/mpd/files/patch-src::radius.c Fri Dec 15 02:02:12 2006 @@ -0,0 +1,20 @@ +--- src/radius.c.orig Fri Dec 15 01:42:07 2006 ++++ src/radius.c Fri Dec 15 01:55:53 2006 +@@ -922,7 +922,7 @@ + case RAD_MICROSOFT_MS_CHAP_ERROR: + /* there is a nullbyte on the first pos, don't know why */ + if (((const char *)data)[0] == '\0') { +- ((const char *)data)++; ++ data+=sizeof(const char); + len--; + } + free(rad->mschap_error); +@@ -945,7 +945,7 @@ + * Only point at the String field if we don't think the + * peer has misformatted the response. + */ +- ((const char *)data)++; ++ data+=sizeof(const char); + len--; + } else + Log(LG_RADIUS, ("[%s] RADIUS: %s: Warning: The MS-CHAP2-Success attribute is mis-formatted. Compensating", --- mpd-3.18_4.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: