Snort mailing list archives

Re: Snort 2.8.5.2 on Solaris 10 (SPARC) - make error


From: "Randal T. Rioux" <randy () procyonlabs com>
Date: Tue, 12 Jan 2010 23:18:00 -0500

Thanks, Todd. That fixed it!

I'm not familiar with the rt library. Not having much luck searching for a
two letter string on the Web, either. Is there a good resource somewhere
with explanations of such POSIX libs?

Randy


On Tue, January 12, 2010 9:43 pm, Todd Wease wrote:
Hi Randy,

Try adding -lrt to CFLAGS:
$ CFLAGS="-lrt" ./configure ...
Looks like Solaris may require this.  We'll have to add this to
configure.in.

Todd


Randal T. Rioux wrote:
Adding --enable-reload to the ./configure line cause the following error
when running make. Any ideas?

Thanks,
Randy

<snip>
gcc -g -O0 -mcpu=v9 -Wall -o snort debug.o decode.o log.o mstring.o
parser.o profiler.o plugbase.o snort.o snprintf.o strlcatu.o strlcpyu.o
tag.o util.o detect.o signature.o mempool.o sf_sdlist.o fpcreate.o
fpdetect.o pcrm.o byte_extract.o sfthreshold.o packet_time.o
event_wrapper.o event_queue.o inline.o ppm.o log_text.o
detection_filter.o
rate_filter.o  -L/usr/local/lib output-plugins/libspo.a
detection-plugins/libspd.a dynamic-plugins/libdynamic.a
preprocessors/libspp.a parser/libparser.a target-based/libtarget_based.a
preprocessors/HttpInspect/libhttp_inspect.a
preprocessors/Stream5/libstream5.a sfutil/libsfutil.a
/usr/local/lib/libpcre.so -lpcap -lsocket -lnsl -lm -ldl -lpthread
-R/usr/local/lib -R/usr/local/lib
Undefined                       first referenced
 symbol                             in file
nanosleep                           snort.o
ld: fatal: Symbol referencing errors. No output written to snort
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `snort'
Current working directory /usr/share/src/snort-2.8.5.2/src
*** Error code 1
The following command caused the error:
failcom='exit 1'; \
for f in x $MAKEFLAGS; do \
  case $f in \
    *=* | --[!k]*);; \
    *k*) failcom='fail=yes';; \
  esac; \
done; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
list='sfutil win32 output-plugins detection-plugins dynamic-plugins
preprocessors parser dynamic-preprocessors target-based
dynamic-examples';
for subdir in $list; do \
  echo "Making $target in $subdir"; \
  if test "$subdir" = "."; then \
    dot_seen=yes; \
    local_target="$target-am"; \
  else \
    local_target="$target"; \
  fi; \
  (cd $subdir && make  $local_target) \
  || eval $failcom; \
done; \
if test "$dot_seen" = "no"; then \
  make  "$target-am" || exit 1; \
fi; test -z "$fail"
make: Fatal error: Command failed for target `all-recursive'
Current working directory /usr/share/src/snort-2.8.5.2/src
*** Error code 1
The following command caused the error:
failcom='exit 1'; \
for f in x $MAKEFLAGS; do \
  case $f in \
    *=* | --[!k]*);; \
    *k*) failcom='fail=yes';; \
  esac; \
done; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
list='src doc etc templates contrib schemas rpm m4 preproc_rules'; for
subdir in $list; do \
  echo "Making $target in $subdir"; \
  if test "$subdir" = "."; then \
    dot_seen=yes; \
    local_target="$target-am"; \
  else \
    local_target="$target"; \
  fi; \
  (cd $subdir && make  $local_target) \
  || eval $failcom; \
done; \
if test "$dot_seen" = "no"; then \
  make  "$target-am" || exit 1; \
fi; test -z "$fail"
make: Fatal error: Command failed for target `all-recursive'
Current working directory /usr/share/src/snort-2.8.5.2
*** Error code 1
make: Fatal error: Command failed for target `all'
bash-3.00#


------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and
easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Snort-devel mailing list
Snort-devel () lists sourceforge net
https://lists.sourceforge.net/lists/listinfo/snort-devel






------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Snort-devel mailing list
Snort-devel () lists sourceforge net
https://lists.sourceforge.net/lists/listinfo/snort-devel


Current thread: