Skip to content

Does not default compile on Ubuntu 12.04 #1

@gamelinux

Description

@gamelinux

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions