From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Jun 4 12:40:02 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 0ABF8BDD for ; Tue, 4 Jun 2013 12:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id D78771F66 for ; Tue, 4 Jun 2013 12:40:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r54Ce1HJ030804 for ; Tue, 4 Jun 2013 12:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r54Ce1BN030803; Tue, 4 Jun 2013 12:40:01 GMT (envelope-from gnats) Date: Tue, 4 Jun 2013 12:40:01 GMT Message-Id: <201306041240.r54Ce1BN030803@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org Cc: From: Shane Ambler Subject: Re: ports/179165: graphics/openimageio fail to compile X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Shane Ambler List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Jun 2013 12:40:02 -0000 The following reply was made to PR ports/179165; it has been noted by GNATS. From: Shane Ambler To: Anderson Guzman Cc: bug-followup@FreeBSD.org Subject: Re: ports/179165: graphics/openimageio fail to compile Date: Tue, 04 Jun 2013 22:05:24 +0930 This is a multi-part message in MIME format. --------------000808050505040709080303 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 04/06/2013 07:36, Anderson Guzman wrote: > > Hi Shane, nice to meet you and thanks for fast response ... I'll response to you between lines > >> c) The first build error would indicate that OpenColorIO was >compiled >> with gcc46 leading to a mismatch in GLIBCXX libs during link >time. > > Yes, but I dont have in my system gcc46 installed, only gcc48 and gcc from base/installation : > > - gcc (GCC) 4.2.1 20070831 patched [FreeBSD]) > - gcc48 (FreeBSD Ports Collection) 4.8.1 20130418 (prerelease) > >> Try adding -rpath ${LOCALBASE}/lib/gcc46 to your LDFLAGS or >> using the same gcc version for both. I thought the GLIBCXX_3.4.11 came from gcc46 but the same appears to be generated when building with gcc48. The rpath should end with gcc48 if you have gcc48 and not gcc46. Are you building with gcc48 by adding USE_GCC=4.8 or are you doing CC=gcc48? Using USE_GCC should add the rpath setting for you. > I tryed use the same gcc version to compile openimageio : gcc421, and gcc48 both fail to compile it. If opencolorio and openimageio are both built with gcc from the base system you might still get the GLIBCXX linking issue through boost-libs. I'll attach a patch here to fix the gcc48 compilation which I will add to the 1.1.11 update. You can either save it to /usr/ports/graphics/openimageio/files/patch-ptex.imageio_ptex_PtexWriter.cpp or wait for the update to be applied. --------------000808050505040709080303 Content-Type: text/plain; charset=UTF-8; name="patch-ptex.imageio_ptex_PtexWriter.cpp" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="patch-ptex.imageio_ptex_PtexWriter.cpp" --- ./ptex.imageio/ptex/PtexWriter.cpp.orig 2013-06-04 19:49:43.476382085 +0930 +++ ./ptex.imageio/ptex/PtexWriter.cpp 2013-06-04 19:49:48.134381870 +0930 @@ -66,6 +66,7 @@ #include #include #include +#include #include "filesystem.h" --------------000808050505040709080303--