Skip to content

'xmlSecMSCngTransformEcdsaSha224Id': undeclared identifier #935

@TomiBelan

Description

@TomiBelan

I'm trying to update the windows build of python-xmlsec to use xmlsec 1.3.7. (Discussion in xmlsec/python-xmlsec#353)

The compile is failing with this error:

  building 'xmlsec' extension
  creating build\temp.win-arm64-cpython-310\Release\a\python-xmlsec\python-xmlsec\src
  "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.43.34808\bin\HostARM64\ARM64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -D__XMLSEC_FUNCTION__=__FUNCTION__ -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_XKMS=1 -DXMLSEC_NO_CRYPTO_DYNAMIC_LOADING=1 -DXMLSEC_CRYPTO_MSCNG=1 -DUNICODE=1 -D_UNICODE=1 -DLIBXML_STATIC=1 -DLIBXSLT_STATIC=1 -DXMLSEC_STATIC=1 -Dinline=__inline -DMODULE_NAME=xmlsec -DMODULE_VERSION=1.3.16.dev22+g8d159c3 -IC:\a\python-xmlsec\python-xmlsec\build\tmp\libs\iconv-1.18-1.win-arm64\include -IC:\a\python-xmlsec\python-xmlsec\build\tmp\libs\libxml2-2.11.9-3.win-arm64\include -IC:\a\python-xmlsec\python-xmlsec\build\tmp\libs\libxslt-1.1.39.win-arm64\include -IC:\a\python-xmlsec\python-xmlsec\build\tmp\libs\xmlsec-1.3.7.win-arm64\include -IC:\a\python-xmlsec\python-xmlsec\build\tmp\libs\zlib-1.3.1.win-arm64\include -IC:\a\python-xmlsec\python-xmlsec\build\tmp\libs\xmlsec-1.3.7.win-arm64\include\xmlsec -IC:\Users\runneradmin\AppData\Local\Temp\build-env-eb83oray\lib\site-packages\lxml\inc
  constants.c
  C:\a\python-xmlsec\python-xmlsec\src\constants.c(509): error C2065: 'xmlSecMSCngTransformEcdsaSha224Id': undeclared identifier
  C:\a\python-xmlsec\python-xmlsec\src\constants.c(520): error C2065: 'xmlSecMSCngTransformHmacRipemd160Id': undeclared identifier
  C:\a\python-xmlsec\python-xmlsec\src\constants.c(523): error C2065: 'xmlSecMSCngTransformHmacSha224Id': undeclared identifier
  C:\a\python-xmlsec\python-xmlsec\src\constants.c(529): error C2065: 'xmlSecTransformRsaMd5Id': undeclared identifier
  C:\a\python-xmlsec\python-xmlsec\src\constants.c(533): error C2065: 'xmlSecTransformRsaRipemd160Id': undeclared identifier
  C:\a\python-xmlsec\python-xmlsec\src\constants.c(536): error C2065: 'xmlSecMSCngTransformRsaSha224Id': undeclared identifier
  C:\a\python-xmlsec\python-xmlsec\src\constants.c(548): error C2065: 'xmlSecMSCngTransformRipemd160Id': undeclared identifier
  C:\a\python-xmlsec\python-xmlsec\src\constants.c(552): error C2065: 'xmlSecMSCngTransformSha224Id': undeclared identifier
  error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.43.34808\\bin\\HostARM64\\ARM64\\cl.exe' failed with exit code 2
  ERROR Backend subprocess exited when trying to invoke build_wheel
  Error: Command ['python', '-m', 'build', 'C:\\a\\python-xmlsec\\python-xmlsec', '--wheel', '--outdir=C:\\Users\\runneradmin\\AppData\\Local\\Temp\\cibw-run-8eynj59i\\cp310-win_arm64\\built_wheel'] failed with code 1. 

Warnings stripped. Full log: https://github.com/TomiBelan/python-xmlsec/actions/runs/16181170346/job/45677965876

Some of these missing identifiers (MD5, RIPEMD160) might depend on build config, but they should be enabled, because this xmlsec was built with: cscript configure.js lib="$env:ZLIB_LIB;$env:ICONV_LIB;$env:XML_LIB;$env:SSL_LIB;$env:XSLT_LIB" include="$env:ZLIB_INC;$env:ICONV_INC;$env:XML_INC;$env:SSL_INC;$env:XSLT_INC" iconv=yes xslt=yes unicode=yes static=yes with-dl=no legacy-crypto=yes werror=no

And xmlSecMSCngTransformEcdsaSha224Id really looks fishy. I don't think it's due to any build options. This is the only occurrence in the repo:

$ grep -r xmlSecMSCngTransformHmacSha224Id
include/xmlsec/mscng/symbols.h:#define xmlSecTransformHmacSha224Id             xmlSecMSCngTransformHmacSha224Id

This (python-xmlsec\src\constants.c) is just the first file, there might be more undeclared identifiers later.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions