[Pkg-phototools-devel] Bug#719173: opencolorio: FTBFS on kFreeBSD: ocioconvert has undefined references

2013-08-23 Thread Petr Salinger

Control: tags -1 + patch - help

Hi.

Simple || GLIBC suffices, see bellow.

It would also be nice if you can ask upstream
to include this change.

Thanks in advance

Petr

--- opencolorio-1.0.8~dfsg0.orig/export/OpenColorIO/OpenColorABI.h.in
+++ opencolorio-1.0.8~dfsg0/export/OpenColorIO/OpenColorABI.h.in
@@ -65,7 +65,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE

 // If supported, define OCIOEXPORT, OCIOHIDDEN
 // (used to choose which symbols to export from OpenColorIO)
-#if defined __linux__ || __APPLE__
+#if defined __linux__ || __APPLE__ || __GLIBC__
 #if __GNUC__ = 4
 #define OCIOEXPORT __attribute__ ((visibility(default)))
 #define OCIOHIDDEN __attribute__ ((visibility(hidden)))

___
Pkg-phototools-devel mailing list
Pkg-phototools-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-phototools-devel


[Pkg-phototools-devel] Bug#719173: opencolorio: FTBFS on kFreeBSD: ocioconvert has undefined references

2013-08-08 Thread Aaron M. Ucko
Source: opencolorio
Version: 1.0.8~dfsg0-1
Severity: serious
Justification: fails to build from source

Builds of opencolorio on kFreeBSD have been failing, because
ocioconvert is hitting undefined reference errors:

  CMakeFiles/ocioconvert.dir/main.cpp.o:(.gcc_except_table+0x1ec): undefined 
reference to `typeinfo for OpenColorIO::v1::Exception'
  CMakeFiles/ocioconvert.dir/main.cpp.o: In function `main':
  /«PKGBUILDDIR»/src/apps/ocioconvert/main.cpp:153: undefined reference to 
`OpenColorIO::v1::GetCurrentConfig()'
  /«PKGBUILDDIR»/src/apps/ocioconvert/main.cpp:156: undefined reference to 
`OpenColorIO::v1::Config::getProcessor(char const*, char const*) const'
  /«PKGBUILDDIR»/src/apps/ocioconvert/main.cpp:159: undefined reference to 
`OpenColorIO::v1::PackedImageDesc::PackedImageDesc(float*, long, long, long, 
long, long, long)'
  /«PKGBUILDDIR»/src/apps/ocioconvert/main.cpp:162: undefined reference to 
`OpenColorIO::v1::Processor::apply(OpenColorIO::v1::ImageDesc) const'
  /«PKGBUILDDIR»/src/apps/ocioconvert/main.cpp:159: undefined reference to 
`OpenColorIO::v1::PackedImageDesc::~PackedImageDesc()'
  /«PKGBUILDDIR»/src/apps/ocioconvert/main.cpp:159: undefined reference to 
`OpenColorIO::v1::PackedImageDesc::~PackedImageDesc()'
  collect2: error: ld returned 1 exit status
  make[3]: *** [src/apps/ocioconvert/ocioconvert] Error 1

Could you please take a look?

Thanks!

___
Pkg-phototools-devel mailing list
Pkg-phototools-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-phototools-devel