pythongssapi / pythongssapi/python-gssapi

python-gssapi incompatible With Cython 3.1

Open
#359 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
116
Forks
55
Avg merge
1d 24m
Merged PRs (30d)
2

Description

With the release of Cython, the installment of python-gssapi broke on Linux systems:

  building 'gssapi.raw.misc' extension
  creating build/temp.linux-x86_64-cpython-38/gssapi/raw
  gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -I/opt/rh/rh-python38/root/usr/include -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -I/opt/rh/rh-python38/root/usr/include -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Igssapi/raw -I/opt/rh/rh-python38/root/usr/include/python3.8 -c gssapi/raw/misc.c -o build/temp.linux-x86_64-cpython-38/gssapi/raw/misc.o -DHAS_GSSAPI_EXT_H
  gssapi/raw/misc.c: In function ‘__pyx_pw_6gssapi_3raw_4misc_3inquire_names_for_mech’:
  gssapi/raw/misc.c:3284:7: error: ‘for’ loop initial declarations are only allowed in C99 mode
         for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {

According to Cython devs, Cython 3.1+ requires C99 compatible C compiler:
https://github.com/cython/cython/issues/6861#issuecomment-2868999325

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the Linux installation with Cython 3.1+ and inspect the generated gssapi/raw/misc.c build path shown in the error. Check the Cython and compiler configuration involved; done means python-gssapi installs successfully with the affected Cython release on Linux.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, python
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.