[Oisf-devel] suricata on solaris?

Will Metcalf william.metcalf at gmail.com
Fri May 21 16:35:56 UTC 2010


We don't currently have any Solaris boxes setup for testing, probably
something we should look into ;-). Yao-Min, can you offer Lui any
assistance?

Regards,

Will

On Fri, May 21, 2010 at 11:29 AM, Lui Cat <luis.mlists at gmail.com> wrote:
> 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
>
>
> _______________________________________________
> Oisf-devel mailing list
> Oisf-devel at openinfosecfoundation.org
> http://lists.openinfosecfoundation.org/mailman/listinfo/oisf-devel
>
>



More information about the Oisf-devel mailing list