[Snort-users] Newbie Snort Install question

Martin Roesch roesch at ...421...
Mon Nov 6 18:07:29 EST 2000


I looks like some paths on some of the include files don't match up with
your system config.  For example, you need to change #include
<asm/param.h> to #include <sys/param.h>, etc.

We probably need to detect the existence and location of these files
better. :)

    -Marty


"Backman, Ron" wrote:
> 
> I am trying to build SNORT on LinuxPPP2000, a Linux on the PPC Macintosh.  I
> have a Sonet G3/500 accelerator stuck in an older PPC 7300.  Run's very
> nicely.
> 
> Need some advice or hints on this
> 
> The ./configure seemed to go OK.  Here's shat I got  Also at the bottom of
> this mailgram I checked to see if some of the required header files were
> present.  They seemed to be.
> 
> Thanks in advance for anyone's help.
> 
> Ron
> 
> [root at ...763... snort-1.6.3]# ./configure
> loading cache ./config.cache
> checking for a BSD compatible install... (cached) /usr/bin/install -c
> checking whether build environment is sane... yes
> checking whether make sets ${MAKE}... (cached) yes
> checking for working aclocal... found
> checking for working autoconf... found
> checking for working automake... found
> checking for working autoheader... found
> checking for working makeinfo... missing
> checking for gcc... (cached) gcc
> checking whether the C compiler (gcc  ) works... yes
> checking whether the C compiler (gcc  ) is a cross-compiler... no
> checking whether we are using GNU C... (cached) yes
> checking whether gcc accepts -g... (cached) yes
> checking for gcc option to accept ANSI C... (cached) none needed
> checking for gcc... (cached) gcc
> checking whether the C compiler (gcc -g -O2 ) works... yes
> checking whether the C compiler (gcc -g -O2 ) is a cross-compiler... no
> checking whether we are using GNU C... (cached) yes
> checking whether gcc accepts -g... (cached) yes
> chec
> king host system type... powerpc-unknown-linux-gnu
> checking whether byte ordering is bigendian... (cached) yes
> checking how to run the C preprocessor... (cached) gcc -E
> checking for strings.h... (cached) yes
> checking for string.h... (cached) yes
> checking for stdlib.h... (cached) yes
> checking for unistd.h... (cached) yes
> checking for paths.h... (cached) yes
> checking for inet_ntoa in -lnsl... (cached) yes
> checking for socket in -lsocket... (cached) no
> checking whether printf must be declared... (cached) yes
> checking whether fprintf must be declared... (cached) yes
> checking whether syslog must be declared... (cached) yes
> checking whether puts must be declared... (cached) yes
> checking whether fputs must be declared... (cached) yes
> checking whether fputc must be declared... (cached) yes
> checking whether fopen must be declared... (cached) yes
> checking whether fclose must be declared... (cached) yes
> checking whether fwrite must be declared... (cached) yes
> checking whether fflush must be declared... (cached) yes
> che
> cking whether getopt must be declared... (cached) yes
> checking whether bzero must be declared... (cached) yes
> checking whether bcopy must be declared... (cached) yes
> checking whether memset must be declared... (cached) yes
> checking whether strtol must be declared... (cached) yes
> checking whether strcasecmp must be declared... (cached) yes
> checking whether strncasecmp must be declared... (cached) yes
> checking whether strerror must be declared... (cached) yes
> checking whether perror must be declared... (cached) yes
> checking whether socket must be declared... (cached) yes
> checking whether sendto must be declared... (cached) yes
> checking whether vsnprintf must be declared... (cached) yes
> checking whether strtoul must be declared... (cached) yes
> checking for pcap.h... (cached) /usr/include/pcap/pcap.h
> checking for libpcap.a... (cached) /usr/lib/libpcap.a
> checking for pcap_datalink in -lpcap... (cached) yes
> checking for /usr/include/mysql/mysql.h... (cached) no
> checking for /usr/local/include/sql.h... (cached) no
> checking for /usr/include/pgsql/libpq-fe.h... (cached) yes
> checking for PQconnectdb in -lpq... (cached) yes
> checking for u_int8_t... (cached) yes
> checking for u_int16_t... (cached) yes
> checking for u_int32_t... (cached) yes
> checking for a BSD compatible install... /usr/bin/install -c
> creating ./config.status
> creating Makefile
> creating config.h
> config.h is unchanged
> [root at ...763... snort-1.6.3]#
> 
> Then I did a "make" and got this
> 
> [root at ...763... snort-1.6.3]# make
> gcc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include/pcap -I/usr/include/pgsql
> -DENABLE_POSTGRESQL  -g -O2 -Wall  -c snort.c
> In file included from /usr/include/bits/errno.h:25,
>                  from /usr/include/errno.h:36,
>                  from snort.h:37,
>                  from snort.c:45:
> /usr/include/linux/errno.h:4: asm/errno.h: No such file or directory
> In file included from /usr/include/sys/socket.h:34,
>                  from snort.h:40,
>                  from snort.c:45:
> /usr/include/bits/socket.h:295: asm/socket.h: No such file or directory
> In file included from /usr/include/signal.h:294,
>                  from snort.h:47,
>                  from snort.c:45:
> /usr/include/bits/sigcontext.h:28: asm/sigcontext.h: No such file or
> directory
> In file included from /usr/include/sys/param.h:25,
>                  from /usr/include/rpc/types.h:64,
>                  from sp_rpc_check.h:24,
>                  from plugbase.h:34,
>                  from snort.h:69,
>                  from snort.c:45:
> /usr/include/linux/param.h:4: asm/param.h: No such file or directory
> make: *** [snort.o] Error 1
> [root at ...763... snort-1.6.3]#
> 
> Any hints on what this error is?
> 
> I checked some of the header files and they seem to be in place
> 
> [root at ...763... snort-1.6.3]# ls /usr/include/bits/errno*
> /usr/include/bits/errno.h
> [root at ...763... snort-1.6.3]# ls /usr/include/sys/socket*
> /usr/include/sys/socket.h  /usr/include/sys/socketvar.h
> [root at ...763... snort-1.6.3]# ls /usr/include/bits/sigcontext*
> /usr/include/bits/sigcontext.h
> [root at ...763... snort-1.6.3]# ls /usr/include/sys/param*
> /usr/include/sys/param.h
> [root at ...763... snort-1.6.3]#
> 
> _______________________________________________
> Snort-users mailing list
> Snort-users at lists.sourceforge.net
> http://lists.sourceforge.net/mailman/listinfo/snort-users



More information about the Snort-users mailing list