From rodrigc@crodrigues.org  Fri Jul 30 01:36:06 2004
Return-Path: <rodrigc@crodrigues.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id B79D516A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 30 Jul 2004 01:36:06 +0000 (GMT)
Received: from sccrmhc12.comcast.net (sccrmhc12.comcast.net [204.127.202.56])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 5CFA443D60
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 30 Jul 2004 01:36:06 +0000 (GMT)
	(envelope-from rodrigc@crodrigues.org)
Received: from h00609772adf0.ne.client2.attbi.com ([66.30.114.143])
          by comcast.net (sccrmhc12) with ESMTP
          id <2004073001355801200fqttae>; Fri, 30 Jul 2004 01:35:59 +0000
Received: from h00609772adf0.ne.client2.attbi.com (localhost [127.0.0.1])
	by h00609772adf0.ne.client2.attbi.com (8.12.11/8.12.11) with ESMTP id i6U1ZuE2020461;
	Thu, 29 Jul 2004 21:35:56 -0400 (EDT)
	(envelope-from rodrigc@h00609772adf0.ne.client2.attbi.com)
Received: (from rodrigc@localhost)
	by h00609772adf0.ne.client2.attbi.com (8.12.11/8.12.11/Submit) id i6U1ZoaA020460;
	Thu, 29 Jul 2004 21:35:50 -0400 (EDT)
	(envelope-from rodrigc)
Message-Id: <200407300135.i6U1ZoaA020460@h00609772adf0.ne.client2.attbi.com>
Date: Thu, 29 Jul 2004 21:35:50 -0400 (EDT)
From: Craig Rodrigues <rodrigc@crodrigues.org>
Reply-To: Craig Rodrigues <rodrigc@crodrigues.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc: hendrik@scholz.net
Subject: x11-wm/fluxbox fix for gcc 3.4
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         69782
>Category:       ports
>Synopsis:       x11-wm/fluxbox fix for gcc 3.4
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 30 01:40:26 GMT 2004
>Closed-Date:    Fri Jul 30 15:23:04 GMT 2004
>Last-Modified:  Fri Jul 30 15:23:04 GMT 2004
>Originator:     Craig Rodrigues
>Release:        FreeBSD 5.2-CURRENT i386
>Organization:
>Environment:
System: FreeBSD dibbler.crodrigues.org 5.2-CURRENT FreeBSD 5.2-CURRENT #23: Thu Jul 29 00:07:59 EDT 2004 rodrigc@dibbler.crodrigues.org:/usr/obj/usr/src/sys/MYKERNEL1 i386


	
>Description:
x11-wm/fluxbox doesn't compile with gcc 3.4.
The attached patch fixes Resource.hh so that things compile.

>How-To-Repeat:
	
>Fix:

	


# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	patch-src-Resource.hh
#
echo x - patch-src-Resource.hh
sed 's/^X//' >patch-src-Resource.hh << 'END-of-patch-src-Resource.hh'
X--- src/Resource.hh.orig	Thu Jul 29 21:04:30 2004
X+++ src/Resource.hh	Thu Jul 29 21:22:14 2004
X@@ -66,16 +66,9 @@
X {
X public:	
X 	Resource(ResourceManager &rm, T val, 
X-	const std::string &name, const std::string &altname):
X-	Resource_base(name, altname),
X-	m_value(val), m_defaultval(val),
X-	m_rm(rm)
X-	{
X-		m_rm.addResource(*this); // add this to resource handler
X-	}
X-	virtual ~Resource() {
X-		m_rm.removeResource(*this); // remove this from resource handler
X-	}
X+	const std::string &name, const std::string &altname);
X+
X+	virtual ~Resource();
X 
X 	inline void setDefaultValue() {  m_value = m_defaultval; }
X 	void setFromString(const char *strval);
X@@ -128,5 +121,18 @@
X 	static bool m_init;
X 	ResourceList m_resourcelist;
X };
X+
X+template <typename T>
X+Resource<T>::Resource(ResourceManager &rm, T val, const std::string &name, 
X+			const std::string &altname):
X+	Resource_base(name, altname), m_value(val), m_defaultval(val), 
X+	m_rm(rm) {
X+                m_rm.addResource(*this); // add this to resource handler
X+}
X+
X+template <typename T>
X+Resource<T>::~Resource() {
X+                m_rm.removeResource(*this); // remove this from resource handler
X+}
X 
X #endif //_RESOURCE_HH_
END-of-patch-src-Resource.hh
exit

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: krion 
State-Changed-When: Fri Jul 30 15:22:58 GMT 2004 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=69782 
>Unformatted:
