[Snort-devel] Problem compiling CVS source (fwd)

Martin Roesch roesch at ...48...
Tue Sep 12 22:12:25 EDT 2000


Oops, it looks like we need to transition the timeval struct changes across to
the 1.7-beta codebase....

    -Marty


Jed Pickel wrote:
> 
> Hey Kevin,
> 
> I forwarded this along to the snort developers list because I
> won't have a chance to look into it till Thursday.
> 
> * Jed
> 
> Kevin Pietersma <kev at ...52...> wrote...
> > Hi Jed,
> >
> > When I get the source from the CVS I have a problem compiling;
> >
> > gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/pcap    -g -O2 -Wall
> > -DENABLE_RESPONSE -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD
> > -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN -c spp_http_decode.c
> > gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/pcap    -g -O2 -Wall
> > -DENABLE_RESPONSE -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD
> > -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN -c spp_minfrag.c
> > gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/pcap    -g -O2 -Wall
> > -DENABLE_RESPONSE -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD
> > -DHAVE_NET_ETHERNET_H -DLIBNET_LIL_ENDIAN -c spp_portscan.c
> > spp_portscan.c: In function `NewConnection':
> > spp_portscan.c:203: incompatible types in assignment
> > spp_portscan.c: In function `NewSource':
> > spp_portscan.c:294: incompatible types in assignment
> > spp_portscan.c:295: incompatible types in assignment
> > spp_portscan.c: In function `NewScan':
> > spp_portscan.c:622: incompatible types in assignment
> > spp_portscan.c: In function `PortscanPreprocFunction':
> > spp_portscan.c:826: incompatible types in assignment
> > make: *** [spp_portscan.o] Error 1
> >
> >
> > I'm not a programmer so I'm at a loss.  ./configure (with or without
> > options enabled) runs through OK but make dies.  I've include config.log
> > at the end of this email in case it contains anything of use.  If I use the
> > spp_portscan.c from the 1.6.3 source then it will compile and seems to be OK.
> >
> >
> >
> >
> > root at ...53...:/var/tmp/snort# cat config.log
> > This file contains any messages produced by compilers while
> > running configure, to aid debugging if configure makes a mistake.
> >
> > configure:581: checking for a BSD compatible install
> >
> > configure:634: checking whether build environment is sane
> > configure:691: checking whether make sets ${MAKE}
> > configure:738: checking for working aclocal
> > configure:751: checking for working autoconf
> > configure:764: checking for working automake
> > configure:777: checking for working autoheader
> > configure:790: checking for working makeinfo
> > configure:806: checking for gcc
> > configure:919: checking whether the C compiler (gcc  ) works
> > configure:935: gcc -o conftest    conftest.c  1>&5
> > configure:961: checking whether the C compiler (gcc  ) is a cross-compiler
> > configure:966: checking whether we are using GNU C
> > configure:994: checking whether gcc accepts -g
> > configure:1029: checking for gcc option to accept ANSI C
> > configure:1109: checking for gcc
> > configure:1222: checking whether the C compiler (gcc -g -O2 ) works
> > configure:1238: gcc -o conftest -g -O2   conftest.c  1>&5
> > configure:1264: checking whether the C compiler (gcc -g -O2 ) is a
> > cross-compiler
> > configure:1269: checking whether we are using GNU C
> > configure:1297: checking whether gcc accepts -g
> > configure:1339: checking host system type
> > configure:1363: checking whether byte ordering is bigendian
> > configure:1572: checking how to run the C preprocessor
> > configure:1655: checking for strings.h
> > configure:1695: checking for string.h
> > configure:1735: checking for stdlib.h
> > configure:1775: checking for unistd.h
> > configure:1815: checking for sys/sockio.h
> > configure:1855: checking for paths.h
> > configure:1894: checking for inet_ntoa in -lnsl
> > configure:1944: checking for socket in -lsocket
> > configure:2111: checking for snprintf
> > configure:2186: checking whether printf must be declared
> > configure:2186: checking whether fprintf must be declared
> > configure:2186: checking whether syslog must be declared
> > configure:2186: checking whether puts must be declared
> > configure:2186: checking whether fputs must be declared
> > configure:2186: checking whether fputc must be declared
> > configure:2186: checking whether fopen must be declared
> > configure:2186: checking whether fclose must be declared
> > configure:2186: checking whether fwrite must be declared
> > configure:2186: checking whether fflush must be declared
> > configure:2186: checking whether getopt must be declared
> > configure:2186: checking whether bzero must be declared
> > configure:2186: checking whether bcopy must be declared
> > configure:2186: checking whether memset must be declared
> > configure:2186: checking whether strtol must be declared
> > configure:2186: checking whether strcasecmp must be declared
> > configure:2186: checking whether strncasecmp must be declared
> > configure:2186: checking whether strerror must be declared
> > configure:2186: checking whether perror must be declared
> > configure:2186: checking whether socket must be declared
> > configure:2186: checking whether sendto must be declared
> > configure:2186: checking whether vsnprintf must be declared
> > configure:2186: checking whether strtoul must be declared
> > configure:2271: checking for pcap_datalink in -lpcap
> > configure:2339: checking for /usr/include/mysql/mysql.h
> > configure:2454: checking for /usr/local/include/sql.h
> > configure:2647: checking for /usr/include/pgsql/libpq-fe.h
> > configure:2980: checking for u_int8_t
> > configure:3013: checking for u_int16_t
> > configure:3046: checking for u_int32_t
> > configure:3092: checking for a BSD compatible install
> > root at ...53...:/var/tmp/snort#
> _______________________________________________
> Snort-devel mailing list
> Snort-devel at lists.sourceforge.net
> http://lists.sourceforge.net/mailman/listinfo/snort-devel

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



More information about the Snort-devel mailing list