Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not default compile on Ubuntu 12.04 #1

Open
gamelinux opened this issue Feb 4, 2013 · 0 comments
Open

Does not default compile on Ubuntu 12.04 #1

gamelinux opened this issue Feb 4, 2013 · 0 comments

Comments

@gamelinux
Copy link
Owner

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 topcre_compile'
/home/edward/code/git/pads/src/identification.c:170: undefined reference to pcre_study' identification.o: In functionget_app_name':
/home/edward/code/git/pads/src/identification.c:358: undefined reference to pcre_copy_substring' identification.o: In functionpcre_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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant