Date: Sat, 1 Jun 2013 06:55:47 GMT From: Anderson Guzman <aguzman@pendulosoftware.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/179165: OpenimageIO fail to compile Message-ID: <201306010655.r516tldM072564@oldred.FreeBSD.org> Resent-Message-ID: <201306010700.r51700U1070646@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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<char>::_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<char>::_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<char>::_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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306010655.r516tldM072564>