[MacPorts] #41997: py32-imread @0.3.2: error: use of undeclared identifier 'PyUnicode_AsUTF8'

MacPorts noreply at macports.org
Wed Jan 1 19:37:55 PST 2014


#41997: py32-imread @0.3.2: error: use of undeclared identifier 'PyUnicode_AsUTF8'
--------------------------+-------------------------
 Reporter:  ryandesign@…  |      Owner:  stromnov@…
     Type:  defect        |     Status:  new
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:  2.2.1
 Keywords:                |       Port:  py32-imread
--------------------------+-------------------------
 py32-imread  fails to build on the Mountain Lion buildslave:

 {{{
 compile options: '-DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION
 -DPY_ARRAY_UNIQUE_SYMBOL=MahotasImread_PyArray_API_Symbol
 -I/opt/local/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2
 /site-packages/numpy/core/include
 -I/opt/local/Library/Frameworks/Python.framework/Versions/3.2/include/python3.2m
 -c'
 clang++: imread/_imread.cpp
 imread/_imread.cpp:50:12: error: use of undeclared identifier
 'PyUnicode_AsUTF8'
     return PyUnicode_AsUTF8(stro);
            ^
 1 error generated.
 imread/_imread.cpp:50:12: error: use of undeclared identifier
 'PyUnicode_AsUTF8'
     return PyUnicode_AsUTF8(stro);
            ^
 1 error generated.
 error: Command "/usr/bin/clang++ -DNDEBUG -g -fwrapv -O3 -Wall -arch
 x86_64 -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION
 -DPY_ARRAY_UNIQUE_SYMBOL=MahotasImread_PyArray_API_Symbol
 -I/opt/local/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2
 /site-packages/numpy/core/include
 -I/opt/local/Library/Frameworks/Python.framework/Versions/3.2/include/python3.2m
 -c imread/_imread.cpp -o
 build/temp.macosx-10.8-x86_64-3.2/imread/_imread.o" failed with exit
 status 1
 Command failed:  cd "/opt/local/var/macports/build
 /_opt_mports_dports_python_py-imread/py32-imread/work/imread-0.3.2" &&
 /opt/local/Library/Frameworks/Python.framework/Versions/3.2/bin/python3.2
 setup.py --no-user-cfg build
 Exit code: 1
 }}}

 The other subports built fine.

-- 
Ticket URL: <https://trac.macports.org/ticket/41997>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list