[Bro-Dev] [JIRA] (BIT-1477) Compile Bro IDS on Raspberry Pi 2

Lu Goon (JIRA) jira at bro-tracker.atlassian.net
Wed Sep 16 18:13:00 PDT 2015

    [ https://bro-tracker.atlassian.net/browse/BIT-1477?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=22105#comment-22105 ] 

Lu Goon commented on BIT-1477:

it actually looks like this is not a problem with pthreads at all, but
with the following check that tries to set BROPATH.

Just from looking at the Cmakelist source, I actually do nit really get
what the problem could be - however... since this has to do with building
the docs, could you edit the root CMakeLists.txt in the bro 2.4.1 folder,
and remove the line


and try to build again and see if it works?

> Compile Bro IDS on Raspberry Pi 2
> ---------------------------------
>                 Key: BIT-1477
>                 URL: https://bro-tracker.atlassian.net/browse/BIT-1477
>             Project: Bro Issue Tracker
>          Issue Type: Problem
>          Components: Bro
>    Affects Versions: 2.3, 2.4
>         Environment: Kali 2.0 for ARM HF and Ubuntu Mate for ARMHF
>            Reporter: Lu Goon
>              Labels: compile, pi, raspberry
> Trying to build BRO-IDS on raspberry PI 2 that is running either Kali Linux 2.0 ARM or Ubuntu Mate 15.04 ARM. When I get to the pthread library the CMake errors out looking for the -lpthreads library instead of the -lpthread library. Would like to know where can I edit the CMAKE file to account for pthread instead of pthreads. See information below:
> *+PTHREAD is installed on RPi2:+*
> root at kali:3.0.2# /sbin/ldconfig -p | grep pthread
> 	libpthread.so.0 (libc6,hard-float, OS ABI: Linux 2.6.32) => /lib/arm-linux-gnueabihf/libpthread.so.0
> 	libevent_pthreads-2.0.so.5 (libc6,hard-float) => /usr/lib/arm-linux-gnueabihf/libevent_pthreads-2.0.so.5
> root at kali:3.0.2# 
> Run Build Command:"/usr/bin/make" "cmTryCompileExec67693562/fast"
> /usr/bin/make -f CMakeFiles/cmTryCompileExec67693562.dir/build.make CMakeFiles/cmTryCompileExec67693562.dir/build
> make[1]: Entering directory '/root/Projects/BRO-IDS/bro-2.3.2/build/CMakeFiles/CMakeTmp'
> /usr/bin/cmake -E cmake_progress_report /root/Projects/BRO-IDS/bro-2.3.2/build/CMakeFiles/CMakeTmp/CMakeFiles 1
> Building C object CMakeFiles/cmTryCompileExec67693562.dir/CheckFunctionExists.c.o
> /usr/bin/cc   -Wall -Wno-unused -DCHECK_FUNCTION_EXISTS=pthread_create   -o CMakeFiles/cmTryCompileExec67693562.dir/CheckFunctionExists.c.o   -c /usr/share/cmake-3.0/Modules/CheckFunctionExists.c
> Linking C executable cmTryCompileExec67693562
> /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec67693562.dir/link.txt --verbose=1
> /usr/bin/cc   -Wall -Wno-unused -DCHECK_FUNCTION_EXISTS=pthread_create    CMakeFiles/cmTryCompileExec67693562.dir/CheckFunctionExists.c.o  -o cmTryCompileExec67693562 -rdynamic -lpthreads 
> /usr/bin/ld: cannot find -lpthreads
> collect2: error: ld returned 1 exit status
> CMakeFiles/cmTryCompileExec67693562.dir/build.make:88: recipe for target 'cmTryCompileExec67693562' failed
> make[1]: Leaving directory '/root/Projects/BRO-IDS/bro-2.3.2/build/CMakeFiles/CMakeTmp'
> make[1]: *** [cmTryCompileExec67693562] Error 1
> Makefile:118: recipe for target 'cmTryCompileExec67693562/fast' failed
> make: *** [cmTryCompileExec67693562/fast] Error 2

This message was sent by Atlassian JIRA

More information about the bro-dev mailing list