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

Error while compiling: ‘GlobalVariables’ was not declared in this scope #7

Closed
kipras opened this issue Apr 27, 2016 · 3 comments
Closed

Comments

@kipras
Copy link

kipras commented Apr 27, 2016

When compiling against libmodsecurity https://github.com/SpiderLabs/ModSecurity/tree/1539a8c3efaf51f8109155df9a17e611fb04fd55 i get this error:

modsecurity/modsecurity_wrap.cxx: In function ‘int wrap_new_Collections(PyObject, PyObject_)’:
modsecurity/modsecurity_wrap.cxx:15036:3: error: ‘GlobalVariables’ was not declared in this scope
GlobalVariables *arg1 = (GlobalVariables *) 0 ;
^
modsecurity/modsecurity_wrap.cxx:15036:3: note: suggested alternative:
In file included from /usr/local/modsecurity/include/modsecurity/transaction/collections.h:30:0,
from modsecurity/modsecurity_wrap.cxx:4466:
/usr/local/modsecurity/include/modsecurity/transaction/global_variables.h:86:7: note: ‘modsecurity::transaction::GlobalVariables’
class GlobalVariables :
^

@zimmerle
Copy link
Contributor

Hi @kipras,

What is your version for:

  • Python
  • Swig
  • gcc

@kipras
Copy link
Author

kipras commented Apr 27, 2016

Hey,

Python 2.7.6
SWIG Version 2.0.11
gcc (Ubuntu 4.8.4-2ubuntu1~14.04.1) 4.8.4

Note, that after replacing GlobalVariables with modsecurity::transaction::GlobalVariables in modsecurity/modsecurity_wrap.cxx - modsecurity binding compiled successfully using python setup.py build_ext --inplace.

And the only function that was broken was the _wrap_new_Collections() function, other functions already used modsecurity::transaction::GlobalVariables.

@zimmerle
Copy link
Contributor

zimmerle commented Sep 3, 2018

closing in favor of #13

@zimmerle zimmerle closed this as completed Sep 3, 2018
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