Project

General

Profile

[Prelude] Barnyard2 make installation with enable-prelude option

Added by yasey omal 4 months ago

I'm using the Prelude OSS 4.1 Prelude VA given in CentOS 7.
When I compile barnyard2 with enable-prelude option it worked fine.

checking for libprelude-config... /bin/libprelude-config
checking for libprelude - version >= 0.9.6... yes

But when I going to make installation, it triggered some errors.
/bin/sh ../libtool  --tag=CC   --mode=link gcc  -g -O2 -fno-strict-aliasing -Wall   -o barnyard2 barnyard2.o debug.o decode.o log.o log_text.o map.o mstring.o parser.o plugbase.o spooler.o strlcatu.o strlcpyu.o twofish.o util.o output-plugins/libspo.a input-plugins/libspi.a sfutil/libsfutil.a -lpcap -lnsl -lm -lm  -L/usr/lib64 -lprelude -lgnutls -lltdl -ldl
libtool: link: gcc -g -O2 -fno-strict-aliasing -Wall -o barnyard2 barnyard2.o debug.o decode.o log.o log_text.o map.o mstring.o parser.o plugbase.o spooler.o strlcatu.o strlcpyu.o twofish.o util.o  output-plugins/libspo.a input-plugins/libspi.a sfutil/libsfutil.a -lpcap -lnsl -lm -L/usr/lib64 -lprelude -lgnutls -lltdl -ldl
/bin/ld: barnyard2.o: undefined reference to symbol 'pthread_sigmask@@GLIBC_2.2.5'
//usr/lib64/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[3]: *** [barnyard2] Error 1
make[3]: Leaving directory `/usr/local/src/barnyard2/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/barnyard2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/barnyard2'
make: *** [all] Error 2

Please help :(


Replies (2)

RE: [Prelude] Barnyard2 make installation with enable-prelude option - Added by yasey omal 4 months ago

This has been solved. Problem with the pthread. CFLAGS='-lpthread' was needed before ./configure when compiling the barnyard2 source.

RE: [Prelude] Barnyard2 make installation with enable-prelude option - Added by Thomas ANDREJAK 4 months ago

Hello

It seems that you are missing -lpthread in the gcc command line. Do you try to open an issue on barnyard2 side ?

If you want this to use Snort, I recommand you to use Suricata directly. better faster stronger and with a fully working prelude connector

    (1-2/2)