Opened 15 years ago

Last modified 12 years ago

#23429 closed defect

py25-pyicu 0.8.1 compile error - build failure: 'URES_TABLE32' was not declared in this scope — at Initial Version

Reported by: gthb (Gunnlaugur Thor Briem) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: haspatch Cc:
Port: py25-pyicu

Description

(The same error comes up in py26-pyicu 0.8.1)

The identifier URES_TABLE32 has apparently been removed from ICU, so a corresponding patch on PyICU is called for, see mailing list post with such a patch.

The icu version is 4.3.3_0, also installed using MacPorts. I am on Mac OS X 10.5.8.

The salient bits of build output:

/usr/bin/gcc-4.0 -fno-strict-aliasing -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DPYICU_VER="0.8.1" -I/opt/local/include -I/opt/local/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c locale.cpp -o build/temp.macosx-10.5-i386-2.5/locale.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++
locale.cpp: In function 'PyObject* t_resourcebundle_str(t_resourcebundle*)':
locale.cpp:1006: error: 'URES_TABLE32' was not declared in this scope
locale.cpp: In function 'void _init_locale(PyObject*)':
locale.cpp:1039: error: 'URES_TABLE32' was not declared in this scope
error: command '/usr/bin/gcc-4.0' failed with exit status 1
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py25-pyicu/work/PyICU-0.8.1" && /opt/local/bin/python2.5 setup.py --no-user-cfg build " returned error 1

Note that http://icu.darwinports.com/ says version 4.3.1 is current, but my MacPorts installed 4.3.3. No idea why; I did not monkey around with it. Dates imply that this identifier was removed between 4.3.1 and 4.3.2.

Change History (2)

Changed 15 years ago by gthb (Gunnlaugur Thor Briem)

Attachment: py25-pyicu.log added

output of sudo port -d install py25-pyicu > py25-pyicu.log 2>&1

Changed 15 years ago by gthb (Gunnlaugur Thor Briem)

Portfile patch fixing this issue (needs patch file in next attachment)

Note: See TracTickets for help on using tickets.