ports/179165: graphics/openimageio fail to compile
Shane Ambler
FreeBSD at ShaneWare.Biz
Tue Jun 4 12:40:02 UTC 2013
The following reply was made to PR ports/179165; it has been noted by GNATS.
From: Shane Ambler <FreeBSD at ShaneWare.Biz>
To: Anderson Guzman <aguzman at pendulosoftware.com>
Cc: bug-followup at 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--
More information about the freebsd-ports-bugs
mailing list