Bug#1144962: qpid-proton: FTBFS due to missing PyString_FromString

Sebastian Andrzej Siewior <[email protected]>
Newsgroups gmane.linux.debian.devel.bugs.rc
Message-ID <[email protected]>
Package: qpid-proton
Version: 0.37.0-9
Severity: serious
Tags: ftbfs

I tried to rebuild qpid-proton against openssl 4 and noticed that it
doesn't build right now at all:

| make[3]: Leaving directory '/build/reproducible-path/qpid-proton-0.37.0/.pybuild/cpython3_3.14/build'
| make  -f python/CMakeFiles/cproton.dir/build.make python/CMakeFiles/cproton.dir/build
| make[3]: Entering directory '/build/reproducible-path/qpid-proton-0.37.0/.pybuild/cpython3_3.14/build'
| [ 99%] Building C object python/CMakeFiles/cproton.dir/CMakeFiles/cproton.dir/cprotonPYTHON_wrap.c.o
| cd /build/reproducible-path/qpid-proton-0.37.0/.pybuild/cpython3_3.14/build/python && /usr/bin/x86_64-linux-gnu-gcc -Dcproton_EXPORTS -I/build/reproducible-path/qpid-proton-0.37.0/.pybuild/c python3_3.14/build/c/include -I/usr/include/python3.14 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/qpid-proton-0.37.0=. -fstack-protector-strong - fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -fvisibility=hidden -std=c99 -fPIC -MD -MT python/CMakeFiles/cproton.dir/CMakeFiles/c proton.dir/cprotonPYTHON_wrap.c.o -MF CMakeFiles/cproton.dir/CMakeFiles/cproton.dir/cprotonPYTHON_wrap.c.o.d -o CMakeFiles/cproton.dir/CMakeFiles/cproton.dir/cprotonPYTHON_wrap.c.o -c /build /reproducible-path/qpid-proton-0.37.0/.pybuild/cpython3_3.14/build/python/CMakeFiles/cproton.dir/cprotonPYTHON_wrap.c
| /build/reproducible-path/qpid-proton-0.37.0/.pybuild/cpython3_3.14/build/python/CMakeFiles/cproton.dir/cprotonPYTHON_wrap.c: In function ‘pn_pytracer’:
| /build/reproducible-path/qpid-proton-0.37.0/.pybuild/cpython3_3.14/build/python/CMakeFiles/cproton.dir/cprotonPYTHON_wrap.c:3846:23: error: implicit declaration of function ‘PyString_FromStr ing’; did you mean ‘PyLong_FromString’? [-Wimplicit-function-declaration]
|  3846 |     PyObject *pymsg = PyString_FromString(message);
|       |                       ^~~~~~~~~~~~~~~~~~~
|       |                       PyLong_FromString
| /build/reproducible-path/qpid-proton-0.37.0/.pybuild/cpython3_3.14/build/python/CMakeFiles/cproton.dir/cprotonPYTHON_wrap.c:3846:23: error: initialization of ‘PyObject *’ {aka ‘struct _objec t *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
| make[3]: *** [python/CMakeFiles/cproton.dir/build.make:82: python/CMakeFiles/cproton.dir/CMakeFiles/cproton.dir/cprotonPYTHON_wrap.c.o] Error 1
| make[3]: Leaving directory '/build/reproducible-path/qpid-proton-0.37.0/.pybuild/cpython3_3.14/build'
| make[2]: *** [CMakeFiles/Makefile2:3848: python/CMakeFiles/cproton.dir/all] Error 2
| make[2]: Leaving directory '/build/reproducible-path/qpid-proton-0.37.0/.pybuild/cpython3_3.14/build'
| make[1]: *** [Makefile:149: all] Error 2

Maybe this broke during python transition and PyUnicode_FromString()
would be the right thing to use.

Sebastian
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.