[Snort-users] Re: compiling on solaris

Martin Roesch roesch at ...421...
Mon Oct 2 21:49:14 EDT 2000


Your C compiler/SOlaris install are seriously out of date and that's what the
problem is.  Have you thought of upgrading your OS to 2.6 or so?  You
definitely need to get up to gcc version 2.7.2 or better...

    -Marty

P.S. start sending these to snort-users at lists.sourceforge.net!


"Robert E. Leever" wrote:
> 
> hi Marty,
> 
> Thanks for replying - I was beginning to think that maybe
> I had composed that email and then forgotten to send it.
> 
> You must've had a *lot* of catchin up to do.  (c:
> 
> I added the #defines [cut and pasted] into the bottom of
> config.h [to avoid any if/endif problems] and gave it
> another shot.  produced the following:
> pug:/opt/snort/snort-1.6=> make
> gcc -DHAVE_CONFIG_H -I. -I. -I.     -g -O2 -Wall -I /usr/include -I /usr/ucbinclude -I ../libpcap -c snort.c
> In file included from sp_rpc_check.h:27,
>                  from plugbase.h:34,
>                  from snort.h:67,
>                  from snort.c:45:
> /usr/include/rpc/clnt.h:459: warning: `struct netbuf' declared inside parameter list
> /usr/include/rpc/clnt.h:459: warning: its scope is only this definition or declaration,
> /usr/include/rpc/clnt.h:459: warning: which is probably not what you want.
> /usr/include/rpc/clnt.h:479: warning: `struct netbuf' declared inside parameter list
> /usr/include/rpc/clnt.h:497: warning: `struct netbuf' declared inside parameter list
> snort.c: In function `ParseCmdLine':
> snort.c:442: warning: implicit declaration of function `getopt'
> snort.c:575: warning: implicit declaration of function `bzero'
> snort.c: In function `ts_print':
> snort.c:1273: warning: implicit declaration of function `gettimeofday'
> snort.c: In function `PrintFmtError':
> snort.c:1659: `__builtin_va_alist' undeclared (first use this function)
> snort.c:1659: (Each undeclared identifier is reported only once
> snort.c:1659: for each function it appears in.)
> snort.c:1657: warning: `ap' might be used uninitialized in this function
> snort.c: In function `ErrorMessage':
> snort.c:1693: `__builtin_va_alist' undeclared (first use this function)
> snort.c:1691: warning: `ap' might be used uninitialized in this function
> snort.c: In function `FatalError':
> snort.c:1724: `__builtin_va_alist' undeclared (first use this function)
> snort.c:1722: warning: `ap' might be used uninitialized in this function
> make: *** [snort.o] Error 1
> pug:/opt/snort/snort-1.6=>
> 
> I also tried removing the I /usr/ucbinclude that I had stuck onto CFLAG
> and that produce the old, original error:
> pug:/opt/snort/snort-1.6=> make
> gcc -DHAVE_CONFIG_H -I. -I. -I.     -g -O2 -Wall -I../libpcap -c snort.c
> In file included from snort.c:45:
> snort.h:36: strings.h: No such file or directory
> In file included from snort.h:63,
>                  from snort.c:45:
> decode.h:37: strings.h: No such file or directory
> make: *** [snort.o] Error 1
> 
> Any other suggestions?
> 
> thanks
> 
> b;)
> 
> +====================================================================+
> |  Soviet dictator Nikita Khrushchev said of the political trend     |
> |  launched by Roosevelt's "New Deal," "We can't expect the American |
> |  People to jump from Capitalism to Communism, but we can assist    |
> |  their elected leaders in giving them small doses of Socialism,    |
> |  until they awaken one day to find that they have Communism."      |
> +====================================================================+

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



More information about the Snort-users mailing list