From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Feb 4 18:20:04 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 [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C1E4116A420 for ; Sat, 4 Feb 2006 18:20:04 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5BA7843D53 for ; Sat, 4 Feb 2006 18:20:03 +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 k14IK3c5037974 for ; Sat, 4 Feb 2006 18:20:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k14IK3u7037973; Sat, 4 Feb 2006 18:20:03 GMT (envelope-from gnats) Resent-Date: Sat, 4 Feb 2006 18:20:03 GMT Resent-Message-Id: <200602041820.k14IK3u7037973@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, Dan Lukes Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1E2B816A420 for ; Sat, 4 Feb 2006 18:13:48 +0000 (GMT) (envelope-from dan@obluda.cz) Received: from dzungle.ms.mff.cuni.cz (dzungle.ms.mff.cuni.cz [195.113.20.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9458943D46 for ; Sat, 4 Feb 2006 18:13:46 +0000 (GMT) (envelope-from dan@obluda.cz) Received: (from root@localhost) by dzungle.ms.mff.cuni.cz (8.13.1/8.13.4) id k14IDjaK000692 for FreeBSD-gnats-submit@freebsd.org; Sat, 4 Feb 2006 19:13:45 +0100 (CET) Message-Id: <200602041813.k14IDjaK000692@dzungle.ms.mff.cuni.cz> Date: Sat, 4 Feb 2006 19:13:45 +0100 (CET) From: Dan Lukes To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/92815: [ PATCH ] net/freeradius doesn't compile on 4.x X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Dan Lukes List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Feb 2006 18:20:05 -0000 >Number: 92815 >Category: ports >Synopsis: [ PATCH ] net/freeradius doesn't compile on 4.x >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Feb 04 18:20:02 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Dan Lukes >Release: FreeBSD 4.11-RELEASE-p14 i386 >Organization: Obludarium >Environment: System: FreeBSD4.11-RELEASE-p14 Port tree: 4-STABLE PORTNAME= freeradius PORTVERSION= 1.1.0 CATEGORIES= net >Description: Doesn't compile, marked as BROKEN for ${OSVERSION} < 500000 >How-To-Repeat: cd /usr/ports/net/freeradius ; make >Fix: It doesn't compile due 1. lack of several definitions in 4.x includes 2. gcc version 2.95.4 doesn't support -Wno-unused-label The patch follows. The added definitions are properly patched to be included on FreeBSD 4.x only. --- src/modules/rlm_otp/cardops/cryptocard.c.ORIG Thu Dec 8 02:30:54 2005 +++ src/modules/rlm_otp/cardops/cryptocard.c Sat Feb 4 18:30:55 2006 @@ -20,6 +20,10 @@ */ #include +#if (defined(__FreeBSD__) && __FreeBSD_version < 500000) +#define PRIx32 "x" /* uint32_t */ +#define SCNx32 "x" /* uint32_t */ +#endif #include #include --- src/modules/rlm_otp/otp_state.c.ORIG Sat Feb 4 18:22:14 2006 +++ src/modules/rlm_otp/otp_state.c Sat Feb 4 18:33:48 2006 @@ -28,6 +28,10 @@ #include #include +#if (defined(__FreeBSD__) && __FreeBSD_version < 500000) +#define PRIx32 "x" /* uint32_t */ +#define SCNx32 "x" /* uint32_t */ +#endif #include #include #include --- src/modules/rlm_otp/otp_cardops.c.ORIG Thu Dec 8 02:30:50 2005 +++ src/modules/rlm_otp/otp_cardops.c Sat Feb 4 18:37:22 2006 @@ -30,6 +30,9 @@ #endif #include #include +#if (defined(__FreeBSD__) && __FreeBSD_version < 500000) +#define INT32_MAX 0x7fffffff +#endif #include #include #include --- src/modules/rlm_otp/Makefile.in.ORIG Thu Dec 8 02:30:48 2005 +++ src/modules/rlm_otp/Makefile.in Sat Feb 4 18:44:06 2006 @@ -34,7 +34,7 @@ include ../rules.mak # Not part of RLM_CFLAGS to avoid propagation to subdirs -CFLAGS += -Wno-unused-label -Wno-cast-qual +CFLAGS += -Wno-cast-qual $(STATIC_OBJS): $(HEADERS) $(CARDOPS_LTLIBS) >Release-Note: >Audit-Trail: >Unformatted: