Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
StephenBrown2 opened this issue Feb 16, 2017 · 1 comment
Closed

Comments

@StephenBrown2
Copy link

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

bgaifullin added a commit that referenced this issue Feb 17, 2017
Fixed compilation error with xmlsec > 1.2.20 #46
@bgaifullin
Copy link
Collaborator

Thank you for your report.
the issue was fixed in 1.0.5 (it is available from pypi now)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants