When compiling on Ubuntu 12.04, the last compile fails:
gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)
...
gcc -g -O2 -L/usr/lib/x86_64-linux-gnu -lpcre -o pads pads.o storage.o identification.o packet.o monnet.o mac-resolution.o configuration.o util.o ../lib/bstring/libbstring.a output/liboutput.a -lpcap
identification.o: In function parse_raw_signature': /home/edward/code/git/pads/src/identification.c:163: undefined reference to
pcre_compile'
/home/edward/code/git/pads/src/identification.c:170: undefined reference to pcre_study' identification.o: In function
get_app_name':
/home/edward/code/git/pads/src/identification.c:358: undefined reference to pcre_copy_substring' identification.o: In function
pcre_identify':
/home/edward/code/git/pads/src/identification.c:292: undefined reference to `pcre_exec'
collect2: ld returned 1 exit status
make[1]: *** [pads] Error 1
To get it to compile is easy, but a hard one to find maybe if your not wondered in compiling land. Just move the "-lpcre" to the end, like:
$ gcc -g -O2 -L/usr/lib/x86_64-linux-gnu -o pads pads.o storage.o identification.o packet.o monnet.o mac-resolution.o configuration.o util.o ../lib/bstring/libbstring.a output/liboutput.a -lpcap -lpcre
And bob is your uncle!
A patch for a fix is welcome!