Compile Argus in cygwin

Ellis Lam ellis.lam at dmzglobal.com
Wed Jan 30 17:35:37 EST 2008


Hi Carter,

I tried to compile argus under cygwin but failed. Any idea ? Thks.

$ ./configure
checking build system type... i686-pc-cygwin
checking host system type... i686-pc-cygwin
checking target system type... i686-pc-cygwin
checking for gcc... gcc
checking for C compiler default output file name... a.exe
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... .exe
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking gcc version... 3
checking for inline... inline
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking how to run the C preprocessor... gcc -E
checking whether make sets $(MAKE)... yes
checking for ranlib... ranlib
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking sys/sockio.h usability... no
checking sys/sockio.h presence... no
checking for sys/sockio.h... no
checking for string.h... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking sys/file.h usability... yes
checking sys/file.h presence... yes
checking for sys/file.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking sys/vfs.h usability... yes
checking sys/vfs.h presence... yes
checking for sys/vfs.h... yes
checking for vfprintf... yes
checking for strcasecmp... yes
checking for strlcat... yes
checking for strlcpy... yes
checking for strdup... yes
checking for strftime... yes
checking for setlinebuf... yes
checking for alarm... yes
checking for strerror... yes
checking for strtof... yes
checking for floorf... yes
checking for remainderf... yes
checking sys/bitypes.h usability... no
checking sys/bitypes.h presence... no
checking for sys/bitypes.h... no
checking for int8_t... yes
checking for u_int8_t... yes
checking for int16_t... yes
checking for u_int16_t... yes
checking for int32_t... yes
checking for u_int32_t... yes
checking for int64_t... yes
checking for u_int64_t... yes
checking for inttypes.h... (cached) yes
checking whether inttypes.h defines the PRI[doxu]64 macros... yes
checking for vsnprintf... yes
checking for snprintf... yes
checking for getaddrinfo... no
checking for library containing gethostbyname... none required
checking for library containing socket... none required
checking for library containing putmsg... no
checking for ether_hostton... no
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for _LARGE_FILES value needed for large files... no
checking for local pcap library... not found
checking for main in -lpcap... no
checking for local wpcap library... checking for extraneous pcap header
directories... found -- -I../WpdPack/Include added
checking for pcap_list_datalinks... no
checking for pcap_set_datalink... no
checking for pcap_datalink_name_to_val... no
checking for pcap_breakloop... no
checking for pcap_dump_ftell... no
checking for local tcp_wrappers library... not found
checking for system tcp_wrappers library... yes
checking for flex... flex
checking for flex 2.4 or higher... yes
checking for bison... bison
checking for ranlib... ranlib
checking if unaligned accesses fail... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for ANSI C header files... (cached) yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating ./common/Makefile
config.status: creating ./argus/Makefile

ELam at sy7775 /cygdrive/c/temp/argus3/argus-3.0.0
$ make
### Making in /cygdrive/c/temp/argus3/argus-3.0.0/common
make[1]: Entering directory `/cygdrive/c/temp/argus3/argus-3.0.0/common'
gcc -O3 -I. -I../../WpdPack/Include -I../include/cygwin-include
-I./../include  -I./../argus -DPACKAGE_NAME=\"\" -DPACKAGE_TA
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
-DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STRING_H=1 -DHAVE_FCNTL_H
TLINEBUF=1 -DHAVE_ALARM=1 -DHAVE_STRERROR=1 -DHAVE_STRTOF=1
-DHAVE_FLOORF=1 -DHAVE_REMAINDERF=1 -DHAVE_INTTYPES_H=1 -DHAVE_VS
gcc -O3 -I. -I../../WpdPack/Include -I../include/cygwin-include
-I./../include  -I./../argus -DPACKAGE_NAME=\"\" -DPACKAGE_TA
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
-DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STRING_H=1 -DHAVE_FCNTL_H
TLINEBUF=1 -DHAVE_ALARM=1 -DHAVE_STRERROR=1 -DHAVE_STRTOF=1
-DHAVE_FLOORF=1 -DHAVE_REMAINDERF=1 -DHAVE_INTTYPES_H=1 -DHAVE_VS
gcc -O3 -I. -I../../WpdPack/Include -I../include/cygwin-include
-I./../include  -I./../argus -DPACKAGE_NAME=\"\" -DPACKAGE_TA
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
-DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STRING_H=1 -DHAVE_FCNTL_H
TLINEBUF=1 -DHAVE_ALARM=1 -DHAVE_STRERROR=1 -DHAVE_STRTOF=1
-DHAVE_FLOORF=1 -DHAVE_REMAINDERF=1 -DHAVE_INTTYPES_H=1 -DHAVE_VS
bison -y -p argus_ -d grammar.y
mv y.tab.c grammar.c
mv y.tab.h tokdefs.h
gcc -O3 -I. -I../../WpdPack/Include -I../include/cygwin-include
-I./../include  -I./../argus -DPACKAGE_NAME=\"\" -DPACKAGE_TA
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
-DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STRING_H=1 -DHAVE_FCNTL_H
TLINEBUF=1 -DHAVE_ALARM=1 -DHAVE_STRERROR=1 -DHAVE_STRTOF=1
-DHAVE_FLOORF=1 -DHAVE_REMAINDERF=1 -DHAVE_INTTYPES_H=1 -DHAVE_VS
flex -Pargus_ -t scanner.l > $$.scanner.c; mv $$.scanner.c scanner.c
gcc -O3 -I. -I../../WpdPack/Include -I../include/cygwin-include
-I./../include  -I./../argus -DPACKAGE_NAME=\"\" -DPACKAGE_TA
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
-DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STRING_H=1 -DHAVE_FCNTL_H
TLINEBUF=1 -DHAVE_ALARM=1 -DHAVE_STRERROR=1 -DHAVE_STRTOF=1
-DHAVE_FLOORF=1 -DHAVE_REMAINDERF=1 -DHAVE_INTTYPES_H=1 -DHAVE_VS
sed -e 's/.*/char version[] = "&";/' ./../VERSION > version.c
gcc -O3 -I. -I../../WpdPack/Include -I../include/cygwin-include
-I./../include  -I./../argus -DPACKAGE_NAME=\"\" -DPACKAGE_TA
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
-DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STRING_H=1 -DHAVE_FCNTL_H
TLINEBUF=1 -DHAVE_ALARM=1 -DHAVE_STRERROR=1 -DHAVE_STRTOF=1
-DHAVE_FLOORF=1 -DHAVE_REMAINDERF=1 -DHAVE_INTTYPES_H=1 -DHAVE_VS
rm -f ../lib/argus_common.a; ar qc ../lib/argus_common.a argus_util.o
argus_code.o argus_filter.o grammar.o scanner.o version
ranlib ../lib/argus_common.a
make[1]: Leaving directory `/cygdrive/c/temp/argus3/argus-3.0.0/common'
### Done with /cygdrive/c/temp/argus3/argus-3.0.0/common
### Making in /cygdrive/c/temp/argus3/argus-3.0.0/argus
make[1]: Entering directory `/cygdrive/c/temp/argus3/argus-3.0.0/argus'
gcc -O3 -I. -I../../WpdPack/Include -I../include/cygwin-include
-I./../include  -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -D
_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DHAVE_STRING_H=1 -DHAVE_FCNTL_H=1 -DHAVE_SYS
HAVE_ALARM=1 -DHAVE_STRERROR=1 -DHAVE_STRTOF=1 -DHAVE_FLOORF=1
-DHAVE_REMAINDERF=1 -DHAVE_INTTYPES_H=1 -DHAVE_VSNPRINTF=1 -DH
gcc -O3 -I. -I../../WpdPack/Include -I../include/cygwin-include
-I./../include  -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -D
_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DHAVE_STRING_H=1 -DHAVE_FCNTL_H=1 -DHAVE_SYS
HAVE_ALARM=1 -DHAVE_STRERROR=1 -DHAVE_STRTOF=1 -DHAVE_FLOORF=1
-DHAVE_REMAINDERF=1 -DHAVE_INTTYPES_H=1 -DHAVE_VSNPRINTF=1 -DH
gcc -O3 -I. -I../../WpdPack/Include -I../include/cygwin-include
-I./../include  -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -D
_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DHAVE_STRING_H=1 -DHAVE_FCNTL_H=1 -DHAVE_SYS
HAVE_ALARM=1 -DHAVE_STRERROR=1 -DHAVE_STRTOF=1 -DHAVE_FLOORF=1
-DHAVE_REMAINDERF=1 -DHAVE_INTTYPES_H=1 -DHAVE_VSNPRINTF=1 -DH
ArgusSource.c: In function `ArgusGetPackets':
ArgusSource.c:1963: error: parse error before "if"
ArgusSource.c: At top level:
ArgusSource.c:1991: error: parse error before '&' token
ArgusSource.c:1991: warning: data definition has no type or storage
class
make[1]: *** [ArgusSource.o] Error 1
make[1]: Leaving directory `/cygdrive/c/temp/argus3/argus-3.0.0/argus'
### Done with /cygdrive/c/temp/argus3/argus-3.0.0/argus

WARNING This email contains information that is CONFIDENTIAL and may be subject to LEGAL PRIVILEGE. If you are not the intended recipient, you must not peruse, use, disseminate, distribute or copy this email or attachments. If you have received this in error, please notify us immediately by return email, facsimile or telephone (call us collect) and delete this email. Thank you. DMZGLOBAL ACCEPTS NO RESPONSIBILITY FOR CHANGES MADE TO THIS EMAIL OR TO ANY ATTACHMENTS AFTER TRANSMISSION FROM DMZGLOBAL.

__________________________________________________________________
  This email has been scanned by the DMZGlobal Business Quality 
              Electronic Messaging Suite.
Please see http://www.dmzglobal.com/services/bqem.htm for details.
__________________________________________________________________




More information about the argus mailing list