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

Compile Error #5

Open
Shortfinga opened this issue Nov 28, 2013 · 3 comments
Open

Compile Error #5

Shortfinga opened this issue Nov 28, 2013 · 3 comments

Comments

@Shortfinga
Copy link

Hi I tried to install pylibinjection in order to install glastopf afterwards. I installed glastopf via pip successfully but wanted to switch to the developement version. So I removed glastopf via pip and tried to build pylibinjection. But I get an error while "python setup.py install" a error occured:

running build
running build_ext
cythoning src/pylibinjection.pyx to src/pylibinjection.c
warning: src/pylibinjection.pxd:103:44: Function signature does not match previous declaration
building 'pylibinjection' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/opt/libinjection/c -I/usr/include/python2.7 -c src/pylibinjection.c -o build/temp.linux-x86_64-2.7/src/pylibinjection.o
src/pylibinjection.c: In function ‘__pyx_pf_14pylibinjection_detect_sqli’:
src/pylibinjection.c:770:3: error: unknown type name ‘sfilter’
src/pylibinjection.c:791:19: error: ‘sfilter’ undeclared (first use in this function)
src/pylibinjection.c:791:19: note: each undeclared identifier is reported only once for each function it appears in
src/pylibinjection.c:791:28: error: expected expression before ‘)’ token
src/pylibinjection.c:827:3: warning: implicit declaration of function ‘libinjection_sqli_init’ [-Wimplicit-function-declaration]
src/pylibinjection.c:836:3: warning: implicit declaration of function ‘libinjection_is_sqli’ [-Wimplicit-function-declaration]
src/pylibinjection.c:848:3: warning: implicit declaration of function ‘libinjection_sqli_check_fingerprint’ [-Wimplicit-function-declaration]
src/pylibinjection.c:860:41: error: request for member ‘reason’ in something not a structure or union
src/pylibinjection.c:871:51: error: request for member ‘fingerprint’ in something not a structure or union
error: command 'gcc' failed with exit status 1

Yes I deleted src/pylibinjection.c and the same error occurs.

Versions:
python: 2.7.3
gcc: 4.7.2
cython: 0.19.2

Thanks
Shortfinga

@johnnykv
Copy link
Member

johnnykv commented Dec 8, 2013

@glaslos Do you have any hints for this issue? (it might be a version mismatch?)

@glaslos
Copy link
Member

glaslos commented Dec 11, 2013

See #6

@johnnykv
Copy link
Member

@Shortfinga this issue was fixed with /pull/8. Please try the following to install the newest version of pylibinjection:

$ pip install cython
$ git clone --recursive https://github.com/glastopf/pylibinjection.git
$ cd pylibinjection
$ python setup.py install

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

3 participants