Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 878329 - dev-python/protobuf-python-3.20.3: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
Summary: dev-python/protobuf-python-3.20.3: error: invalid use of incomplete type ‘PyF...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Arfrever Frehtes Taifersar Arahesis
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-26 03:04 UTC by Michał Górny
Modified: 2022-10-26 22:35 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
dev-python:protobuf-python-3.20.3:20221026-025837.log (dev-python:protobuf-python-3.20.3:20221026-025837.log,94.45 KB, text/plain)
2022-10-26 03:04 UTC, Michał Górny
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-10-26 03:04:03 UTC
Created attachment 825473 [details]
dev-python:protobuf-python-3.20.3:20221026-025837.log

x86_64-pc-linux-gnu-g++ -shared -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -march=znver2 --param=l1-cache-size=32 --param=l1-cache-line-size=64 -O2 -pipe -frecord-gcc-switches build/temp.linux-x86_64-cpython-311/google/protobuf/internal/api_implementation.o -L/usr/lib64 -o build/lib.linux-x86_64-cpython-311/google/protobuf/internal/_api_implementation.cpython-311-x86_64-linux-gnu.so
google/protobuf/pyext/descriptor.cc: In function ‘bool google::protobuf::python::_CalledFromGeneratedFile(int)’:
google/protobuf/pyext/descriptor.cc:103:18: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
  103 |     frame = frame->f_back;
      |                  ^~
In file included from /usr/include/python3.11/Python.h:42,
                 from ./google/protobuf/pyext/descriptor.h:37,
                 from google/protobuf/pyext/descriptor.cc:33:
/usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
   22 | typedef struct _frame PyFrameObject;
      |                ^~~~~~

(and so on)
Comment 1 Larry the Git Cow gentoo-dev 2022-10-26 22:35:35 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e06df67ca46cffed156e1786fafd31777e7c11d

commit 8e06df67ca46cffed156e1786fafd31777e7c11d
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-10-26 22:35:25 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-10-26 22:35:25 +0000

    dev-python/protobuf-python: backport Python 3.11 patch to 3.20.3 too
    
    Closes: https://bugs.gentoo.org/878329
    Signed-off-by: Sam James <sam@gentoo.org>

 ...on-4.21.8-python311.patch => protobuf-python-3.20.3-python311.patch} | 0
 dev-python/protobuf-python/protobuf-python-3.20.3.ebuild                | 1 +
 dev-python/protobuf-python/protobuf-python-4.21.8.ebuild                | 2 +-
 3 files changed, 2 insertions(+), 1 deletion(-)