hello there;<br><br>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)..<br>?<br><br>I'm currently stuck at the following:<br>
<br>bash-3.00$ make<br>make  all-recursive<br>Making all in libhtp<br>make  all-recursive<br>Making all in htp<br>Making all in test<br>Making all in src<br>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<br>
source-pcap-file.c:51: error: syntax error before "u_int8_t"<br>source-pcap-file.c: In function `ReceivePcapFileThreadInit':<br>source-pcap-file.c:208: warning: assignment from incompatible pointer type<br>source-pcap-file.c:211: warning: assignment from incompatible pointer type<br>
source-pcap-file.c:214: warning: assignment from incompatible pointer type<br>source-pcap-file.c:217: warning: assignment from incompatible pointer type<br>*** Error code 1<br>make: Fatal error: Command failed for target `source-pcap-file.o'<br>
Current working directory /export/home/lcatacor/src/suricata/suricata-0.9.0/src<br>*** Error code 1<br>The following command caused the error:<br>fail= failcom='exit 1'; \<br>for f in x $MAKEFLAGS; do \<br>  case $f in \<br>
    *=* | --[!k]*);; \<br>    *k*) failcom='fail=yes';; \<br>  esac; \<br>done; \<br>dot_seen=no; \<br>target=`echo all-recursive | sed s/-recursive//`; \<br>list='libhtp src'; for subdir in $list; do \<br>
  echo "Making $target in $subdir"; \<br>  if test "$subdir" = "."; then \<br>    dot_seen=yes; \<br>    local_target="$target-am"; \<br>  else \<br>    local_target="$target"; \<br>
  fi; \<br>  (CDPATH="${ZSH_VERSION+.}:" && cd $subdir && make  $local_target) \<br>  || eval $failcom; \<br>done; \<br>if test "$dot_seen" = "no"; then \<br>  make  "$target-am" || exit 1; \<br>
fi; test -z "$fail"<br>make: Fatal error: Command failed for target `all-recursive'<br>Current working directory /export/home/lcatacor/src/suricata/suricata-0.9.0<br>*** Error code 1<br>make: Fatal error: Command failed for target `all'<br>
<br><br><br>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 <br><br><br>Any help would be appreciated <br>
<br><br>Thanks<br><br>Luis<br><br>