Compile Error

736 views
Skip to first unread message

Stephen Keeler

unread,
Jul 31, 2014, 2:21:37 PM7/31/14
to barnyar...@googlegroups.com
I'm using this document to setup a snort / barnyard2 instance and I'm running into a problem compiling barnyard2

http://www.rivy.org/2013/03/building-barnyard2-from-source/

Here's the error that I'm receiving when making from a Ubuntu 14.04LTS system

make[3]: Entering directory `/home/skeeler/firnsy-barnyard2-272eaf7/src'
/bin/bash ../libtool  --tag=CC   --mode=link gcc  -g -O2 -fno-strict-aliasing -Wall  -L/usr/lib/x86_64-linux-gnu -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 -lmysqlclient -lz -lpcap -lnsl -lm -lm
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  -L/usr/lib/x86_64-linux-gnu output-plugins/libspo.a input-plugins/libspi.a sfutil/libsfutil.a -lmysqlclient -lz -lpcap -lnsl -lm
/usr/bin/ld: barnyard2.o: undefined reference to symbol 'pthread_sigmask@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/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 `/home/skeeler/firnsy-barnyard2-272eaf7/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/skeeler/firnsy-barnyard2-272eaf7/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/skeeler/firnsy-barnyard2-272eaf7'
make: *** [all] Error 2

I'm not sure if I'm missing anything

beenph

unread,
Jul 31, 2014, 8:40:21 PM7/31/14
to barnyar...@googlegroups.com
Seem's like your libpthread is missing pthread_sigmask.

Might want to check if you have a upgrade avail for libpthread on your distro.
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "barnyard2-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to barnyard2-use...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Stephen Keeler

unread,
Aug 1, 2014, 9:00:40 AM8/1/14
to barnyar...@googlegroups.com
Tried installing all of the libpthread packages I could find for Ubuntu and I still have the same error message.

beenph

unread,
Aug 1, 2014, 5:52:40 PM8/1/14
to barnyar...@googlegroups.com
Do you need prelude? if not do a make distclean and re-run configure
without --enable-prelude
Reply all
Reply to author
Forward
0 new messages