From owner-freebsd-ports@FreeBSD.ORG Mon Nov 19 03:00:31 2007 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 77C5A16A468 for ; Mon, 19 Nov 2007 03:00:31 +0000 (UTC) (envelope-from stephen@math.missouri.edu) Received: from cauchy.math.missouri.edu (cauchy.math.missouri.edu [128.206.184.213]) by mx1.freebsd.org (Postfix) with ESMTP id 4A97A13C468 for ; Mon, 19 Nov 2007 03:00:31 +0000 (UTC) (envelope-from stephen@math.missouri.edu) Received: from laptop2.gateway.2wire.net (cauchy.math.missouri.edu [128.206.184.213]) by cauchy.math.missouri.edu (8.14.2/8.14.1) with ESMTP id lAJ30JrZ025191 for ; Sun, 18 Nov 2007 21:00:20 -0600 (CST) (envelope-from stephen@math.missouri.edu) Message-ID: <4740FC46.1070405@math.missouri.edu> Date: Sun, 18 Nov 2007 21:00:22 -0600 From: Stephen Montgomery-Smith User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.9) Gecko/20071107 SeaMonkey/1.1.6 MIME-Version: 1.0 To: FreeBSD Ports List References: <4740FB72.5010206@math.missouri.edu> In-Reply-To: <4740FB72.5010206@math.missouri.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: stlport X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Nov 2007 03:00:31 -0000 Stephen Montgomery-Smith wrote: > I am trying to get the devel/stlport to work on FreeBSD 7.0. A start is > to add the line > USE_GCC= 3.4 > in the appropriate place in the Makefile, but then it becomes clear that > some additional change is needed to stlport/config/stl_gcc.h. This file > is the most convoluted mess of #if's I have ever seen. The attached > patch works on my particular system, but clearly it is a fudge and won't > be universal to other situations. > > Is anyone working on this? If not, would you guys be kind enough to > make my patch more proper? > > Thanks, > Stephen Just to clarify, the appropriate bits I added were: +# define tempi386 i386 +# undef i386 +# define _STLP_NATIVE_INCLUDE_PATH /usr/local/lib/gcc/i386-portbld-freebsd7.0/3.4.6/include/c++ +# define _STLP_NATIVE_OLD_STREAMS_INCLUDE_PATH /usr/local/lib/gcc/i386-portbld-freebsd7.0/3.4.6/include/c++ +# define i386 tempi386 and +#define _STLP_NO_MEMBER_TEMPLATE_CLASSES