got a little bit farther that time..<br><br>now it the error is as follows (sigh)..<br><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 tm-threads.o -MD -MP -MF .deps/tm-threads.Tpo -c -o tm-threads.o tm-threads.c<br>
tm-threads.c: In function `SetCPUAffinity':<br>tm-threads.c:657: error: `cpu_set_t' undeclared (first use in this function)<br>tm-threads.c:657: error: (Each undeclared identifier is reported only once<br>tm-threads.c:657: error: for each function it appears in.)<br>
tm-threads.c:657: error: syntax error before "cs"<br>tm-threads.c:659: warning: implicit declaration of function `CPU_ZERO'<br>tm-threads.c:659: error: `cs' undeclared (first use in this function)<br>tm-threads.c:660: warning: implicit declaration of function `CPU_SET'<br>
tm-threads.c:672: error: too few arguments to function `processor_bind'<br>*** Error code 1<br>make: Fatal error: Command failed for target `tm-threads.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>Luis<br><br><br><div class="gmail_quote">On Tue, May 25, 2010 at 8:51 AM, Will Metcalf <span dir="ltr"><<a href="mailto:william.metcalf@gmail.com">william.metcalf@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">in src/threads.h change the macro around to look like this. See if it<br>
works after that.<br>
<br>
Regards,<br>
<br>
Will<br>
<br>
/*<br>
* OS specific macro's for setting the thread name. "top" can display<br>
* this name.<br>
*/<br>
#ifndef PR_SET_NAME /*PR_SET_NAME */<br>
#define SCSetThreadName(n)<br>
#elif OS_FREEBSD /* FreeBSD */<br>
/** \todo Add implementation for FreeBSD */<br>
#define SCSetThreadName(n)<br>
#elif OS_WIN32 /* Windows */<br>
/** \todo Add implementation for Windows */<br>
#define SCSetThreadName(n)<br>
#elif OS_DARWIN /* Mac OS X */<br>
/** \todo Add implementation for MacOS */<br>
#define SCSetThreadName(n)<br>
#elif OS_SOLARIS<br>
#define SCSetThreadName(n)<br>
#else /* Linux */<br>
<div><div></div><div class="h5"><br>
<br>
On Mon, May 24, 2010 at 10:48 AM, Luis <<a href="mailto:luis.mlists@gmail.com">luis.mlists@gmail.com</a>> wrote:<br>
> Hi:<br>
><br>
> Thanks for answering..<br>
><br>
> made the modifications to <a href="http://configure.in" target="_blank">configure.in</a>, and the mentioned source files..<br>
> (using DOS_SOLARIS)<br>
><br>
><br>
> however, I'm running into the following now..<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<br>
> -I/opt/PP2K/include -I/opt/PP2K/include -I/opt/PP2K/include<br>
> -mcpu=ultrasparc -W -Wall -fno-strict-aliasing -Wno-unused-parameter<br>
> -DOS_SOLARIS -DHAVE_LIBNET11 -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD<br>
> -DHAVE_NET_ETHERNET_H -DLIBPCAP_VERSION_MAJOR=1 -MT flow.o -MD -MP -MF<br>
> .deps/flow.Tpo -c -o flow.o flow.c<br>
> flow.c: In function `FlowManagerThread':<br>
> flow.c:666: error: `THREAD_NAME_LEN' undeclared (first use in this function)<br>
> flow.c:666: error: (Each undeclared identifier is reported only once<br>
> flow.c:666: error: for each function it appears in.)<br>
> flow.c:666: warning: implicit declaration of function `prctl'<br>
> flow.c:666: error: `PR_SET_NAME' undeclared (first use in this function)<br>
> flow.c:666: warning: unused variable `tname'<br>
> *** Error code 1<br>
> make: Fatal error: Command failed for target `flow.o'<br>
> Current working directory<br>
> /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>
><br>
> did I miss something?<br>
><br>
><br>
> Thanks<br>
><br>
><br>
> Luis<br>
><br>
><br>
><br>
><br>
> On Sat, May 22, 2010 at 5:28 AM, Victor Julien <<a href="mailto:victor@inliniac.net">victor@inliniac.net</a>> wrote:<br>
>><br>
>> -----BEGIN PGP SIGNED MESSAGE-----<br>
>> Hash: SHA1<br>
>><br>
>> Thank you Yoa-Min. One remark: in recent Suricata libnet is no longer<br>
>> required.<br>
>><br>
>> Cheers,<br>
>> Victor<br>
>><br>
>> Yao-Min Chen wrote:<br>
>> > The following info is dated back in Feb. So perhaps it is outdated. The<br>
>> > work was based on Solaris 10, but should also work with OpenSolaris.<br>
>> > Feel free to let me know any question.<br>
>> ><br>
>> ><br>
>> > LIBNET<br>
>> ><br>
>> > * Suricata requires <a href="http://libnet-1.1.x.so" target="_blank">libnet-1.1.x.so</a>; the package available at<br>
>> > <a href="http://www.sunfreeware.com" target="_blank">www.sunfreeware.com</a> has libnet.a only.<br>
>> > * Instead, download libnet tarball from <a href="http://www.sunfreeware.com" target="_blank">www.sunfreeware.com</a><br>
>> > * /usr/sfw/bin/gtar xzf libnet-1.1.2.1.tar.gz<br>
>> > * Get the patch files from D.Mehra's OpenSolaris package and build<br>
>> ><br>
>> > wget<br>
>> > <a href="http://cr.opensolaris.org/%7Edmehra/libnet/raw_files/new/usr/src/lib/libnet/libnet_link_dlpi.c.patch" target="_blank">http://cr.opensolaris.org/~dmehra/libnet/raw_files/new/usr/src/lib/libnet/libnet_link_dlpi.c.patch</a><br>
>> > wget<br>
>> > <a href="http://cr.opensolaris.org/%7Edmehra/libnet/raw_files/new/usr/src/lib/libnet/makefile.am.patch" target="_blank">http://cr.opensolaris.org/~dmehra/libnet/raw_files/new/usr/src/lib/libnet/makefile.am.patch</a><br>
>> > wget<br>
>> > <a href="http://cr.opensolaris.org/%7Edmehra/libnet/raw_files/new/usr/src/lib/libnet/makefile.in.patch" target="_blank">http://cr.opensolaris.org/~dmehra/libnet/raw_files/new/usr/src/lib/libnet/makefile.in.patch</a><br>
>> > patch -b -d src libnet_link_dlpi.c < libnet_link_dlpi.c.patch<br>
>> > patch -b -d src Makefile.am < makefile.am.patch<br>
>> > patch -b -p1 -d src Makefile.in < makefile.in.patch<br>
>> ><br>
>> > export CFLAGS="-g -fPIC"<br>
>> > export PATH=/opt/gccfss/bin:$PATH<br>
>> > ./configure<br>
>> > gmake<br>
>> > gmake install<br>
>> ><br>
>> ><br>
>> > Modify <a href="http://configure.in" target="_blank">configure.in</a> and configure to add a new OS label SUNOS<br>
>> ><br>
>> > case "$host" in<br>
>> > *-*-*freebsd*)<br>
>> > CFLAGS="${CFLAGS} -DOS_FREEBSD"<br>
>> > CPPFLAGS="${CPPFLAGS} -I/usr/local/include<br>
>> > -I/usr/local/include/libnet11"<br>
>> > LDFLAGS="${LDFLAGS} -L/usr/local/lib<br>
>> > -L/usr/local/lib/libnet11"<br>
>> > ;;<br>
>> > *darwin*|*Darwin*)<br>
>> > CFLAGS="${CFLAGS} -DOS_DARWIN"<br>
>> > CPPFLAGS="${CPPFLAGS} -I/opt/local/include"<br>
>> > LDFLAGS="${LDFLAGS} -L/opt/local/lib"<br>
>> > ;;<br>
>> > *SunOS*)<br>
>> > CFLAGS="${CFLAGS} -DOS_SUNOS"<br>
>> > CPPLAGS="${CPPFLAGS} -I/usr/sfw/include"<br>
>> > LDFLAGS="${LDFLAGS} -L/usr/sfw/lib"<br>
>> > ;;<br>
>> > *-*-linux*)<br>
>> > #for now do nothing<br>
>> > ;;<br>
>> > *)<br>
>> ><br>
>> ><br>
>> > Modify src<br>
>> ><br>
>> > * cd ./src<br>
>> > * source-pcap-file.c: replace u_int8_t with uint8_t as u_int8_t is<br>
>> > only defined in linux kernel header file, not POSIX standard<br>
>> > * util-debug.c: #define LOG_AUTHPRIV to LOG_AUTH and LOG_FTP to<br>
>> > LOG_DAEMON since there is neither LOG_AUTHPRIV nor LOG_FTP in<br>
>> > Solaris<br>
>> > * stream-tcp.c: same as previous item, replace u_int8_t with uint8_t<br>
>> > as u_int8_t<br>
>> > * suricata-common.h: include <strings.h> to pick up definition of<br>
>> > index()<br>
>> > * tm-threads.c: replace syscall(SYS_gettid) with pthread_self();<br>
>> > replace sched_setaffinity() with processor_bind()<br>
>> > * util-debug.c: replace syscall(SYS_gettid) with pthread_self()<br>
>> > * util-debug-filters.c: replace syscall(SYS_gettid) with<br>
>> > pthread_self()<br>
>> > * stream-tcp-reassemble.h: replace u_int8_t with uint8_t<br>
>> > * util-daemon.c: include <signal.h><br>
>> ><br>
>> ><br>
>> ><br>
>> > On 05/21/10 09:35 AM, Will Metcalf wrote:<br>
>> >> We don't currently have any Solaris boxes setup for testing, probably<br>
>> >> something we should look into ;-). Yao-Min, can you offer Lui any<br>
>> >> assistance?<br>
>> >><br>
>> >> Regards,<br>
>> >><br>
>> >> Will<br>
>> >><br>
>> >> On Fri, May 21, 2010 at 11:29 AM, Lui Cat <<a href="mailto:luis.mlists@gmail.com">luis.mlists@gmail.com</a>><br>
>> >> wrote:<br>
>> >><br>
>> >>> hello there;<br>
>> >>><br>
>> >>> don't know if this is the right forum to ask this question, but I was<br>
>> >>> wondering if anyone has attempted to compile suricata on solaris<br>
>> >>> (sparc or<br>
>> >>> 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<br>
>> >>> -I/opt/PP2K/include -I/opt/PP2K/include -I/opt/PP2K/include<br>
>> >>> -mcpu=ultrasparc -W -Wall -fno-strict-aliasing -Wno-unused-parameter<br>
>> >>> -DOS_SOLARIS -DHAVE_LIBNET11 -D_BSD_SOURCE -D__BSD_SOURCE<br>
>> >>> -D__FAVOR_BSD<br>
>> >>> -DHAVE_NET_ETHERNET_H -DLIBPCAP_VERSION_MAJOR=1 -MT<br>
>> >>> source-pcap-file.o -MD<br>
>> >>> -MP -MF .deps/source-pcap-file.Tpo -c -o source-pcap-file.o<br>
>> >>> 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<br>
>> >>> type<br>
>> >>> source-pcap-file.c:211: warning: assignment from incompatible pointer<br>
>> >>> type<br>
>> >>> source-pcap-file.c:214: warning: assignment from incompatible pointer<br>
>> >>> type<br>
>> >>> source-pcap-file.c:217: warning: assignment from incompatible pointer<br>
>> >>> type<br>
>> >>> *** Error code 1<br>
>> >>> make: Fatal error: Command failed for target `source-pcap-file.o'<br>
>> >>> Current working directory<br>
>> >>> /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<br>
>> >>> /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*<br>
>> >>> section to include a -DOS_SOLARIS and change the src/util-byte.h file<br>
>> >>> to<br>
>> >>> include sys/byteorder.h<br>
>> >>><br>
>> >>><br>
>> >>> Any help would be appreciated<br>
>> >>><br>
>> >>><br>
>> >>> Thanks<br>
>> >>><br>
>> >>> Luis<br>
>> >>><br>
>> >>><br>
>> >>> _______________________________________________<br>
>> >>> Oisf-devel mailing list<br>
>> >>> <a href="mailto:Oisf-devel@openinfosecfoundation.org">Oisf-devel@openinfosecfoundation.org</a><br>
>> >>> <a href="http://lists.openinfosecfoundation.org/mailman/listinfo/oisf-devel" target="_blank">http://lists.openinfosecfoundation.org/mailman/listinfo/oisf-devel</a><br>
>> >>><br>
>> >>><br>
>> >>><br>
>> ><br>
>> ><br>
>> > ------------------------------------------------------------------------<br>
>> ><br>
>> > _______________________________________________<br>
>> > Oisf-devel mailing list<br>
>> > <a href="mailto:Oisf-devel@openinfosecfoundation.org">Oisf-devel@openinfosecfoundation.org</a><br>
>> > <a href="http://lists.openinfosecfoundation.org/mailman/listinfo/oisf-devel" target="_blank">http://lists.openinfosecfoundation.org/mailman/listinfo/oisf-devel</a><br>
>><br>
>><br>
>> - --<br>
>> - ---------------------------------------------<br>
>> Victor Julien<br>
>> <a href="http://www.inliniac.net/" target="_blank">http://www.inliniac.net/</a><br>
>> PGP: <a href="http://www.inliniac.net/victorjulien.asc" target="_blank">http://www.inliniac.net/victorjulien.asc</a><br>
>> - ---------------------------------------------<br>
>><br>
>> -----BEGIN PGP SIGNATURE-----<br>
>> Version: GnuPG v1.4.9 (GNU/Linux)<br>
>> Comment: Using GnuPG with Mozilla - <a href="http://enigmail.mozdev.org" target="_blank">http://enigmail.mozdev.org</a><br>
>><br>
>> iEYEARECAAYFAkv3o9UACgkQiSMBBAuniMeJMACdH6GKI5vIU3JYemsFmc1oPtua<br>
>> 9sAAnimegiL8/nexsA82GN8qkJte/sFA<br>
>> =yzEV<br>
>> -----END PGP SIGNATURE-----<br>
><br>
><br>
</div></div></blockquote></div><br>