Date: Sat, 3 Jan 2004 23:37:21 -0800 (PST) From: Chris BeHanna <chris@behanna.org> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/60884: [PATCH] Fix liveMedia build with GCC-3.3.3 Message-ID: <200401040737.i047bLvL062099@www.freebsd.org> Resent-Message-ID: <200401040740.i047eFPV088788@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 60884 >Category: ports >Synopsis: [PATCH] Fix liveMedia build with GCC-3.3.3 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Jan 03 23:40:14 PST 2004 >Closed-Date: >Last-Modified: >Originator: Chris BeHanna >Release: 4.9 >Organization: Western Pennsylvania Pizza Disposal Unit >Environment: FreeBSD topperwein.pennasoft.com 4.9-STABLE FreeBSD 4.9-STABLE #1: Sat Dec 13 22:33:53 EST 2003 root@:/raid0/stable/usr/obj/raid5/4stable/src/sys/TOPPERWEIN i386 >Description: The liveMedia build fails when compiled with GCC-3.3.3 because several files include strstream.h, which has been shoved into the backward/ directory in the GCC-3.3.3 STL. >How-To-Repeat: Configure portupgrade to use /usr/local/bin/g++33 to build ports, or set CXX to /usr/local/bin/g++33 in /etc/make.conf and try to compile /usr/ports/net/liveMedia on a 4.9 machine. >Fix: The following patches fix this problem: --- groupsock/Groupsock.cpp.orig Sun Jan 4 02:25:43 2004 +++ groupsock/Groupsock.cpp Sun Jan 4 02:26:54 2004 @@ -26,7 +26,11 @@ #if defined(__WIN32__) || defined(_WIN32) #include <strstrea.h> #else -#include <strstream.h> +# if !defined(__GNUC__) || (__GNUC__ < 3) +# include <strstream.h> +# else +# include <sstream> +# endif #endif #include <stdio.h> and --- groupsock/NetInterface.cpp.orig Sun Jan 4 02:27:05 2004 +++ /groupsock/NetInterface.cpp Sun Jan 4 02:27:27 2004 @@ -24,7 +24,11 @@ #if defined(__WIN32__) || defined(_WIN32) #include <strstrea.h> #else -#include <strstream.h> +# if !defined(__GNUC__) || (__GNUC__ < 3) +# include <strstream.h> +# else +# include <sstream> +# endif #endif ////////// NetInterface ////////// >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401040737.i047bLvL062099>