From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Jun 1 07:00:01 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 166D02F1 for ; Sat, 1 Jun 2013 07:00:01 +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 F1850243 for ; Sat, 1 Jun 2013 07:00:00 +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 r51700Ed070647 for ; Sat, 1 Jun 2013 07:00:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r51700U1070646; Sat, 1 Jun 2013 07:00:00 GMT (envelope-from gnats) Resent-Date: Sat, 1 Jun 2013 07:00:00 GMT Resent-Message-Id: <201306010700.r51700U1070646@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Anderson Guzman Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id D04D22AA for ; Sat, 1 Jun 2013 06:55:50 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.FreeBSD.org (oldred.freebsd.org [8.8.178.121]) by mx1.freebsd.org (Postfix) with ESMTP id C2C0D220 for ; Sat, 1 Jun 2013 06:55:50 +0000 (UTC) Received: from oldred.FreeBSD.org ([127.0.1.6]) by oldred.FreeBSD.org (8.14.5/8.14.5) with ESMTP id r516tl8n072565 for ; Sat, 1 Jun 2013 06:55:47 GMT (envelope-from nobody@oldred.FreeBSD.org) Received: (from nobody@localhost) by oldred.FreeBSD.org (8.14.5/8.14.5/Submit) id r516tldM072564; Sat, 1 Jun 2013 06:55:47 GMT (envelope-from nobody) Message-Id: <201306010655.r516tldM072564@oldred.FreeBSD.org> Date: Sat, 1 Jun 2013 06:55:47 GMT From: Anderson Guzman To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/179165: OpenimageIO fail to compile X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Jun 2013 07:00:01 -0000 >Number: 179165 >Category: ports >Synopsis: OpenimageIO fail to compile >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Jun 01 07:00:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Anderson Guzman >Release: 9.1 RELEASE amd64 >Organization: Pendulo Software >Environment: FreeBSD orion.pendulosoftware.com 9.1-RELEASE FreeBSD 9.1-RELEASE #0: Thu May 30 18:41:06 VET 2013 root@orion.pendulosoftware.com:/usr/src/sys/amd64/compile/GENERIC amd64 >Description: ****** a) The port fail to compile because can't get openimageio-1.1.10.tar.gz: => Attempting to fetch https://nodeload.github.com/OpenImageIO/oiio/legacy.tar.gz/Release-1.1.10?dummy=/openimageio-1.1.10.tar.gz fetch: https://nodeload.github.com/OpenImageIO/oiio/legacy.tar.gz/Release-1.1.10?dummy=/openimageio-1.1.10.tar.gz: size mismatch: expected 9501836, actual 9501822 => Attempting to fetch http://nodeload.github.com/OpenImageIO/oiio/legacy.tar.gz/Release-1.1.10?dummy=/openimageio-1.1.10.tar.gz fetch: http://nodeload.github.com/OpenImageIO/oiio/legacy.tar.gz/Release-1.1.10?dummy=/openimageio-1.1.10.tar.gz: size mismatch: expected 9501836, actual 9501822 => Attempting to fetch http://cloud.github.com/downloads/OpenImageIO/oiio/openimageio-1.1.10.tar.gz fetch: http://cloud.github.com/downloads/OpenImageIO/oiio/openimageio-1.1.10.tar.gz: Forbidden => Attempting to fetch ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/openimageio-1.1.10.tar.gz fetch: ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/openimageio-1.1.10.tar.gz: File unavailable (e.g., file not found, no access) => Couldn't fetch it - please try to retrieve this => port manually into /usr/ports/distfiles// and try again. ****** b) if you try download the file and put manually into /usr/ports/distfiles/ not compile too, because GH_COMMIT value in Makefile located in /usr/ports/graphics/openimageio is different from that you download from nodeload.github.com/OpenImageIO/oiio/legacy.tar.gz/Release-1.1.10?dummy=/openimageio-1.1.10.tar.gz: GH_COMMIT value in Makefile currently is: f28f5c4 GH_COMMIT value in Makefile should be: d7aa9f2 and the SHA256 and SIZE in distinfo are different too: Original distinfo file: SHA256 (openimageio-1.1.10.tar.gz) = 1510287790113f0c64421623be7bf5b9317a1c9cfd6e85125bae81bc6c07a275 SIZE (openimageio-1.1.10.tar.gz) = 9501836 Should be: SHA256 (openimageio-1.1.10.tar.gz) = 171b19d98f3b8d95d600a1bdc71447d6a8675ca18bed70ebc576a68e71f73dc7 SIZE (openimageio-1.1.10.tar.gz) = 9501822 ************* c) If you use the correct openimageio-1.1.10.tar.gz (sha256 : 171b19d98f3b8d95d600a1bdc71447d6a8675ca18bed70ebc576a68e71f73dc7) and try to compile it with default GCC installation : gcc (GCC) 4.2.1 20070831 patched [FreeBSD] you get: [ 84%] Building CXX object libOpenImageIO/CMakeFiles/hash_test.dir/hash_test.cpp.o Linking CXX executable fmath_test /usr/local/lib/libOpenColorIO.so: undefined reference to `std::ctype::_M_widen_init() const@GLIBCXX_3.4.11' *** [libOpenImageIO/fmath_test] Error code 1 1 error *** [libOpenImageIO/CMakeFiles/fmath_test.dir/all] Error code 2 Linking CXX executable filesystem_test /usr/local/lib/libOpenColorIO.so: undefined reference to `std::ctype::_M_widen_init() const@GLIBCXX_3.4.11' *** [libOpenImageIO/filesystem_test] Error code 1 1 error *** [libOpenImageIO/CMakeFiles/filesystem_test.dir/all] Error code 2 Linking CXX executable imagespec_test /usr/local/lib/libOpenColorIO.so: undefined reference to `std::ctype::_M_widen_init() const@GLIBCXX_3.4.11' *** [libOpenImageIO/imagespec_test] Error code 1 1 error If you run strings /usr/lib/libstdc++.so.6 | grep GLIBC to check GLIBCXX version you get : GLIBCXX_3.4 GLIBCXX_3.4.1 GLIBCXX_3.4.2 GLIBCXX_3.4.3 GLIBCXX_3.4.4 GLIBCXX_3.4.5 GLIBCXX_3.4.6 GLIBCXX_3.4.7 GLIBCXX_3.4.8 GLIBCXX_3.4.9 GLIBCXX_FORCE_NEW Of course, with gcc (GCC) 4.2.1 20070831 isn't possible compile openimageio 1.1.10 But if you try to compile with gcc48 (FreeBSD Ports Collection) 4.8.1 20130418 (prerelease) you get: usr/ports/graphics/openimageio/work/OpenImageIO-oiio-d7aa9f2/src/ptex.imageio/ptex/PtexWriter.cpp: In member function 'virtual bool PtexWriterBase::close(Ptex::String&)': /usr/ports/graphics/openimageio/work/OpenImageIO-oiio-d7aa9f2/src/ptex.imageio/ptex/PtexWriter.cpp:326:26: error: 'unlink' was not declared in this scope unlink(_tilepath.c_str()); ^ /usr/ports/graphics/openimageio/work/OpenImageIO-oiio-d7aa9f2/src/ptex.imageio/ptex/PtexWriter.cpp: In member function 'virtual bool PtexMainWriter::close(Ptex::String&)': /usr/ports/graphics/openimageio/work/OpenImageIO-oiio-d7aa9f2/src/ptex.imageio/ptex/PtexWriter.cpp:796:25: error: 'unlink' was not declared in this scope unlink(_tmppath.c_str()); ^ /usr/ports/graphics/openimageio/work/OpenImageIO-oiio-d7aa9f2/src/ptex.imageio/ptex/PtexWriter.cpp:801:22: error: 'unlink' was not declared in this scope unlink(_path.c_str()); ^ *** [libOpenImageIO/CMakeFiles/OpenImageIO.dir/__/ptex.imageio/ptex/PtexWriter.cpp.o] Error code 1 1 error *** [libOpenImageIO/CMakeFiles/OpenImageIO.dir/all] Error code 2 1 error *** [all] Error code 2 1 error *** [do-build] Error code 1 If you run strings /usr/local/lib/gcc48/libstdc++.so.6 | grep GLIBC to check GLIBXX you get : GLIBCXX_3.4 GLIBCXX_3.4.1 GLIBCXX_3.4.2 GLIBCXX_3.4.3 GLIBCXX_3.4.4 GLIBCXX_3.4.5 GLIBCXX_3.4.6 GLIBCXX_3.4.7 GLIBCXX_3.4.8 GLIBCXX_3.4.9 GLIBCXX_3.4.10 GLIBCXX_3.4.11 GLIBCXX_3.4.12 GLIBCXX_3.4.13 GLIBCXX_3.4.14 GLIBCXX_3.4.15 GLIBCXX_3.4.16 GLIBCXX_3.4.17 GLIBCXX_3.4.18 GLIBCXX_DEBUG_MESSAGE_LENGTH GCC 4.8 have the support to compile openimageio 1.10, but don't compile too ... >How-To-Repeat: portmaster graphics/openimageio >Fix: >Release-Note: >Audit-Trail: >Unformatted: