ports/60884: [PATCH] Fix liveMedia build with GCC-3.3.3

Chris BeHanna chris at behanna.org
Sun Jan 4 07:40:25 UTC 2004


>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:



More information about the freebsd-ports-bugs mailing list