SUMMARY: gcc problem in compiling Libpcap & Snort under Solaris 8

From: the sunlover2 <thesunlover2_at_hotmail.com>
Date: Fri Sep 28 2001 - 19:56:52 EDT
Hello, SunManagers:
Thank you for the prompt and helpful replies. Many people indicated that 
there are some header files missing. Lars Hecking pointed out the key 
reason:"You haven't installed SUNWhea. Use pkginfo to find out." He is 100% 
right here. After SUNWhea is installed, libpcap is compiled without any 
problem.

Libpcap is for Snort. I got new problems in installing Snort. The 
'configure' process is fine, but 'make' process failed. Here is the output:

# make
gcc -DHAVE_CONFIG_H -I. -I. -I.   -DBSD_COMP -I/usr/local/ssl/include 
-DENABLE_SSL  -g -O2 -Wall -c snort.c
In file included from snort.c:45:
snort.h:31: pcap.h: No such file or directory
snort.h:32: net/bpf.h: No such file or directory
In file included from snort.c:45:
snort.h:69: pcap-namedb.h: No such file or directory
In file included from snort.h:194,
                  from snort.c:45:
decode.h:30: pcap.h: No such file or directory
decode.h:48: pcap-namedb.h: No such file or directory
*** Error code 1
make: Fatal error: Command failed for target `snort.o'
#


I have read the INSTALL file as well as the Snort Discussion Archive 
carefully, but did not find the solution. Would someone help me on this? 
Thank you in advance!

The following is the output of 'configure':
# ./configure --with-libpcap-libraries=/opt/sfw/libpcap-0.6.2
creating cache ./config.cache
checking for a BSD compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... 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... 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... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... 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
checking host system type... sparc-sun-solaris2.8
checking whether byte ordering is bigendian... yes
checking how to run the C preprocessor... gcc -E
checking for strings.h... yes
checking for string.h... yes
checking for stdlib.h... yes
checking for unistd.h... yes
checking for sys/sockio.h... yes
checking for paths.h... no
checking for inet_ntoa in -lnsl... yes
checking for socket in -lsocket... yes
checking whether printf must be declared... no
checking whether fprintf must be declared... no
checking whether syslog must be declared... no
checking whether puts must be declared... no
checking whether fputs must be declared... no
checking whether fputc must be declared... no
checking whether fopen must be declared... no
checking whether fclose must be declared... no
checking whether fwrite must be declared... no
checking whether fflush must be declared... no
checking whether getopt must be declared... no
checking whether bzero must be declared... no
checking whether bcopy must be declared... no
checking whether memset must be declared... no
checking whether strtol must be declared... no
checking whether strcasecmp must be declared... no
checking whether strncasecmp must be declared... no
checking whether strerror must be declared... no
checking whether perror must be declared... no
checking whether socket must be declared... no
checking whether sendto must be declared... no
checking whether vsnprintf must be declared... no
checking whether snprintf must be declared... no
checking whether strtoul must be declared... no
checking for snprintf... yes
checking for strlcpy... yes
checking for strlcat... yes
checking for strerror... yes
checking for floor in -lm... yes
checking for pcap_datalink in -lpcap... yes
checking for mysql... no
checking for odbc... no
checking for postgresql... no
checking for oracle... no
checking for openssl... yes
checking for u_int8_t... no
checking for u_int16_t... no
checking for u_int32_t... no
checking for a BSD compatible install... ./install-sh -c
updating cache ./config.cache
creating ./config.status
creating Makefile
creating config.h

Alex

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Fri Sep 28 18:55:53 2001

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:42:26 EST