kbandla / pydeep

Python bindings for ssdeep
Other
91 stars 33 forks source link

Installation on Mint17 #6

Closed ximerus closed 10 years ago

ximerus commented 10 years ago

Hi, I have some trouble with installation on linux mint 17.

Console output: pydeep.c: In function ‘pydeep_hash_buf’:

pydeep.c:52:15: warning: variable ‘inputStringBuffer’ set but not used [-Wunused-but-set-variable]

 PyObject *inputStringBuffer = NULL;

           ^

creating build/lib.linux-x86_64-2.7

x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/pydeep.o -lfuzzy -o build/lib.linux-x86_64-2.7/pydeep.so

/usr/bin/ld: //usr/local/lib/libfuzzy.a(fuzzy.o): relocation R_X86_64_32S against.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC`

//usr/local/lib/libfuzzy.a: error adding symbols: Bad value

collect2: error: ld returned 1 exit status

error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

---------------------------------------- Cleaning up... Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_root/pydeep/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-ip4C7r-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_root/pydeep

kbandla commented 10 years ago

@ximerus i dont have an instance of Mint to test this right away. I will test this over the weekend and update this issue. Meanwhile, if you have a way to grant me access to a mint box, that would be even better.

kbandla commented 10 years ago

Please see #7 for details on this issue. I am going to track this bug on #7. Thanks!