Bug 182007 - graphics/openimageio: ormatspec.cpp:994:9: error: no matching member function for call to 'print' doc.print (result, "");
Summary: graphics/openimageio: ormatspec.cpp:994:9: error: no matching member function...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Tijl Coosemans
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-11 07:50 UTC by O. Hartmann
Modified: 2013-10-29 23:10 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description O. Hartmann 2013-09-11 07:50:00 UTC
Port graphics/openimageio fails due to the below shown error (new libc++ issue??)


[...]

-- Build files have been written to: /usr/ports/graphics/openimageio/work/.build
===>  Building for openimageio-1.2.1_1
Scanning dependencies of target OpenImageIO
[  0%] Building CXX object libOpenImageIO/CMakeFiles/OpenImageIO.dir/exif.cpp.o
[  1%] Building CXX object libOpenImageIO/CMakeFiles/OpenImageIO.dir/formatspec.cpp.o
/usr/ports/graphics/openimageio/work/OpenImageIO-oiio-f7908a3/src/libOpenImageIO/formatspec.cpp:994:9: error: no matching member function for call to
      'print'
    doc.print (result, "");
    ~~~~^~~~~
/usr/ports/graphics/openimageio/work/OpenImageIO-oiio-f7908a3/src/include/pugixml.hpp:536:8: note: candidate function not viable: no known conversion
      from 'std::ostringstream' (aka 'basic_ostringstream<char>') to 'OpenImageIO::v1_2::pugi::xml_writer &' for 1st argument
                void print(xml_writer& writer, const char_t* indent = PUGIXML_TEXT("\t"), unsigned int flags = format_default, xml_encoding enco...
                     ^
/usr/ports/graphics/openimageio/work/OpenImageIO-oiio-f7908a3/src/include/pugixml.hpp:540:8: note: candidate function not viable: no known conversion
      from 'std::ostringstream' (aka 'basic_ostringstream<char>') to 'std::basic_ostream<char, std::char_traits<char> > &' for 1st argument
                void print(std::basic_ostream<char, std::char_traits<char> >& os, const char_t* indent = PUGIXML_TEXT("\t"), unsigned int flags ...
                     ^
/usr/ports/graphics/openimageio/work/OpenImageIO-oiio-f7908a3/src/include/pugixml.hpp:541:8: note: candidate function not viable: no known conversion
      from 'std::ostringstream' (aka 'basic_ostringstream<char>') to 'std::basic_ostream<wchar_t, std::char_traits<wchar_t> > &' for 1st argument
                void print(std::basic_ostream<wchar_t, std::char_traits<wchar_t> >& os, const char_t* indent = PUGIXML_TEXT("\t"), unsigned int ...
                     ^
1 error generated.
*** Error code 1

How-To-Repeat: Build on most recent CURRENT system with no libstdc++ and having iconv from base (no conversters/libiconv installed).
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-09-11 07:50:07 UTC
Maintainer of graphics/openimageio,

Please note that PR ports/182007 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/182007

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2013-09-11 07:50:08 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 3 Tijl Coosemans freebsd_committer freebsd_triage 2013-10-24 10:08:25 UTC
Responsible Changed
From-To: freebsd-ports-bugs->tijl

Take.
Comment 4 dfilter service freebsd_committer freebsd_triage 2013-10-29 23:02:12 UTC
Author: tijl
Date: Tue Oct 29 23:02:03 2013
New Revision: 332021
URL: http://svnweb.freebsd.org/changeset/ports/332021

Log:
  - Update to 1.2.2.
  - Fix build with libc++.
  - Support staging.
  - Move bits from py-openimageio to openimageio.
  
  PR:		ports/182007
  Submitted by:	Shane Ambler <FreeBSD@ShaneWare.Biz> (maintainer)

Added:
  head/graphics/openimageio/files/patch-include_pugixml.hpp   (contents, props changed)
  head/graphics/openimageio/files/patch-include_sysutil.h   (contents, props changed)
Modified:
  head/graphics/openimageio/Makefile
  head/graphics/openimageio/distinfo
  head/graphics/openimageio/pkg-plist
  head/graphics/openimageio/pkg-plist-pybind
  head/graphics/py-openimageio/Makefile
Directory Properties:
  head/graphics/openimageio/pkg-descr   (props changed)

Modified: head/graphics/openimageio/Makefile
==============================================================================
--- head/graphics/openimageio/Makefile	Tue Oct 29 22:33:41 2013	(r332020)
+++ head/graphics/openimageio/Makefile	Tue Oct 29 23:02:03 2013	(r332021)
@@ -1,63 +1,59 @@
 # Created by: Shane Ambler <FreeBSD@Shaneware.biz>
 # $FreeBSD$
 
-PORTNAME?=	openimageio
-PORTVERSION=	1.2.1
-PORTREVISION?=	1
+PORTNAME=	openimageio
+PORTVERSION=	1.2.2
+PORTREVISION?=	0
 CATEGORIES?=	graphics multimedia
 
-MAINTAINER=	FreeBSD@Shaneware.biz
-COMMENT=	OpenImageIO graphics library
+MAINTAINER?=	FreeBSD@Shaneware.biz
+COMMENT?=	OpenImageIO graphics library
 
-LICENSE?=	BSD
-
-LIB_DEPENDS?=	libIlmImf.so:${PORTSDIR}/graphics/OpenEXR \
-		libboost_thread.so:${PORTSDIR}/devel/boost-libs \
-		libhdf5.so:${PORTSDIR}/science/hdf5-18 \
-		libopencv_legacy.so:${PORTSDIR}/graphics/opencv \
-		libopenjpeg.so:${PORTSDIR}/graphics/openjpeg \
-		libwebp.so:${PORTSDIR}/graphics/webp
+LICENSE=	BSD
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	OpenImageIO
 GH_PROJECT=	oiio
 GH_TAGNAME=	Release-${PORTVERSION}
-GH_COMMIT=	f7908a3
+GH_COMMIT=	f9d8f1b
 WRKSRC=		${WRKDIR}/OpenImageIO-oiio-${GH_COMMIT}/src
 
 # fbm also installs bin/idiff
 CONFLICTS=	fbm-[0-9]*
 
 USES=		cmake:outsource
-CMAKE_ARGS?=	-DBUILDSTATIC:BOOL=OFF \
+CMAKE_ARGS=	-DBUILDSTATIC:BOOL=OFF \
 		-DLINKSTATIC:BOOL=OFF \
 		-DNOTHREADS:BOOL=OFF \
 		-DUSE_TBB:BOOL=OFF \
 		-DSTOP_ON_WARNING:BOOL=OFF
 
-USE_LDCONFIG=	yes
-
-.if defined(OIIO_PYBIND)
-PLIST=		${PKGDIR}/pkg-plist-pybind
-CMAKE_ARGS+=	-DUSE_PYTHON:BOOL=ON
-CMAKE_ARGS+=	-DOIIO_BUILD_TOOLS:BOOL=OFF
-.else
-PLIST=		${PKGDIR}/pkg-plist
-CMAKE_ARGS+=	-DUSE_PYTHON:BOOL=OFF
-CMAKE_ARGS+=	-DOIIO_BUILD_TOOLS:BOOL=ON
-.endif
-
-.if !defined(OIIO_PYBIND)
 OPTIONS_DEFINE=		DOCS IMAGEVIEWER OCIO
-OPTIONS_DEFAULT=	DOCS IMAGEVIEWER OCIO
+OPTIONS_DEFAULT=	IMAGEVIEWER OCIO
+OPTIONS_SUB=		yes
 
 IMAGEVIEWER_DESC=	Build image viewer
 OCIO_DESC=		Colour management support
-.endif
 
-NO_STAGE=	yes
 .include <bsd.port.options.mk>
 
+.if ${SLAVE_PORT} == no
+LIB_DEPENDS=	libIlmImf.so:${PORTSDIR}/graphics/OpenEXR \
+		libboost_thread.so:${PORTSDIR}/devel/boost-libs \
+		libhdf5.so:${PORTSDIR}/science/hdf5-18 \
+		libopencv_legacy.so:${PORTSDIR}/graphics/opencv \
+		libopenjpeg.so:${PORTSDIR}/graphics/openjpeg \
+		libwebp.so:${PORTSDIR}/graphics/webp
+USE_LDCONFIG=	yes
+CMAKE_ARGS+=	-DUSE_PYTHON:BOOL=OFF -DOIIO_BUILD_TOOLS:BOOL=ON
+.else
+LIB_DEPENDS=	libOpenImageIO.so:${PORTSDIR}/graphics/openimageio \
+		libboost_python.so:${PORTSDIR}/devel/boost-python-libs
+USE_PYTHON=	2.6+
+PLIST=		${PKGDIR}/pkg-plist-pybind
+CMAKE_ARGS+=	-DUSE_PYTHON:BOOL=ON -DOIIO_BUILD_TOOLS:BOOL=OFF
+.endif
+
 .if ${PORT_OPTIONS:MDOCS}
 CMAKE_ARGS+=	-DINSTALL_DOCS:BOOL=ON
 .else
@@ -69,22 +65,20 @@ USE_GL=		glew
 USE_QT4=	corelib gui opengl qmake_build moc_build rcc_build uic_build
 CMAKE_ARGS+=	-DUSE_QT:BOOL=ON -DUSE_OPENGL:BOOL=ON
 CMAKE_ENV+=	QTDIR=${QT_PREFIX} QT_INCLUDES=${QT_INCDIR}
-PLIST_SUB+=	IMAGEVIEWER=""
 .else
 CMAKE_ARGS+=	-DUSE_OPENGL:BOOL=OFF -DUSE_QT:BOOL=OFF
-PLIST_SUB+=	IMAGEVIEWER="@comment "
 .endif
 
 .if ${PORT_OPTIONS:MOCIO}
 CMAKE_ARGS+=	-DUSE_OCIO:BOOL=ON
-LIB_DEPENDS+=	OpenColorIO:${PORTSDIR}/graphics/opencolorio
+LIB_DEPENDS+=	libOpenColorIO.so:${PORTSDIR}/graphics/opencolorio
 .else
 CMAKE_ARGS+=	-DUSE_OCIO:BOOL=OFF
 .endif
 
 post-install:
-.if !defined(OIIO_PYBIND)
-	cd ${PREFIX}/lib && ${LN} -sf libOpenImageIO.so.1.2 libOpenImageIO.so.1
+.if ${SLAVE_PORT} == no
+	${LN} -sf libOpenImageIO.so.1.2 ${STAGEDIR}${PREFIX}/lib/libOpenImageIO.so.1
 .endif
 
 .include <bsd.port.mk>

Modified: head/graphics/openimageio/distinfo
==============================================================================
--- head/graphics/openimageio/distinfo	Tue Oct 29 22:33:41 2013	(r332020)
+++ head/graphics/openimageio/distinfo	Tue Oct 29 23:02:03 2013	(r332021)
@@ -1,2 +1,2 @@
-SHA256 (openimageio-1.2.1.tar.gz) = 030f4247c2c2a576f5611989bf656baf502f3bfaeb6e9ae37f3b5d3a5e5c97b7
-SIZE (openimageio-1.2.1.tar.gz) = 12380093
+SHA256 (openimageio-1.2.2.tar.gz) = 85891b3cac5bcc724ec42b1f46ff990f84ecc3887dd04743ad38961efacf2414
+SIZE (openimageio-1.2.2.tar.gz) = 12383666

Added: head/graphics/openimageio/files/patch-include_pugixml.hpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/openimageio/files/patch-include_pugixml.hpp	Tue Oct 29 23:02:03 2013	(r332021)
@@ -0,0 +1,25 @@
+--- include/pugixml.hpp.orig	2013-09-30 19:25:21.000000000 +0200
++++ include/pugixml.hpp	2013-10-27 20:41:36.000000000 +0100
+@@ -27,22 +27,6 @@
+ {
+ 	struct bidirectional_iterator_tag;
+ 
+-#ifdef __SUNPRO_CC
+-	// Sun C++ compiler has a bug which forces template argument names in forward declarations to be the same as in actual definitions
+-	template <class _T> class allocator;
+-	template <class _charT> struct char_traits;
+-	template <class _charT, class _Traits> class basic_istream;
+-	template <class _charT, class _Traits> class basic_ostream;
+-	template <class _charT, class _Traits, class _Allocator> class basic_string;
+-#else
+-	// Borland C++ compiler has a bug which forces template argument names in forward declarations to be the same as in actual definitions
+-	template <class _Ty> class allocator;
+-	template <class _Ty> struct char_traits;
+-	template <class _Elem, class _Traits> class basic_istream;
+-	template <class _Elem, class _Traits> class basic_ostream;
+-	template <class _Elem, class _Traits, class _Ax> class basic_string;
+-#endif
+-
+ 	// Digital Mars compiler has a bug which requires a forward declaration for explicit instantiation (otherwise type selection is messed up later, producing link errors)
+ 	// Also note that we have to declare char_traits as a class here, since it's defined that way
+ #ifdef __DMC__

Added: head/graphics/openimageio/files/patch-include_sysutil.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/openimageio/files/patch-include_sysutil.h	Tue Oct 29 23:02:03 2013	(r332021)
@@ -0,0 +1,10 @@
+--- include/sysutil.h.orig	2013-09-24 15:26:10.604215091 +0930
++++ include/sysutil.h	2013-09-24 15:26:16.727214989 +0930
+@@ -41,6 +41,7 @@
+ #define OPENIMAGEIO_SYSUTIL_H
+ 
+ #include <string>
++#include <time.h>
+ 
+ #ifdef __MINGW32__
+ #include <malloc.h> // for alloca

Modified: head/graphics/openimageio/pkg-plist
==============================================================================
--- head/graphics/openimageio/pkg-plist	Tue Oct 29 22:33:41 2013	(r332020)
+++ head/graphics/openimageio/pkg-plist	Tue Oct 29 23:02:03 2013	(r332021)
@@ -39,7 +39,7 @@ include/OpenImageIO/version.h
 lib/libOpenImageIO.so
 lib/libOpenImageIO.so.1
 lib/libOpenImageIO.so.1.2
-lib/libOpenImageIO.so.1.2.1
+lib/libOpenImageIO.so.1.2.2
 %%PORTDOCS%%%%DOCSDIR%%/CHANGES
 %%PORTDOCS%%%%DOCSDIR%%/LICENSE
 %%PORTDOCS%%%%DOCSDIR%%/openimageio.pdf

Modified: head/graphics/openimageio/pkg-plist-pybind
==============================================================================
--- head/graphics/openimageio/pkg-plist-pybind	Tue Oct 29 22:33:41 2013	(r332020)
+++ head/graphics/openimageio/pkg-plist-pybind	Tue Oct 29 23:02:03 2013	(r332021)
@@ -1 +1,3 @@
 %%PYTHON_SITELIBDIR%%/OpenImageIO.so
+@dirrmtry %%PYTHON_SITELIBDIR%%
+@dirrmtry %%PYTHON_LIBDIR%%

Modified: head/graphics/py-openimageio/Makefile
==============================================================================
--- head/graphics/py-openimageio/Makefile	Tue Oct 29 22:33:41 2013	(r332020)
+++ head/graphics/py-openimageio/Makefile	Tue Oct 29 23:02:03 2013	(r332021)
@@ -1,26 +1,16 @@
 # Created by: Shane Ambler
 # $FreeBSD$
 
-PORTNAME=	openimageio
-PORTREVISION=	1
 CATEGORIES=	graphics multimedia python
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
 COMMENT=	OpenImageIO python bindings
 
-LICENSE=	BSD
-
-LIB_DEPENDS=	OpenImageIO:${PORTSDIR}/graphics/openimageio \
-		boost_python:${PORTSDIR}/devel/boost-python-libs
-
 MASTERDIR=	${.CURDIR}/../openimageio
+OPTIONS_EXCLUDE=DOCS IMAGEVIEWER OCIO
 
-USE_PYTHON=	2.6+
-
-OIIO_PYBIND=	yes
-
-NO_STAGE=	yes
 do-install:
-	${INSTALL_LIB} ${BUILD_WRKSRC}/python/OpenImageIO.so ${PYTHON_SITELIBDIR}/
+	@${MKDIR} -p ${STAGEDIR}${PYTHON_SITELIBDIR}
+	${INSTALL_LIB} ${BUILD_WRKSRC}/python/OpenImageIO.so ${STAGEDIR}${PYTHON_SITELIBDIR}
 
 .include "${MASTERDIR}/Makefile"
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 5 Tijl Coosemans freebsd_committer freebsd_triage 2013-10-29 23:02:41 UTC
State Changed
From-To: feedback->closed

Fixed in r332021.