Skip to content

Compile Error #5

@Shortfinga

Description

@Shortfinga

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

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