Compile/Make Problems on centos 6.2 - 64 Bit

John Kennedy wilson.amajohn at gmail.com
Tue Mar 20 16:21:41 EDT 2012


For Argus and the Argus-Clients you need zlib1g and/or zlib1g-dev i
believe.  On CentOS you can do a yum install zlib1g-devl or yum search zlib
if that is not the right package name.

John

On Tue, Mar 20, 2012 at 2:14 PM, Carter Bullard <carter at qosient.com> wrote:

> Hey Mark,
> Try argus-3.0.5.11 from the developer's site.  This is the argus-3.0.6
> candidate,
> and fixes all the bugs we know about.
>
>    http://qosient.com/argus/dev/argus-latest.tar.gz
>    http://qosient.com/argus/dev/argus-clients-latest.tar.gz
>
> If you want to stick with argus-3.0.4.x until the official release, the
> error is
> saying that you need to install a zlib package on your machine.  Argus
> is looking for a usable zlib (-lz).
>
> Carter
>
>
>
> On Mar 20, 2012, at 4:03 PM, Mark Bartlett wrote:
>
> Hello all,
>
> having some issues compiling/make(ing) argus and the argus clients on
> my CentOS 6.2 (64 bit) machine.
>
> Here is my system info:
> System:  Linux vampire 2.6.32-220.el6.x86_64 #1 SMP Tue Dec 6 19:48:22
> GMT 2011 x86_64 x86_64 x86_64 GNU/Linux
> Arch:    x86_64
>
> Paths:    /usr/bin/make /usr/bin/gmake /usr/bin/gcc /usr/bin/cc
>
> GCC:     Using built-in specs.
> Target: x86_64-redhat-linux
> Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
> --infodir=/usr/share/info
> --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap
> --enable-shared --enable-threads=posix --enable-checking=release
> --with-system-zlib --enable-__cxa_atexit
> --disable-libunwind-exceptions --enable-gnu-unique-object
> --enable-languages=c,c++,objc,obj-c++,java,fortran,ada
> --enable-java-awt=gtk --disable-dssi
> --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre
> --enable-libgcj-multifile --enable-java-maintainer-mode
> --with-ecj-jar=/usr/share/java/eclipse-ecj.jar
> --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic
> --with-arch_32=i686 --build=x86_64-redhat-linux
> Thread model: posix
> gcc version 4.4.6 20110731 (Red Hat 4.4.6-3) (GCC)
>
> flex 2.5.35
> bison (GNU Bison) 2.4.1
>
>
> I'm trying to install Argus-3.0.4 and Argus-client-3.0.4.1.
>
> Here are the error messages when running make for ARGUS:
>
> ### Making in /tmp/argus-3.0.4/common
> make[1]: Entering directory `/tmp/argus-3.0.4/common'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/tmp/argus-3.0.4/common'
> ### Done with /tmp/argus-3.0.4/common
> ### Making in /tmp/argus-3.0.4/argus
> make[1]: Entering directory `/tmp/argus-3.0.4/argus'
> gcc -O3 -I.  -I./../include  -DHAVE_CONFIG_H -o ../bin/argus argus.o
> ArgusModeler.o ArgusSource.o ArgusUtil.o ArgusOutput.o ArgusUdp.o
> ArgusTcp.o ArgusIcmp.o ArgusIgmp.o ArgusEsp.o ArgusArp.o ArgusFrag.o
> ArgusUdt.o ArgusLcp.o ArgusIsis.o ArgusAuth.o Argus802.11.o ArgusApp.o
> ArgusEvents.o  -lpcap -lpthread    -lm -lz ../lib/argus_common.a -lm
> /usr/bin/ld: cannot find -lz
> collect2: ld returned 1 exit status
> make[1]: *** [../bin/argus] Error 1
> make[1]: Leaving directory `/tmp/argus-3.0.4/argus'
> ### Done with /tmp/argus-3.0.4/argus
> ### Making in /tmp/argus-3.0.4/events
> make[1]: Entering directory `/tmp/argus-3.0.4/events'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/tmp/argus-3.0.4/events'
> ### Done with /tmp/argus-3.0.4/events
>
>
>
>
> And now for the ARGUS CLIENT:
>
> making in ./common
> make[1]: Entering directory `/tmp/argus-clients-3.0.4.1/common'
> gcc -O3 -I. -I../include   -DHAVE_CONFIG_H -DARGUS_SYSLOG -c ./argus_main.c
> rm -f ../lib/argus_parse.a; ar qc ../lib/argus_parse.a argus_main.o
> ranlib ../lib/argus_parse.a
> gcc -O3 -I. -I../include   -DHAVE_CONFIG_H -DARGUS_SYSLOG -c ./argus_code.c
> gcc -O3 -I. -I../include   -DHAVE_CONFIG_H -DARGUS_SYSLOG -c
> ./argus_filter.c
> gcc -O3 -I. -I../include   -DHAVE_CONFIG_H -DARGUS_SYSLOG -c ./argus_util.c
> gcc -O3 -I. -I../include   -DHAVE_CONFIG_H -DARGUS_SYSLOG -c ./argus_auth.c
> gcc -O3 -I. -I../include   -DHAVE_CONFIG_H -DARGUS_SYSLOG -c
> ./argus_parser.c
> flex -Pargus_ -t scanner.l > $$.scanner.c; mv $$.scanner.c scanner.c
> bison -y -p argus_ -d grammar.y
> mv y.tab.c grammar.c
> mv y.tab.h tokdefs.h
> gcc -O3 -I. -I../include   -DHAVE_CONFIG_H -DARGUS_SYSLOG -c ./scanner.c
> gcc -O3 -I. -I../include   -DHAVE_CONFIG_H -DARGUS_SYSLOG
> -Dyylval=argus_lval -c grammar.c
> sed -e 's/.*/char version[] = "&";/' ./../VERSION > version.c
> gcc -O3 -I. -I../include   -DHAVE_CONFIG_H -DARGUS_SYSLOG -c ./version.c
> rm -f ../lib/argus_common.a; ar qc ../lib/argus_common.a argus_code.o
> argus_filter.o argus_util.o argus_auth.o argus_parser.o scanner.o
> grammar.o version.o
> ranlib ../lib/argus_common.a
> gcc -O3 -I. -I../include   -DHAVE_CONFIG_H -DARGUS_SYSLOG -c
> ./argus_client.c
> gcc -O3 -I. -I../include   -DHAVE_CONFIG_H -DARGUS_SYSLOG -c
> ./argus_label.c
> gcc -O3 -I. -I../include   -DHAVE_CONFIG_H -DARGUS_SYSLOG -c ./argus_grep.c
> rm -f ../lib/argus_client.a; ar qc ../lib/argus_client.a
> argus_client.o argus_label.o argus_grep.o
> ranlib ../lib/argus_client.a
> gcc -O3 -I. -I../include   -DHAVE_CONFIG_H -DARGUS_SYSLOG -c
> ./argus_event.c
> rm -f ../lib/argus_event.a; ar qc ../lib/argus_event.a argus_event.o
> ranlib ../lib/argus_event.a
> make[1]: Leaving directory `/tmp/argus-clients-3.0.4.1/common'
> making in ./include
> make[1]: Entering directory `/tmp/argus-clients-3.0.4.1/include'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/tmp/argus-clients-3.0.4.1/include'
> making in ./clients
> make[1]: Entering directory `/tmp/argus-clients-3.0.4.1/clients'
> gcc -O3 -I. -I../include -I../common  -DHAVE_CONFIG_H -c ./ra.c
> gcc -O3 -o ../bin/ra ra.o ../lib/argus_parse.a ../lib/argus_common.a
> ../lib/argus_client.a -lm -lz   -lpthread
> /usr/bin/ld: cannot find -lz
> collect2: ld returned 1 exit status
> make[1]: *** [../bin/ra] Error 1
> make[1]: Leaving directory `/tmp/argus-clients-3.0.4.1/clients'
> making in ./ragraph
> make[1]: Entering directory `/tmp/argus-clients-3.0.4.1/ragraph'
> sed 's+ at BINDIR@+/usr/local/bin+' ragraph.pl | \
>        sed 's+ at PERLBIN@+/usr/bin/perl+' > ../bin/ragraph
> chmod +x ../bin/ragraph
> sed 's+ at BINDIR@+/usr/local/bin+' raplot.pl | \
>        sed 's+ at PERLBIN@+/usr/bin/perl+' > ../bin/raplot
> chmod +x ../bin/raplot
> make[1]: Leaving directory `/tmp/argus-clients-3.0.4.1/ragraph'
> making in ./ratop
> make[1]: Entering directory `/tmp/argus-clients-3.0.4.1/ratop'
> gcc -O3 -I. -I../include -I../common  -DHAVE_CONFIG_H -c ./ratop.c
> ./ratop.c: In function âRaRefreshDisplayâ:
> ./ratop.c:1200: error: static declaration of âRaHighlightDisplayâ
> follows non-static declaration
> ./ratop.c:1197: note: previous declaration of âRaHighlightDisplayâ was here
> ./ratop.c: In function âRaHighlightDisplayâ:
> ./ratop.c:1219: error: âRaWindowStartLineâ undeclared (first use in
> this function)
> ./ratop.c:1219: error: (Each undeclared identifier is reported only once
> ./ratop.c:1219: error: for each function it appears in.)
> ./ratop.c:1219: error: âRaDisplayLinesâ undeclared (first use in this
> function)
> ./ratop.c:1226: error: âRaWindowâ undeclared (first use in this function)
> ./ratop.c:1227: error: âA_REVERSEâ undeclared (first use in this function)
> ./ratop.c: In function âRaRefreshDisplayâ:
> ./ratop.c:1411: error: static declaration of âArgusNewRateBinsâ
> follows non-static declaration
> ./ratop.c:1407: note: previous declaration of âArgusNewRateBinsâ was here
> ./ratop.c:1444: error: static declaration of âArgusProcessBinsâ
> follows non-static declaration
> ./ratop.c:1406: note: previous declaration of âArgusProcessBinsâ was here
> ./ratop.c:1468: error: static declaration of âArgusProcessQueueâ
> follows non-static declaration
> ./ratop.c:1405: note: previous declaration of âArgusProcessQueueâ was here
> ./ratop.c:4414: error: static declaration of âArgusWindowCloseâ
> follows non-static declaration
> ./ratop.c:4411: note: previous declaration of âArgusWindowCloseâ was here
> ./ratop.c:4987: error: expected declaration or statement at end of input
> make[1]: *** [ratop.o] Error 1
> make[1]: Leaving directory `/tmp/argus-clients-3.0.4.1/ratop'
> making in ./radium
> make[1]: Entering directory `/tmp/argus-clients-3.0.4.1/radium'
> gcc -O3 -I. -I../include -I../common  -DHAVE_CONFIG_H -c ./radium.c
> gcc -O3 -o radium radium.o ../lib/argus_parse.a ../lib/argus_common.a
> ../lib/argus_client.a  -lm -lz   -lpthread
> /usr/bin/ld: cannot find -lz
> collect2: ld returned 1 exit status
> make[1]: *** [radium] Error 1
> make[1]: Leaving directory `/tmp/argus-clients-3.0.4.1/radium'
> making in ./radump
> make[1]: Entering directory `/tmp/argus-clients-3.0.4.1/radump'
> gcc -O3 -I. -I../include -I../common  -DHAVE_CONFIG_H -c ./radump.c
> gcc -O3 -I. -I../include -I../common  -DHAVE_CONFIG_H -c ./print-aodv.c
> gcc -O3 -I. -I../include -I../common  -DHAVE_CONFIG_H -c ./print-arp.c
> gcc -O3 -I. -I../include -I../common  -DHAVE_CONFIG_H -c ./print-beep.c
> gcc -O3 -I. -I../include -I../common  -DHAVE_CONFIG_H -c ./print-bfd.c
> gcc -O3 -I. -I../include -I../common  -DHAVE_CONFIG_H -c ./print-bgp.c
> gcc -O3 -I. -I../include -I../common  -DHAVE_CONFIG_H -c ./print-bootp.c
> gcc -O3 -I. -I../include -I../common  -DHAVE_CONFIG_H -c ./print-domain.c
> gcc -O3 -I. -I../include -I../common  -DHAVE_CONFIG_H -c ./print-krb.c
> gcc -O3 -I. -I../include -I../common  -DHAVE_CONFIG_H -c ./print-ldp.c
> gcc -O3 -I. -I../include -I../common  -DHAVE_CONFIG_H -c ./print-l2tp.c
> gcc -O3 -I. -I../include -I../common  -DHAVE_CONFIG_H -c ./print-lmp.c
> gcc -O3 -I. -I../include -I../common  -DHAVE_CONFIG_H -c ./print-msdp.c
> gcc -O3 -I. -I../include -I../common  -DHAVE_CONFIG_H -c ./print-ntp.c
> gcc -O3 -I. -I../include -I../common  -DHAVE_CONFIG_H -c ./print-pim.c
> gcc -O3 -I. -I../include -I../common  -DHAVE_CONFIG_H -c ./print-pptp.c
> gcc -O3 -I. -I../include -I../common  -DHAVE_CONFIG_H -c ./print-snmp.c
> gcc -O3 -I. -I../include -I../common  -DHAVE_CONFIG_H -c ./print-syslog.c
> gcc -O3 -I. -I../include -I../common  -DHAVE_CONFIG_H -c ./print-rip.c
> gcc -O3 -I. -I../include -I../common  -DHAVE_CONFIG_H -c ./print-telnet.c
> gcc -O3 -I. -I../include -I../common  -DHAVE_CONFIG_H -c ./print-tftp.c
> gcc -O3 -I. -I../include -I../common  -DHAVE_CONFIG_H -c ./print-isoclns.c
> gcc -O3 -I. -I../include -I../common  -DHAVE_CONFIG_H -c ./print-ether.c
> gcc -O3 -I. -I../include -I../common  -DHAVE_CONFIG_H -c ./print-timed.c
> gcc -O3 -I. -I../include -I../common  -DHAVE_CONFIG_H -c ./print-radius.c
> gcc -O3 -I. -I../include -I../common  -DHAVE_CONFIG_H -c ./print-rx.c
> gcc -O3 -I. -I../include -I../common  -DHAVE_CONFIG_H -c ./print-smb.c
> gcc -O3 -I. -I../include -I../common  -DHAVE_CONFIG_H -c ./print-stp.c
> gcc -O3 -I. -I../include -I../common  -DHAVE_CONFIG_H -c ./print-isakmp.c
> gcc -O3 -I. -I../include -I../common  -DHAVE_CONFIG_H -c ./print-igmp.c
> gcc -O3 -I. -I../include -I../common  -DHAVE_CONFIG_H -c ./print-dvmrp.c
> gcc -O3 -I. -I../include -I../common  -DHAVE_CONFIG_H -c ./smbutil.c
> gcc -O3 -I. -I../include -I../common  -DHAVE_CONFIG_H -c ./gmpls.c
> gcc -O3 -o ../bin/radump radump.o print-aodv.o print-arp.o
> print-beep.o print-bfd.o print-bgp.o print-bootp.o print-domain.o
> print-krb.o print-ldp.o print-l2tp.o print-lmp.o print-msdp.o
> print-ntp.o print-pim.o print-pptp.o print-snmp.o print-syslog.o
> print-rip.o print-telnet.o print-tftp.o print-isoclns.o print-ether.o
> print-timed.o print-radius.o print-rx.o print-smb.o print-stp.o
> print-isakmp.o print-igmp.o print-dvmrp.o smbutil.o gmpls.o
> ../lib/argus_parse.a ../lib/argus_common.a ../lib/argus_client.a -lm
> -lz   -lpthread
> /usr/bin/ld: cannot find -lz
> collect2: ld returned 1 exit status
> make[1]: *** [../bin/radump] Error 1
> make[1]: Leaving directory `/tmp/argus-clients-3.0.4.1/radump'
>
>
> Any help would be appreciated!
>
> Bartlett
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist1.pair.net/pipermail/argus/attachments/20120320/b27a32c4/attachment.html>


More information about the argus mailing list