Opened 15 years ago

Closed 14 years ago

Last modified 12 years ago

#23429 closed defect (fixed)

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

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 (last modified by mf2k (Frank Schima))

(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.d*rwinports.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.

Attachments (5)

py25-pyicu.log (56.5 KB) - added by gthb (Gunnlaugur Thor Briem) 15 years ago.
output of sudo port -d install py25-pyicu > py25-pyicu.log 2>&1
Portfile-fix-ticket-23429.patch (428 bytes) - added by gthb (Gunnlaugur Thor Briem) 15 years ago.
Portfile patch fixing this issue (needs patch file in next attachment)
fix-pyicu-ticket-23429.patch (753 bytes) - added by gthb (Gunnlaugur Thor Briem) 15 years ago.
Patch for locale.cpp fixing this problem
patch-fix-ticket-23429 (790 bytes) - added by gthb (Gunnlaugur Thor Briem) 15 years ago.
Patch for locale.cpp fixing this problem, filename consistent with my Portfile patch this time
fix-pyicu-ticket-23429.2.patch (753 bytes) - added by gthb (Gunnlaugur Thor Briem) 15 years ago.

Download all attachments as: .zip

Change History (10)

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)

comment:1 in reply to:  description Changed 15 years ago by mf2k (Frank Schima)

Description: modified (diff)
Keywords: haspatch added
Port: py25-pyicu added

Replying to gunnlaugur@…:

Note that http://icu.d*rwinports.com/ says version 4.3.1 is current, but my MacPorts installed 4.3.3. No idea why;

Because that site (url purposely broken) has nothing to do with Macports and contains misinformation. Please see DarwinPorts for more information.

comment:2 Changed 15 years ago by gthb (Gunnlaugur Thor Briem)

Whoops, thanks! Sadly that site seems to enjoy better google juice (possibly because macports.org does not have an info page for each port?), and I never noticed that it was something other than just a duplicate name. This must be tripping up a lot of people.

comment:3 Changed 15 years ago by brendan2332@…

The comment for the attachment "Portfile-fix-ticket-23429.patch" references a needed patch file in "next attachment".

Where is this attachment? Thanks.

Changed 15 years ago by gthb (Gunnlaugur Thor Briem)

Patch for locale.cpp fixing this problem

Changed 15 years ago by gthb (Gunnlaugur Thor Briem)

Attachment: patch-fix-ticket-23429 added

Patch for locale.cpp fixing this problem, filename consistent with my Portfile patch this time

Changed 15 years ago by gthb (Gunnlaugur Thor Briem)

comment:4 Changed 15 years ago by gthb (Gunnlaugur Thor Briem)

The file patch-fix-ticket-23429 is the right one, please excuse the extra attachments. (This was browser testing gone wrong; I got sidetracked when filing this ticket because my Google Chrome failed to upload attachments to Trac, went off troubleshooting that and then forgot to come back here; then I filed the extraneous attachments just now, erroneously expecting the uploads to fail. Whoops.)

Last edited 12 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:5 Changed 14 years ago by nerdling (Jeremy Lavergne)

Resolution: fixed
Status: newclosed

Fixed in r70901.

Note: See TracTickets for help on using tickets.