snort-users May 2009 archive
Main Archive Page > Month Archives  > snort-users archives
snort-users: Re: [Snort-users] snort-3.0.0b3 on FreeBSD 7.2 UUID

Re: [Snort-users] snort-3.0.0b3 on FreeBSD 7.2 UUID library fail

From: Richard Bejtlich <taosecurity_at_nospam>
Date: Thu May 07 2009 - 22:53:48 GMT
To: Russ Combs <rcombs@sourcefire.com>, rmkml@free.fr


On Thu, May 7, 2009 at 5:49 PM, Russ Combs <rcombs@sourcefire.com> wrote: > After installing the uuid libs, configure still couldn't find them. (It > could find the header, but not the actual lib.) > > configure:19250: checking for uuid_generate in -luuid > configure:19285: gcc -o conftest -g -fno-strict-aliasing > -fvisibility=hidden -I/usr/local/include/lua51 -fno-strict-aliasing > -I/usr/local/include -L/usr/local/lib/lua51 -L/usr/lib conftest.c -luuid > -lm -lpthread -lrt >&5 > /usr/bin/ld: cannot find -luuid > Try this: > > export LDFLAGS="-L/usr/local/lib" > > and then configure. > > Russ

Thanks Rmkml and Russ! I got the following to work until I had to "make" (shown later)

fbsd7# setenv CPPFLAGS "-I/usr/local/lib" fbsd7# setenv LDFLAGS "-L/usr/local/lib"

fbsd7# pkg_add -r bison

fbsd7# ./configure --prefix=/usr/local/snortsp-3.0.0b3 --with-uuid-lib=e2fs

Then I encountered a new error:

fbsd7# make && make install
make all-recursive
Making all in src
Making all in s_util
Making all in include
Making all in libsbpf /bin/sh ../../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H
-I. -I../../.. -I../../.. -I../../../src/s_util/libsbpf/bpf
-I../../../src/s_util/libsbpf/net -I../../../src/s_util
-I../../../src/s_util/include -I../../../src/data_source
-I../../../src/data_source/daq -I../../../src/data_source/decode
-I../../../src/data_source/flow -I../../../src/platform
-I../../../src/comms -I../../../src/analysis -I../../../src/output
-I.. -I/usr/local/include/lua51 -I/usr/local/lib
-I/usr/local/include/lua51 -fno-strict-aliasing -I/usr/local/include
-Wall -DBUILDING_SO -Dyylval=s_bpf_lval -g -fno-strict-aliasing
-fvisibility=hidden -O2 -MT libsbpf_la-s_bpf_filter.lo -MD -MP -MF
.deps/libsbpf_la-s_bpf_filter.Tpo -c -o libsbpf_la-s_bpf_filter.lo `test -f 'bpf/s_bpf_filter.c' || echo './'`bpf/s_bpf_filter.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../..
-I../../../src/s_util/libsbpf/bpf -I../../../src/s_util/libsbpf/net
-I../../../src/s_util -I../../../src/s_util/include
-I../../../src/data_source -I../../../src/data_source/daq
-I../../../src/data_source/decode -I../../../src/data_source/flow
-I../../../src/platform -I../../../src/comms -I../../../src/analysis
-I../../../src/output -I.. -I/usr/local/include/lua51 -I/usr/local/lib
-I/usr/local/include/lua51 -fno-strict-aliasing -I/usr/local/include
-Wall -DBUILDING_SO -Dyylval=s_bpf_lval -g -fno-strict-aliasing
-fvisibility=hidden -O2 -MT libsbpf_la-s_bpf_filter.lo -MD -MP -MF
.deps/libsbpf_la-s_bpf_filter.Tpo -c bpf/s_bpf_filter.c -fPIC -DPIC
-o .libs/libsbpf_la-s_bpf_filter.o

libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../..
-I../../../src/s_util/libsbpf/bpf -I../../../src/s_util/libsbpf/net
-I../../../src/s_util -I../../../src/s_util/include
-I../../../src/data_source -I../../../src/data_source/daq
-I../../../src/data_source/decode -I../../../src/data_source/flow
-I../../../src/platform -I../../../src/comms -I../../../src/analysis
-I../../../src/output -I.. -I/usr/local/include/lua51 -I/usr/local/lib
-I/usr/local/include/lua51 -fno-strict-aliasing -I/usr/local/include
-Wall -DBUILDING_SO -Dyylval=s_bpf_lval -g -fno-strict-aliasing
-fvisibility=hidden -O2 -MT libsbpf_la-s_bpf_filter.lo -MD -MP -MF
.deps/libsbpf_la-s_bpf_filter.Tpo -c bpf/s_bpf_filter.c -o libsbpf_la-s_bpf_filter.o >/dev/null 2>&1 mv -f .deps/libsbpf_la-s_bpf_filter.Tpo .deps/libsbpf_la-s_bpf_filter.Plo /bin/sh ../../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H
-I. -I../../.. -I../../.. -I../../../src/s_util/libsbpf/bpf
-I../../../src/s_util/libsbpf/net -I../../../src/s_util
-I../../../src/s_util/include -I../../../src/data_source
-I../../../src/data_source/daq -I../../../src/data_source/decode
-I../../../src/data_source/flow -I../../../src/platform
-I../../../src/comms -I../../../src/analysis -I../../../src/output
-I.. -I/usr/local/include/lua51 -I/usr/local/lib
-I/usr/local/include/lua51 -fno-strict-aliasing -I/usr/local/include
-Wall -DBUILDING_SO -Dyylval=s_bpf_lval -g -fno-strict-aliasing
-fvisibility=hidden -O2 -MT libsbpf_la-s_gencode.lo -MD -MP -MF
.deps/libsbpf_la-s_gencode.Tpo -c -o libsbpf_la-s_gencode.lo `test -f 'bpf/s_gencode.c' || echo './'`bpf/s_gencode.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../..
-I../../../src/s_util/libsbpf/bpf -I../../../src/s_util/libsbpf/net
-I../../../src/s_util -I../../../src/s_util/include
-I../../../src/data_source -I../../../src/data_source/daq
-I../../../src/data_source/decode -I../../../src/data_source/flow
-I../../../src/platform -I../../../src/comms -I../../../src/analysis
-I../../../src/output -I.. -I/usr/local/include/lua51 -I/usr/local/lib
-I/usr/local/include/lua51 -fno-strict-aliasing -I/usr/local/include
-Wall -DBUILDING_SO -Dyylval=s_bpf_lval -g -fno-strict-aliasing
-fvisibility=hidden -O2 -MT libsbpf_la-s_gencode.lo -MD -MP -MF
.deps/libsbpf_la-s_gencode.Tpo -c bpf/s_gencode.c -fPIC -DPIC -o .libs/libsbpf_la-s_gencode.o
In file included from bpf/s_gencode.c:62: ../../../src/s_util/include/s_thread.h:36:26: error: linux/unistd.h: No such file or directory
In file included from bpf/s_gencode.c:62: ../../../src/s_util/include/s_thread.h: In function 's_gettid': ../../../src/s_util/include/s_thread.h:42: error: '__NR_gettid' undeclared (first use in this function)
../../../src/s_util/include/s_thread.h:42: error: (Each undeclared identifier is reported only once
../../../src/s_util/include/s_thread.h:42: error: for each function it appears in.)
*** Error code 1

Stop in /usr/local/src/snortsp-3.0.0b3/src/s_util/libsbpf. *** Error code 1

Stop in /usr/local/src/snortsp-3.0.0b3/src/s_util. *** Error code 1

Stop in /usr/local/src/snortsp-3.0.0b3/src. *** Error code 1

Stop in /usr/local/src/snortsp-3.0.0b3.
*** Error code 1

Stop in /usr/local/src/snortsp-3.0.0b3.

Anyone recognize that?

Thank you,

Richard



The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com

Snort-users mailing list
Snort-users@lists.sourceforge.net
Go to this URL to change user options or unsubscribe: https://lists.sourceforge.net/lists/listinfo/snort-users Snort-users list archive:
http://www.geocrawler.com/redir-sf.php3?list=snort-users