Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Jun 2013 12:40:01 GMT
From:      Shane Ambler <FreeBSD@ShaneWare.Biz>
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/179165: graphics/openimageio fail to compile
Message-ID:  <201306041240.r54Ce1BN030803@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/179165; it has been noted by GNATS.

From: Shane Ambler <FreeBSD@ShaneWare.Biz>
To: Anderson Guzman <aguzman@pendulosoftware.com>
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 <algorithm>
  #include <iostream>
  #include <sstream>
 +#include <unistd.h>
  
  #include "filesystem.h"
  
 
 --------------000808050505040709080303--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306041240.r54Ce1BN030803>