[Snort-users] Trouble building snort (any version) on glibc-linux systems....

Eli Stair eli.stair.lists at ...4371...
Thu Aug 8 20:37:03 EDT 2002


I'm having serious difficulty compiling snort for some reason.  
Problem:
When compiling from source: versions 1.8.7,snort-stable or snort-current 
snapshots, on either a MDK 8.2 w/GCC3.1.1 or RH7.3 w/gcc2.96, make seems 
to stop compiling.  Below are the output of ./configure and the tail end
of the make process, and the make install output.  Installed is libpcap-0.6.2 
on both systems.

gcc works fine otherwise for all other source builds.  Any ideas what is
hanging it at this phase?  I'm unsure as to why, but it seems to be building
the win32 system.  When make install is run it only looks in the win32
directories.  

Ideas?

Cheers,

/eli

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[root at ...6562... snort]# make install
Making install in src
make[1]: Entering directory `/usr/src/snort/src'
Making install in win32
make[2]: Entering directory `/usr/src/snort/src/win32'
Making install in WIN32-Code
make[3]: Entering directory `/usr/src/snort/src/win32/WIN32-Code'
make[4]: Entering directory `/usr/src/snort/src/win32/WIN32-Code'
make[4]: Nothing to be done for `install-exec-am'.
make[4]: Nothing to be done for `install-data-am'.
make[4]: Leaving directory `/usr/src/snort/src/win32/WIN32-Code'
make[3]: Leaving directory `/usr/src/snort/src/win32/WIN32-Code'
Making install in WIN32-Includes
make[3]: Entering directory `/usr/src/snort/src/win32/WIN32-Includes'
make[4]: Entering directory `/usr/src/snort/src/win32/WIN32-Includes'
make[4]: Nothing to be done for `install-exec-am'.
make[4]: Nothing to be done for `install-data-am'.
make[4]: Leaving directory `/usr/src/snort/src/win32/WIN32-Includes'
make[3]: Leaving directory `/usr/src/snort/src/win32/WIN32-Includes'
Making install in WIN32-Libraries
make[3]: Entering directory `/usr/src/snort/src/win32/WIN32-Libraries'
make[4]: Entering directory `/usr/src/snort/src/win32/WIN32-Libraries'
make[4]: Nothing to be done for `install-exec-am'.
make[4]: Nothing to be done for `install-data-am'.
make[4]: Leaving directory `/usr/src/snort/src/win32/WIN32-Libraries'
make[3]: Leaving directory `/usr/src/snort/src/win32/WIN32-Libraries'
make[3]: Entering directory `/usr/src/snort/src/win32'
make[4]: Entering directory `/usr/src/snort/src/win32'
make[4]: Nothing to be done for `install-exec-am'.
make[4]: Nothing to be done for `install-data-am'.
make[4]: Leaving directory `/usr/src/snort/src/win32'
make[3]: Leaving directory `/usr/src/snort/src/win32'
make[2]: Leaving directory `/usr/src/snort/src/win32'
Making install in output-plugins
make[2]: Entering directory `/usr/src/snort/src/output-plugins'
make[3]: Entering directory `/usr/src/snort/src/output-plugins'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/usr/src/snort/src/output-plugins'
make[2]: Leaving directory `/usr/src/snort/src/output-plugins'
Making install in detection-plugins
make[2]: Entering directory `/usr/src/snort/src/detection-plugins'
make[3]: Entering directory `/usr/src/snort/src/detection-plugins'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/usr/src/snort/src/detection-plugins'
make[2]: Leaving directory `/usr/src/snort/src/detection-plugins'
Making install in preprocessors
make[2]: Entering directory `/usr/src/snort/src/preprocessors'
make[3]: Entering directory `/usr/src/snort/src/preprocessors'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/usr/src/snort/src/preprocessors'
make[2]: Leaving directory `/usr/src/snort/src/preprocessors'
make[2]: Entering directory `/usr/src/snort/src'
make[3]: Entering directory `/usr/src/snort/src'
/bin/sh ../mkinstalldirs /usr/local/bin
  /usr/bin/install -c  snort /usr/local/bin/snort
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/usr/src/snort/src'
make[2]: Leaving directory `/usr/src/snort/src'
make[1]: Leaving directory `/usr/src/snort/src'
Making install in doc
make[1]: Entering directory `/usr/src/snort/doc'
make[2]: Entering directory `/usr/src/snort/doc'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/usr/src/snort/doc'
make[1]: Leaving directory `/usr/src/snort/doc'
Making install in etc
make[1]: Entering directory `/usr/src/snort/etc'
make[2]: Entering directory `/usr/src/snort/etc'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/usr/src/snort/etc'
make[1]: Leaving directory `/usr/src/snort/etc'
Making install in rules
make[1]: Entering directory `/usr/src/snort/rules'
make[2]: Entering directory `/usr/src/snort/rules'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/usr/src/snort/rules'
make[1]: Leaving directory `/usr/src/snort/rules'
Making install in templates
make[1]: Entering directory `/usr/src/snort/templates'
make[2]: Entering directory `/usr/src/snort/templates'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/usr/src/snort/templates'
make[1]: Leaving directory `/usr/src/snort/templates'
make[1]: Entering directory `/usr/src/snort'
make[2]: Entering directory `/usr/src/snort'
make[2]: Nothing to be done for `install-exec-am'.
make  install-man8
make[3]: Entering directory `/usr/src/snort'
/bin/sh ./mkinstalldirs /usr/local/man/man8
 /usr/bin/install -c -m 644 ./snort.8 /usr/local/man/man8/snort.8
make[3]: Leaving directory `/usr/src/snort'
make[2]: Leaving directory `/usr/src/snort'
make[1]: Leaving directory `/usr/src/snort'
[root at ...6562... snort]#
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[root at ...6562... snort]#make
................snip........................

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../src -I/usr/include/pcap -I../src/output-plugins -I../src/detection-plugins -I../src/preprocessors    -g -            sf_sdlist.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../src -I/usr/include/pcap -I../src/output-plugins -I../src/detection-plugins -I../src/preprocessors    -g -            perf.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../src -I/usr/include/pcap -I../src/output-plugins -I../src/detection-plugins -I../src/preprocessors    -g -            perf-flow.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../src -I/usr/include/pcap -I../src/output-plugins -I../src/detection-plugins -I../src/preprocessors    -g -            perf-base.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../src -I/usr/include/pcap -I../src/output-plugins -I../src/detection-plugins -I../src/preprocessors    -g -            perf-event.c
gcc  -g -O2 -Wall  -o snort  codes.o debug.o decode.o log.o mstring.o parser.o plugbase.o snort.o snprintf.o strlcatu.o strlcpyu.o tag.o ubi_BinTree           yTree.o util.o detect.o substr.o trie.o signature.o mempool.o sf_sdlist.o perf.o perf-flow.o perf-base.o perf-event.o output-plugins/libspo.a detect           /libspd.a preprocessors/libspp.a  -lpcap -lm -lnsl
make[3]: Leaving directory `/usr/src/snort/src'
make[2]: Leaving directory `/usr/src/snort/src'
Making all in doc
make[2]: Entering directory `/usr/src/snort/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/src/snort/doc'
Making all in etc
make[2]: Entering directory `/usr/src/snort/etc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/src/snort/etc'
Making all in rules
make[2]: Entering directory `/usr/src/snort/rules'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/src/snort/rules'
Making all in templates
make[2]: Entering directory `/usr/src/snort/templates'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/src/snort/templates'
make[2]: Entering directory `/usr/src/snort'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/usr/src/snort'
make[1]: Leaving directory `/usr/src/snort'
[root at ...6562... snort]#


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[root at ...6562... snort]#./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... found
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 ranlib... (cached) ranlib
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
checking host system type... i686-pc-linux-gnu
checking whether byte ordering is bigendian... (cached) no
checking for sparc alignment... no
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 sys/sockio.h... (cached) no
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) no
checking whether fprintf must be declared... (cached) no
checking whether syslog must be declared... (cached) no
checking whether puts must be declared... (cached) no
checking whether fputs must be declared... (cached) no
checking whether fputc must be declared... (cached) no
checking whether fopen must be declared... (cached) no
checking whether fclose must be declared... (cached) no
checking whether fwrite must be declared... (cached) no
checking whether fflush must be declared... (cached) no
checking whether getopt must be declared... (cached) no
checking whether bzero must be declared... (cached) no
checking whether bcopy must be declared... (cached) no
checking whether memset must be declared... (cached) no
checking whether strtol must be declared... (cached) no
checking whether strcasecmp must be declared... (cached) no
checking whether strncasecmp must be declared... (cached) no
checking whether strerror must be declared... (cached) no
checking whether perror must be declared... (cached) no
checking whether socket must be declared... (cached) no
checking whether sendto must be declared... (cached) no
checking whether vsnprintf must be declared... (cached) no
checking whether snprintf must be declared... (cached) no
checking whether strtoul must be declared... (cached) no
checking for snprintf... (cached) yes
checking for strlcpy... (cached) no
checking for strlcat... (cached) no
checking for strerror... (cached) yes
checking for floor in -lm... (cached) yes
checking for pcap_datalink in -lpcap... (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 src/Makefile
creating src/detection-plugins/Makefile
creating src/output-plugins/Makefile
creating src/preprocessors/Makefile
creating doc/Makefile
creating etc/Makefile
creating rules/Makefile
creating templates/Makefile
creating src/win32/Makefile
creating src/win32/WIN32-Code/Makefile
creating src/win32/WIN32-Includes/Makefile
creating src/win32/WIN32-Libraries/Makefile
creating src/win32/WIN32-Includes/Makefile
creating src/win32/WIN32-Includes/libnet/Makefile
creating src/win32/WIN32-Includes/mysql/Makefile
creating src/win32/WIN32-Includes/rpc/Makefile
creating src/win32/WIN32-Libraries/Makefile
creating config.h
[root at ...6562... snort]#




More information about the Snort-users mailing list