Opened 18 months ago
Closed 10 months ago
#67518 closed defect (fixed)
py27-protobuf3 @4.21.12: error: use of undeclared identifier 'PyUnicode_AsUTF8AndSize'
Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | Jōshin <git@…> |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.8.1 |
Keywords: | Cc: | ||
Port: | py27-protobuf3 |
Description
google/protobuf/pyext/extension_dict.cc:235:7: error: use of undeclared identifier 'PyUnicode_AsUTF8AndSize' if (PyString_AsStringAndSize(arg, &name, &name_size) < 0) { ^ google/protobuf/pyext/extension_dict.cc:55:16: note: expanded from macro 'PyString_AsStringAndSize' PyUnicode_AsUTF8AndSize(ob, (sizep)))) == nullptr \ ^ 1 error generated.
Change History (4)
comment:1 Changed 18 months ago by jmroot (Joshua Root)
comment:2 Changed 13 months ago by jmroot (Joshua Root)
Apparently the last version with 2.7 support was 3.17.3, so the 27 subport could be reverted to that. However, there appears to be only one port (ola) that needs py27-protobuf3.
comment:3 Changed 10 months ago by mrdomino (Jōshin)
Proposed fix: https://github.com/macports/macports-ports/pull/22212
comment:4 Changed 10 months ago by Jōshin <git@…>
Owner: | set to Jōshin <git@…> |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
That function is only available in Python 3.3 and later.