xmlsec/python-xmlsec

1.3.13: build fails

kloczek opened this issue · 2 comments

I'm using xmlsec1 1.3.1.

+ /usr/bin/python3 -sBm build -w --no-isolation
* Getting build dependencies for wheel...
* Building wheel...
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-38
creating build/lib.linux-x86_64-cpython-38/xmlsec
copying src/xmlsec/py.typed -> build/lib.linux-x86_64-cpython-38/xmlsec
copying src/xmlsec/__init__.pyi -> build/lib.linux-x86_64-cpython-38/xmlsec
copying src/xmlsec/constants.pyi -> build/lib.linux-x86_64-cpython-38/xmlsec
copying src/xmlsec/template.pyi -> build/lib.linux-x86_64-cpython-38/xmlsec
copying src/xmlsec/tree.pyi -> build/lib.linux-x86_64-cpython-38/xmlsec
running build_ext
building 'xmlsec' extension
creating build/temp.linux-x86_64-cpython-38
creating build/temp.linux-x86_64-cpython-38/home
creating build/temp.linux-x86_64-cpython-38/home/tkloczko
creating build/temp.linux-x86_64-cpython-38/home/tkloczko/rpmbuild
creating build/temp.linux-x86_64-cpython-38/home/tkloczko/rpmbuild/BUILD
creating build/temp.linux-x86_64-cpython-38/home/tkloczko/rpmbuild/BUILD/python-xmlsec-1.3.13
creating build/temp.linux-x86_64-cpython-38/home/tkloczko/rpmbuild/BUILD/python-xmlsec-1.3.13/src
/usr/bin/gcc -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -D_GNU_SOURCE -fPIC -fwrapv -fno-semantic-interposition -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -D_GNU_SOURCE -fPIC -fwrapv -fno-semantic-interposition -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -D_GNU_SOURCE -fPIC -fwrapv -fno-semantic-interposition -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -fPIC -DXMLSEC_CRYPTO_DYNAMIC_LOADING=1 -D__XMLSEC_FUNCTION__=__func__ -DXMLSEC_NO_FTP=1 -DXMLSEC_NO_MD5=1 -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_GOST2012=1 -DXMLSEC_DL_LIBLTDL=1 -DMODULE_NAME=xmlsec -DMODULE_VERSION=1.3.13 -I/usr/include/xmlsec1 -I/usr/include/libxml2 -I/usr/lib64/python3.8/site-packages/lxml/includes -I/usr/lib64/python3.8/site-packages/lxml -I/usr/lib64/python3.8/site-packages/lxml/includes/__pycache__ -I/usr/include/python3.8 -c /home/tkloczko/rpmbuild/BUILD/python-xmlsec-1.3.13/src/constants.c -o build/temp.linux-x86_64-cpython-38/home/tkloczko/rpmbuild/BUILD/python-xmlsec-1.3.13/src/constants.o -g -std=c99 -fPIC -fno-strict-aliasing -Wno-error=declaration-after-statement -Werror=implicit-function-declaration -Os
In file included from /home/tkloczko/rpmbuild/BUILD/python-xmlsec-1.3.13/src/constants.c:10:
/home/tkloczko/rpmbuild/BUILD/python-xmlsec-1.3.13/src/constants.c: In function ‘PyXmlSec_ConstantsModule_Init’:
/home/tkloczko/rpmbuild/BUILD/python-xmlsec-1.3.13/src/constants.c:304:51: error: ‘xmlSecSoap11Ns’ undeclared (first use in this function); did you mean ‘xmlSecEnc11Ns’?
  304 |     tmp = PyUnicode_FromString((const char*)(JOIN(xmlSec, name))); \
      |                                                   ^~~~~~
/home/tkloczko/rpmbuild/BUILD/python-xmlsec-1.3.13/src/common.h:21:23: note: in definition of macro ‘DO_JOIN2’
   21 | #define DO_JOIN2(X,Y) X##Y
      |                       ^
/home/tkloczko/rpmbuild/BUILD/python-xmlsec-1.3.13/src/common.h:19:19: note: in expansion of macro ‘DO_JOIN1’
   19 | #define JOIN(X,Y) DO_JOIN1(X,Y)
      |                   ^~~~~~~~
/home/tkloczko/rpmbuild/BUILD/python-xmlsec-1.3.13/src/constants.c:304:46: note: in expansion of macro ‘JOIN’
  304 |     tmp = PyUnicode_FromString((const char*)(JOIN(xmlSec, name))); \
      |                                              ^~~~
/home/tkloczko/rpmbuild/BUILD/python-xmlsec-1.3.13/src/constants.c:319:5: note: in expansion of macro ‘PYXMLSEC_ADD_NS_CONSTANT’
  319 |     PYXMLSEC_ADD_NS_CONSTANT(Soap11Ns, "SOAP11");
      |     ^~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/python-xmlsec-1.3.13/src/constants.c:304:51: note: each undeclared identifier is reported only once for each function it appears in
  304 |     tmp = PyUnicode_FromString((const char*)(JOIN(xmlSec, name))); \
      |                                                   ^~~~~~
/home/tkloczko/rpmbuild/BUILD/python-xmlsec-1.3.13/src/common.h:21:23: note: in definition of macro ‘DO_JOIN2’
   21 | #define DO_JOIN2(X,Y) X##Y
      |                       ^
/home/tkloczko/rpmbuild/BUILD/python-xmlsec-1.3.13/src/common.h:19:19: note: in expansion of macro ‘DO_JOIN1’
   19 | #define JOIN(X,Y) DO_JOIN1(X,Y)
      |                   ^~~~~~~~
/home/tkloczko/rpmbuild/BUILD/python-xmlsec-1.3.13/src/constants.c:304:46: note: in expansion of macro ‘JOIN’
  304 |     tmp = PyUnicode_FromString((const char*)(JOIN(xmlSec, name))); \
      |                                              ^~~~
/home/tkloczko/rpmbuild/BUILD/python-xmlsec-1.3.13/src/constants.c:319:5: note: in expansion of macro ‘PYXMLSEC_ADD_NS_CONSTANT’
  319 |     PYXMLSEC_ADD_NS_CONSTANT(Soap11Ns, "SOAP11");
      |     ^~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/python-xmlsec-1.3.13/src/constants.c:304:51: error: ‘xmlSecSoap12Ns’ undeclared (first use in this function); did you mean ‘xmlSecXPath2Ns’?
  304 |     tmp = PyUnicode_FromString((const char*)(JOIN(xmlSec, name))); \
      |                                                   ^~~~~~
/home/tkloczko/rpmbuild/BUILD/python-xmlsec-1.3.13/src/common.h:21:23: note: in definition of macro ‘DO_JOIN2’
   21 | #define DO_JOIN2(X,Y) X##Y
      |                       ^
/home/tkloczko/rpmbuild/BUILD/python-xmlsec-1.3.13/src/common.h:19:19: note: in expansion of macro ‘DO_JOIN1’
   19 | #define JOIN(X,Y) DO_JOIN1(X,Y)
      |                   ^~~~~~~~
/home/tkloczko/rpmbuild/BUILD/python-xmlsec-1.3.13/src/constants.c:304:46: note: in expansion of macro ‘JOIN’
  304 |     tmp = PyUnicode_FromString((const char*)(JOIN(xmlSec, name))); \
      |                                              ^~~~
/home/tkloczko/rpmbuild/BUILD/python-xmlsec-1.3.13/src/constants.c:320:5: note: in expansion of macro ‘PYXMLSEC_ADD_NS_CONSTANT’
  320 |     PYXMLSEC_ADD_NS_CONSTANT(Soap12Ns, "SOAP12");
      |     ^~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/python-xmlsec-1.3.13/src/constants.c:450:5: warning: ‘xmlSeckeyDataEcGetKlass’ is deprecated [-Wdeprecated-declarations]
  450 |     PYXMLSEC_ADD_KEYDATA_CONSTANT(KeyDataEcdsa, "ECDSA")
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/xmlsec1/xmlsec/crypto.h:25,
                 from /home/tkloczko/rpmbuild/BUILD/python-xmlsec-1.3.13/src/constants.h:16,
                 from /home/tkloczko/rpmbuild/BUILD/python-xmlsec-1.3.13/src/constants.c:11:
/usr/include/xmlsec1/xmlsec/app.h:89:49: note: declared here
   89 | XMLSEC_EXPORT XMLSEC_DEPRECATED xmlSecKeyDataId xmlSeckeyDataEcGetKlass(void);
      |                                                 ^~~~~~~~~~~~~~~~~~~~~~~
error: command '/usr/bin/gcc' failed with exit code 1

ERROR Backend subprocess exited when trying to invoke build_wheel
D3X commented

This has already been reported: #252

OK I'm closing as duplicate.
Thx 👍