Date: Fri, 12 Sep 2003 01:26:07 +0200 (CEST) From: Simon Barner <barner@in.tum.de> To: FreeBSD-gnats-submit@FreeBSD.org Cc: rasmus@kaj.se Subject: ports/56725: [patch, non-maintainer] web/webredirect: Fix build with gcc 2.95.4 Message-ID: <20030911232607.8A9CC3B0E3@zi025.glhnet.mhn.de> Resent-Message-ID: <200309112330.h8BNUHJP008187@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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 <iostream> + #include <stdexcept> + #include <map> ++#include <memory> + #include <incu/error.hh> + #include <incu/log.hh> + #include <incu/socket.hh> --- /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<typename T> + std::ostream& operator << (const T& t) { + return *((std::ostream*)(this)) << t; + } ++#endif + private: + static LogGrade silence; + class DeviceMgr; >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030911232607.8A9CC3B0E3>