Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Issue with 1.0.4 on alpine linux xmlsec 1.2.22-r1 (Reopen #26) #46

Copy link
Copy link
@StephenBrown2

Description

@StephenBrown2
Issue body actions

It appears that issue #26 has resurfaced, now that the module was rewritten in C...

I'm getting

In file included from ./src/constants.c:10:0:
    ./src/constants.c: In function 'PyXmlSec_ConstantsModule_Init':
    ./src/constants.c:278:50: error: 'xmlSecXkmsNs' undeclared (first use in this function)
         tmp = PyString_FromString((const char*)(JOIN(xmlSec, name))); \
                                                      ^
    ./src/common.h:25:23: note: in definition of macro 'DO_JOIN2'
     #define DO_JOIN2(X,Y) X##Y
                           ^
    ./src/common.h:23:19: note: in expansion of macro 'DO_JOIN1'
     #define JOIN(X,Y) DO_JOIN1(X,Y)
                       ^~~~~~~~
    ./src/constants.c:278:45: note: in expansion of macro 'JOIN'
         tmp = PyString_FromString((const char*)(JOIN(xmlSec, name))); \
                                                 ^~~~
    ./src/constants.c:287:5: note: in expansion of macro 'PYXMLSEC_ADD_NS_CONSTANT'
         PYXMLSEC_ADD_NS_CONSTANT(XkmsNs, "XKMS");
         ^~~~~~~~~~~~~~~~~~~~~~~~
    ./src/constants.c:278:50: note: each undeclared identifier is reported only once for each function it appears in
         tmp = PyString_FromString((const char*)(JOIN(xmlSec, name))); \
                                                      ^
    ./src/common.h:25:23: note: in definition of macro 'DO_JOIN2'
     #define DO_JOIN2(X,Y) X##Y
                           ^
    ./src/common.h:23:19: note: in expansion of macro 'DO_JOIN1'
     #define JOIN(X,Y) DO_JOIN1(X,Y)
                       ^~~~~~~~
    ./src/constants.c:278:45: note: in expansion of macro 'JOIN'
         tmp = PyString_FromString((const char*)(JOIN(xmlSec, name))); \
                                                 ^~~~
    ./src/constants.c:287:5: note: in expansion of macro 'PYXMLSEC_ADD_NS_CONSTANT'
         PYXMLSEC_ADD_NS_CONSTANT(XkmsNs, "XKMS");
         ^~~~~~~~~~~~~~~~~~~~~~~~
    error: command 'gcc' failed with exit status 1
    
    ----------------------------------------

Trying to pip install python-xmlsec 1.0.4 with xmlsec version 1.2.22-r1 on alpine 3.4

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.