[Snort-users] Great difficulties compiling under Solaris 2.5.1

Martin Roesch roesch at ...421...
Mon Mar 12 02:06:12 EST 2001


Is it possible for you to upgrade to gcc 2.95.2?

     -Marty


Dan Zerkle wrote:
> 
> I've been having assorted difficulties compiling under Solaris 2.5.1.  We're
> using this old OS on purpose, to meet customer compatibility requirements.
> 
> One problem is solved in a sloppy manner, and I'm still stuck on another.  Can
> anyone help?
> 
> This is Snort 1.7, as available on the Web site.
> 
> Uname says:
> 5.5.1 Generic_103640-32 sun4u sparc SUNW,Ultra-5_10
> 
> gcc -v says:
> Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2.1/specs
> gcc version 2.7.2.1
> 
> FIRST PROBLEM:
> 
> There is a compile problem.  It won't.  The problem starts with snort.c.
> 
> $ make
> gcc -DHAVE_CONFIG_H -I. -I. -I. -DBSD_COMP -I../libpcap-0.4 -g -O2 -Wall -c
> snort.c
> In file included from snort.h:45,
> from snort.c:45:
> /usr/include/rpc/clnt.h:512: warning: `struct netbuf' declared inside
> parameter list
> /usr/include/rpc/clnt.h:512: warning: its scope is only this definition or
> declaration,
> /usr/include/rpc/clnt.h:512: warning: which is probably not what you want.
> /usr/include/rpc/clnt.h:532: warning: `struct netbuf' declared inside
> parameter list
> /usr/include/rpc/clnt.h:550: warning: `struct netbuf' declared inside
> parameter list
> In file included from snort.h:74,
> from snort.c:45:
> decode.h:342: parse error before `uint8_t'
> decode.h:342: warning: no semicolon at end of struct or union
> decode.h:343: warning: data definition has no type or storage class
> decode.h:344: parse error before `protid'
> decode.h:344: warning: data definition has no type or storage class
> (...hundreds more error messages follow...)
> 
> The following code, inserted into snort.h before the includes, cleared up that
> problem.  Thanks to Pete Wilcoxen for the fix.  Does anyone have a fix that
> doesn't require messing with source code?
> 
> typedef unsigned char uint8_t;
> typedef unsigned short uint16_t;
> typedef unsigned int uint32_t;
> #include <rpc/rpc.h>
> 
> SECOND PROBLEM:
> 
> With or without this fix, snort won't get past the configure stage with
> libpcap 0.6.2 (the newest).  Mind you, it's fine with libpcap 0.4.
> 
> I put the libpcap directories in the same directory as the snort 1.7
> directories, and did configures and makes right in there with no options.
> 
> This works fine:
> 
> $ ./configure --with-libpcap-includes=../libpcap-0.4
> --with-libpcap-libraries=../libpcap-0.4
> 
> This does not work:
> 
> $ ./configure --with-libpcap-includes=../libpcap-0.6.2
> --with-libpcap-libraries=../libpcap-0.6.2
> (...lots of stuff deleted...)
> checking for pcap_datalink in -lpcap... no
> 
>    ERROR!  Libpcap library/headers not found, go get it from
>    ftp://ftp.ee.lbl.gov/libpcap.tar.Z
>    or use the --with-libpcap-* options, if you have it installed
>    in unusual place
> 
> Mind you, I'm using 0.6.2 with Linux, and it works perfectly there.  Does
> anyone have any idea what's going on here?  How do I fix it so that I can
> compile Snort 1.7 with libpcap 0.6.2 under Solaris 2.5.1?
> 
> Thanks for any help.
> 
> -Dan
> 
> _______________________________________________
> Snort-users mailing list
> Snort-users at lists.sourceforge.net
> Go to this URL to change user options or unsubscribe:
> http://lists.sourceforge.net/lists/listinfo/snort-users

--
Martin Roesch
roesch at ...421...
http://www.snort.org




More information about the Snort-users mailing list