Date: Fri, 15 Dec 2006 02:02:52 +0100 (CET) From: trasz <trasz@pin.if.uz.zgora.pl> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/106746: [PATCH] net/mpd: fix build with gcc41 Message-ID: <20061215010252.2D82439DBA@pin.if.uz.zgora.pl> Resent-Message-ID: <200612150100.kBF10Q4x052043@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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 <bsd.port.pre.mk> 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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061215010252.2D82439DBA>