Trying to compile pynids gave me fits. Thankfully I could ask for help ;-).
gcc -pthread -shared build/temp.linux-x86_64-2.5/nidsmodule.o -L../libnids/lib -L../libpcap/lib -lnids -lpcap -o build/lib.linux-x86_64-2.5/nids.so
/usr/bin/ld: /usr/local/lib/libnids.a(libnids.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libnids.a: could not read symbols: Bad value
1) http://jon.oberheide.org/pynids/ - download
2) cd libnids-1.24
3) cd CFLAGS=-fPIC ./configure --disable-libglib --disable-libnet --disable-shared
4) python setup.py build
Friday, April 29, 2011
Subscribe to:
Post Comments (Atom)
Just wanted to clear something up for step 3.
ReplyDelete2) cd libnids-1.24
3) ./configure CFLAGS=-fPIC --disable-libglib --disable-libnet --disable-shared
4) make ; cd ..
5) python setup.py build
Thank you for putting this together Chris