From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Sep 11 16:30:20 2003 Return-Path: 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 22A9516A4BF for ; Thu, 11 Sep 2003 16:30:20 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 322B843FE1 for ; Thu, 11 Sep 2003 16:30:18 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h8BNUHUp008188 for ; Thu, 11 Sep 2003 16:30:17 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h8BNUHJP008187; Thu, 11 Sep 2003 16:30:17 -0700 (PDT) Resent-Date: Thu, 11 Sep 2003 16:30:17 -0700 (PDT) Resent-Message-Id: <200309112330.h8BNUHJP008187@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, Simon Barner Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D29E916A4BF for ; Thu, 11 Sep 2003 16:26:09 -0700 (PDT) Received: from mailout.informatik.tu-muenchen.de (mailout.informatik.tu-muenchen.de [131.159.0.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0FABF43FBD for ; Thu, 11 Sep 2003 16:26:09 -0700 (PDT) (envelope-from barner@in.tum.de) Received: by zi025.glhnet.mhn.de (Postfix, from userid 1000) id 8A9CC3B0E3; Fri, 12 Sep 2003 01:26:07 +0200 (CEST) Message-Id: <20030911232607.8A9CC3B0E3@zi025.glhnet.mhn.de> Date: Fri, 12 Sep 2003 01:26:07 +0200 (CEST) From: Simon Barner To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 cc: rasmus@kaj.se Subject: ports/56725: [patch, non-maintainer] web/webredirect: Fix build with gcc 2.95.4 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Simon Barner List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Sep 2003 23:30:20 -0000 >Number: 56725 >Category: ports >Synopsis: [patch, non-maintainer] web/webredirect: Fix build with gcc 2.95.4 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Thu Sep 11 16:30:16 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Simon Barner >Release: FreeBSD 4.9-PRERELEASE i386 >Organization: >Environment: System: FreeBSD zi025.glhnet.mhn.de 4.9-PRERELEASE FreeBSD 4.9-PRERELEASE #1: Thu Sep 4 20:49:53 CEST 2003 simon@zi025.glhnet.mhn.de:/usr/src/sys/compile/KISTE i386 >Description: This port was broken by the upgrade to the latest release. >How-To-Repeat: Build on -stable. >Fix: Please apply the following patch (creates 2 new patch files): --- /dev/null Fri Sep 12 01:21:45 2003 +++ files/patch-webredirect.cc Fri Sep 12 01:17:51 2003 @@ -0,0 +1,10 @@ +--- webredirect.cc.orig Fri Sep 12 00:55:12 2003 ++++ webredirect.cc Fri Sep 12 01:04:57 2003 +@@ -7,6 +7,7 @@ + #include + #include + #include ++#include + #include + #include + #include --- /dev/null Fri Sep 12 01:21:45 2003 +++ files/patch-incu::incu::log.hh Fri Sep 12 01:18:07 2003 @@ -0,0 +1,18 @@ +--- incu/incu/log.hh.orig Fri Sep 12 00:55:24 2003 ++++ incu/incu/log.hh Fri Sep 12 01:17:07 2003 +@@ -34,10 +34,15 @@ + static void setTreshold(LogGrade t) { silence = t; } + /** Boring workaround ... Without this, the first thing to get appended to + * the Log gets broken. */ ++ ++ // Does not work with gcc 2.95.4, so people with have to live with ++ // broken output :( ++#if !defined (__GNUC__) || __GNUC__ > 2 + template + std::ostream& operator << (const T& t) { + return *((std::ostream*)(this)) << t; + } ++#endif + private: + static LogGrade silence; + class DeviceMgr; >Release-Note: >Audit-Trail: >Unformatted: