[Oisf-devel] suricata on solaris?

Lui Cat luis.mlists at gmail.com
Fri May 21 12:29:21 EDT 2010


hello there;

don't know if this is the right forum to ask this question, but I was
wondering if anyone has attempted to compile suricata on solaris (sparc or
x86)..
?

I'm currently stuck at the following:

bash-3.00$ make
make  all-recursive
Making all in libhtp
make  all-recursive
Making all in htp
Making all in test
Making all in src
gcc -DHAVE_CONFIG_H -I. -I..  -I../libhtp   -I/opt/PP2K/include
-I/opt/PP2K/include -I/opt/PP2K/include -I/opt/PP2K/include
-mcpu=ultrasparc -W -Wall -fno-strict-aliasing -Wno-unused-parameter
-DOS_SOLARIS -DHAVE_LIBNET11 -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD
-DHAVE_NET_ETHERNET_H   -DLIBPCAP_VERSION_MAJOR=1 -MT source-pcap-file.o -MD
-MP -MF .deps/source-pcap-file.Tpo -c -o source-pcap-file.o
source-pcap-file.c
source-pcap-file.c:51: error: syntax error before "u_int8_t"
source-pcap-file.c: In function `ReceivePcapFileThreadInit':
source-pcap-file.c:208: warning: assignment from incompatible pointer type
source-pcap-file.c:211: warning: assignment from incompatible pointer type
source-pcap-file.c:214: warning: assignment from incompatible pointer type
source-pcap-file.c:217: warning: assignment from incompatible pointer type
*** Error code 1
make: Fatal error: Command failed for target `source-pcap-file.o'
Current working directory
/export/home/lcatacor/src/suricata/suricata-0.9.0/src
*** Error code 1
The following command caused the error:
fail= 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='libhtp src'; 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; \
  (CDPATH="${ZSH_VERSION+.}:" && 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 /export/home/lcatacor/src/suricata/suricata-0.9.0
*** Error code 1
make: Fatal error: Command failed for target `all'



To get this far, had to change the configure script to add a *solaris*
section to include a -DOS_SOLARIS and change the src/util-byte.h file to
include sys/byteorder.h


Any help would be appreciated


Thanks

Luis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openinfosecfoundation.org/pipermail/oisf-devel/attachments/20100521/efe4cd34/attachment.html


More information about the Oisf-devel mailing list