client9 / libinjection

SQL / SQLI tokenizer parser analyzer
Other
1k stars 274 forks source link

Python bindings are broken #88

Closed jvoisin closed 9 years ago

jvoisin commented 9 years ago

I did as specified here, but it failed:

jvoisin@laptop-jvoisin 18:35 ~/dev git clone https://github.com/client9/libinjection.git
Cloning into 'libinjection'...
remote: Counting objects: 9349, done.
remote: Total 9349 (delta 0), reused 0 (delta 0), pack-reused 9349
Receiving objects: 100% (9349/9349), 5.79 MiB | 3.79 MiB/s, done.
Resolving deltas: 100% (5556/5556), done.
Checking connectivity... done.
jvoisin@laptop-jvoisin 18:35 ~/dev cd libinjection/python
jvoisin@laptop-jvoisin 18:35 ~/dev/libinjection/python python setup.py install             [master] git:libinjection
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/libinjection
copying libinjection/sqli_fingerprints.py -> build/lib.linux-x86_64-2.7/libinjection
copying libinjection/__init__.py -> build/lib.linux-x86_64-2.7/libinjection
running build_ext
building '_libinjection' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/libinjection
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c libinjection/libinjection_wrap.c -o build/temp.linux-x86_64-2.7/libinjection/libinjection_wrap.o
x86_64-linux-gnu-gcc: error: libinjection/libinjection_wrap.c: No such file or directory
x86_64-linux-gnu-gcc: fatal error: no input files
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 4
zsh: exit 1     python setup.py install
jvoisin@laptop-jvoisin 18:35 ~/dev/libinjection/python                                     [master] git:libinjection
client9 commented 9 years ago

weird! I'll take a look later today.

thanks for you report.

jvoisin commented 9 years ago

Meh, I ran the Makefile in the wrong folder; the top-level one, instead of the python one; sorry.