Open Bug 1879889 Opened 2 years ago Updated 2 years ago

[python-nss] FTBFS with Python 3.12

Categories

(NSS :: Tools, defect, P5)

Tracking

(Not tracked)

ASSIGNED

People

(Reporter: mcepl, Assigned: mcepl)

References

Details

Attachments

(2 files)

No description provided.
Attachment #9379703 - Attachment is patch: true
Assignee: nobody → mcepl

When building python-nss with python 3.12 it fails (openSUSE/Tubmleweed):

[ 28s] + /usr/bin/python3.12 setup.py build '--executable=/usr/bin/python3.12 -s'
[ 28s] /home/abuild/rpmbuild/BUILD/python-nss-1.0.1/setup.py:45: SyntaxWarning: invalid escape sequence '\s'
[ 28s] version_re = re.compile("^\s*version\s*=\s*'"['"]")
[ 28s] /home/abuild/rpmbuild/BUILD/python-nss-1.0.1/setup.py:188: SyntaxWarning: invalid escape sequence '.'
[ 28s] """
[ 28s] src/py_nspr_error.c: In function ‘set_nspr_error’:
[ 28s] src/py_nspr_error.c:189:23: error: macro "va_start" requires 2 arguments, but only 1 given
[ 28s] 189 | va_start(vargs);
[ 28s] | ^
[ 28s] In file included from /usr/include/python3.12/bytesobject.h:10,
[ 28s] from /usr/include/python3.12/Python.h:50,
[ 28s] from src/py_nspr_error.c:6:
[ 28s] /usr/lib64/gcc/x86_64-suse-linux/13/include/stdarg.h:50: note: macro "va_start" defined here
[ 28s] 50 | #define va_start(v,l) __builtin_va_start(v,l)
[ 28s] |
[ 28s] src/py_nspr_error.c:189:9: error: ‘va_start’ undeclared (first use in this function)
[ 28s] 189 | va_start(vargs);
[ 28s] | ^~~~~~~~
[ 28s] src/py_nspr_error.c:189:9: note: each undeclared identifier is reported only once for each function it appears in
[ 28s] src/py_nspr_error.c: In function ‘set_cert_verify_error’:
[ 28s] src/py_nspr_error.c:225:23: error: macro "va_start" requires 2 arguments, but only 1 given
[ 28s] 225 | va_start(vargs);
[ 28s] | ^
[ 28s] /usr/lib64/gcc/x86_64-suse-linux/13/include/stdarg.h:50: note: macro "va_start" defined here
[ 28s] 50 | #define va_start(v,l) __builtin_va_start(v,l)
[ 28s] |
[ 28s] src/py_nspr_error.c:225:9: error: ‘va_start’ undeclared (first use in this function)
[ 28s] 225 | va_start(vargs);
[ 28s] | ^~~~~~~~
[ 28s] error: command '/usr/bin/gcc' failed with exit code 1
[ 28s] error: Bad exit status from /var/tmp/rpm-tmp.s7LpL0 (%build)

Severity: -- → S4
Status: NEW → ASSIGNED
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: