ports/74550: [FIX] devel/stlport do not utilize latest gcc's c++ feature
Sepherosa Ziehau
sepherosa at softhome.net
Tue Nov 30 10:00:39 UTC 2004
>Number: 74550
>Category: ports
>Synopsis: [FIX] devel/stlport do not utilize latest gcc's c++ feature
>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: Tue Nov 30 10:00:38 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator: Sepherosa Ziehau
>Release: 5.3 release
>Organization:
4heed
>Environment:
FreeBSD sephe-route 5.3-RELEASE FreeBSD 5.3-RELEASE #0: Mon Nov 8 14:58:20 CST2004 root at sephe-route:/usr/obj/usr/src/sys/ROUTE i386
>Description:
devel/stlport make self compile on 5.3-release(or let's say gcc3.4.2) by short-circuit 'template' keyword related error with define _STLP_DONT_USE_NESTED_TCLASS_THROUGHT_TPARAM, but more correct solution is to use the 'template' keyword, which is default turned off in stlport for gcc, by commenting out _STLP_NO_MEMBER_TEMPLATE_KEYWORD macro for 5.3-release(gcc3.4.2).
>How-To-Repeat:
>Fix:
--- files/patch-stlport::config::stl_gcc.h.orig Mon Nov 8 19:46:10 2004
+++ files/patch-stlport::config::stl_gcc.h Mon Nov 29 18:50:40 2004
@@ -1,14 +1,13 @@
--- stlport/config/stl_gcc.h.orig Sun Nov 2 16:59:11 2003
-+++ stlport/config/stl_gcc.h Mon Nov 8 19:15:42 2004
-@@ -7,11 +7,21 @@
++++ stlport/config/stl_gcc.h Mon Nov 29 18:42:05 2004
+@@ -7,11 +7,20 @@
# define _STLP_USE_GLIBC
#endif
-+#if defined(__FreeBSD__) && (__FreeBSD_cc_version >= 530001)
-+# define _STLP_DONT_USE_NESTED_TCLASS_THROUGHT_TPARAM 1
++#if !defined(__FreeBSD__) || (defined(__FreeBSD__) && (__FreeBSD_cc_version < 530001))
+ # define _STLP_NO_MEMBER_TEMPLATE_KEYWORD
+#endif
+
- # define _STLP_NO_MEMBER_TEMPLATE_KEYWORD
-# if defined(__FreeBSD__) || defined (__hpux) || defined(__amigaos__) || ( defined(__OS2__) && defined(__EMX__) )
+#if defined (__hpux) || defined(__amigaos__) || ( defined(__OS2__) && defined(__EMX__) )
@@ -24,7 +23,7 @@
#ifdef __USLC__
# include <config/stl_sco.h>
-@@ -81,7 +91,7 @@
+@@ -81,7 +90,7 @@
# endif
@@ -33,7 +32,7 @@
#ifndef __MINGW32__
# define _STLP_NO_NATIVE_MBSTATE_T 1
#endif
-@@ -267,7 +277,7 @@
+@@ -267,7 +276,7 @@
# define _STLP_NATIVE_INCLUDE_PATH ../g++-v3
# define _STLP_NATIVE_OLD_STREAMS_INCLUDE_PATH ../g++-v3/backward
# else
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list