[Snort-users] Compilation issues

Justin Ferguson jnfergu at ...4504...
Thu Jan 31 14:43:04 EST 2002


hi, Ok- so it seems to be an ongoing problem (at least of late?) as to why
snort's configure script detects certain os's as win32. I'm on solaris 8,
and it does it (1.8.3), as does 1.8.4-beta1, but the daily build does not,
although it still errors out on make (

It seems that snort cant find pcap.h and its all downhill from there, i have
libpcap installed, 
but all it seems to install is libpcap.a ??

anyone experience something similar?

checking for a BSD compatible install... ./install-sh -c
checking whether build environment is sane... yes
/export/home/remote/snort/missing: Unknown `--run' option
Try `/export/home/remote/snort/missing --help' for more information
configure: WARNING: `missing' script is too old or missing
checking for mawk... no
checking for gawk... no
checking for nawk... nawk
checking whether make sets ${MAKE}... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix...
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking dependency style of gcc... none
checking for gcc option to accept ANSI C... none needed
checking for ranlib... ranlib
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking dependency style of gcc... (cached) none
checking build system type... sparc-sun-solaris2.8
checking host system type... sparc-sun-solaris2.8
checking whether byte ordering is bigendian... yes
grep: illegal option -- q
Usage: grep -hblcnsviw pattern file . . .
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 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
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/detection-plugins/Makefile
config.status: creating src/output-plugins/Makefile
config.status: creating src/preprocessors/Makefile
config.status: creating doc/Makefile
config.status: creating etc/Makefile
config.status: creating rules/Makefile
config.status: creating templates/Makefile
config.status: creating config.h
bash-2.03# make
make  all-recursive
Making all in src
Making all in output-plugins
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../src
-I../../src/output-plugins -I../../src/detection-plugins
-I../../src/preprocessors  -DBSD_COMP  -g -O2 -Wa
ll -c spo_alert_fast.c
In file included from spo_alert_fast.h:27,
                 from spo_alert_fast.c:37:
../../src/snort.h:31:18: pcap.h: No such file or directory
../../src/snort.h:32:21: net/bpf.h: No such file or directory
In file included from spo_alert_fast.h:27,
                 from spo_alert_fast.c:37:
../../src/snort.h:66:25: pcap-namedb.h: No such file or directory
In file included from ../../src/snort.h:192,
                 from spo_alert_fast.h:27,
                 from spo_alert_fast.c:37:
../../src/decode.h:30:18: pcap.h: Error 0
In file included from ../../src/snort.h:192,
                 from spo_alert_fast.h:27,
                 from spo_alert_fast.c:37:
../../src/decode.h:48:25: pcap-namedb.h: Error 0
In file included from ../../src/plugbase.h:64,
                 from ../../src/snort.h:313,
                 from spo_alert_fast.h:27,
                 from spo_alert_fast.c:37:
spo_log_tcpdump.h:35: parse error before "pcap_dumper_t"
spo_log_tcpdump.h:35: warning: no semicolon at end of struct or union
spo_log_tcpdump.h:37: warning: type defaults to `int' in declaration of
`LogTcpdumpData'
spo_log_tcpdump.h:37: warning: data definition has no type or storage class
spo_log_tcpdump.h:42: parse error before '*' token
spo_log_tcpdump.h:42: warning: type defaults to `int' in declaration of
`ParseTcpdumpArgs'
spo_log_tcpdump.h:42: warning: data definition has no type or storage class
spo_log_tcpdump.h:44: parse error before '*' token
In file included from ../../src/plugbase.h:69,
                 from ../../src/snort.h:313,
                 from spo_alert_fast.h:27,
                 from spo_alert_fast.c:37:
spo_alert_unixsock.h:41: field `pkth' has incomplete type
spo_alert_unixsock.h:55: confused by earlier errors, bailing out
*** Error code 1
make: Fatal error: Command failed for target `spo_alert_fast.o'
Current working directory /export/home/remote/snort/src/output-plugins
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory /export/home/remote/snort/src
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory /export/home/remote/snort
*** Error code 1
make: Fatal error: Command failed for target `all-recursive-am'
bash-2.03#

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.snort.org/pipermail/snort-users/attachments/20020131/43891631/attachment.html>


More information about the Snort-users mailing list