Lu Goon created BIT-1477:
----------------------------

             Summary: 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


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@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@kali:3.0.2# 


*+ERROR MESSAGE FROM CMAKE:+*


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
(v7.0.0-OD-05-005#70102)
_______________________________________________
bro-dev mailing list
[email protected]
http://mailman.icsi.berkeley.edu/mailman/listinfo/bro-dev

Reply via email to