make -j2 making in ./commonmake[1]: Entering directory `/usr/portage/local/tmp/portage/net-analyzer/argus-2.0.5/work/argus-2.0.5/common' make[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule. gcc -O2 -march=geode -fomit-frame-pointer -Os -pipe -I. -I../include -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -DHAVE_TCP_WRAPPER=1 -DHAVE_STRING_H=1 -DHAVE_FCNTL_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_ SYSLOG_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 -DSTDC_HEADERS=1 -DARGUS_SYSLOG=1 -c ./argus_parse.c In file included from ./argus_parse.c:120: ../include/argus_filter.h:228: error: conflicting types for 'bpf_dump' /usr/include/pcap/pcap.h:355: error: previous declaration of 'bpf_dump' was here ./argus_parse.c: In function 'ArgusReadStreamSocket': ./argus_parse.c:1917: warning: ignoring return value of 'write', declared with attribute warn_unused_result ./argus_parse.c: In function 'ArgusParseResourceFile': ./argus_parse.c:3440: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result make[1]: *** [argus_parse.o] Error 1 make[1]: Leaving directory `/usr/portage/local/tmp/portage/net-analyzer/argus-2.0.5/work/argus-2.0.5/common' making in ./servermake[1]: Entering directory `/usr/portage/local/tmp/portage/net-analyzer/argus-2.0.5/work/argus-2.0.5/server' make[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule. gcc -O2 -march=geode -fomit-frame-pointer -Os -pipe -I. -I../include -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -DHAVE_TCP_WRAPPER=1 -DHAVE_STRING_H=1 -DHAVE_FCNTL_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE _SYSLOG_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 -DSTDC_HEADERS=1 -c ./argus.c In file included from ./ArgusOutput.h:83, from ./argus.c:58: ../include/argus_filter.h:228: error: conflicting types for 'bpf_dump' /usr/include/pcap/pcap.h:355: error: previous declaration of 'bpf_dump' was here ./argus.c: In function 'ArgusParseResourceFile': ./argus.c:827: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result make[1]: *** [argus.o] Error 1 make[1]: Leaving directory `/usr/portage/local/tmp/portage/net-analyzer/argus-2.0.5/work/argus-2.0.5/server' making in ./clientsmake[1]: Entering directory `/usr/portage/local/tmp/portage/net-analyzer/argus-2.0.5/work/argus-2.0.5/clients' make[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule. gcc -O2 -march=geode -fomit-frame-pointer -Os -pipe -I . -I../include -I../common -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -DHAVE_TCP_WRAPPER=1 -DHAVE_STRING_H=1 -DHAVE_FCNTL_H=1 -DHAVE_SYS_FIL E_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 -DSTDC_HEADERS=1 -c ./ragator.c In file included from ./ragator.h:61, from ./ragator.c:58: ../include/argus_filter.h:228: error: conflicting types for 'bpf_dump' /usr/include/pcap/pcap.h:355: error: previous declaration of 'bpf_dump' was here make[1]: *** [ragator.o] Error 1 make[1]: Leaving directory `/usr/portage/local/tmp/portage/net-analyzer/argus-2.0.5/work/argus-2.0.5/clients' >>> Source compiled. >>> Test phase [not enabled]: net-analyzer/argus-2.0.5 >>> Install argus-2.0.5 into /usr/portage/local/tmp/portage/net-analyzer/argus-2.0.5/image/ category net-analyzer !!! dolib: lib/argus_common.a does not exist !!! dolib: lib/argus_parse.a does not exist !!! dobin: bin/ra* does not exist !!! newsbin: bin/argus_linux does not exist >>> Completed installing argus-2.0.5 into /usr/portage/local/tmp/portage/net-analyzer/argus-2.0.5/image/ * QA Notice: file does not exist: * * dolib: lib/argus_common.a does not exist * dolib: lib/argus_parse.a does not exist * dobin: bin/ra* does not exist * newsbin: bin/argus_linux does not exist * QA Notice: make jobserver unavailable: * * make[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule. * make[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule. * make[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule. ... the package does install, but all that is merged to the filesystem is documentation and a configuration file.
argus-2.0.6 fails in a similar way (but does at least fail to install, rather than appearing to succeed): make -j2### Making in /usr/portage/local/tmp/portage/net-analyzer/argus-2.0.6/work/argus-2.0.6/common make[1]: Entering directory `/usr/portage/local/tmp/portage/net-analyzer/argus-2.0.6/work/argus-2.0.6/common'i586-pc-linux-gnu-gcc -O2 -march=geode -fomit-frame-pointer -Os -pipe -I. -I../include -I/usr/include/pcap -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -D_FILE_OFFSET_BITS=64 -DHAVE_TCP_WRAPPER=1 -DHAVE_STRING_H=1 -DHAVE_FCNTL_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 -DCONFIG_X86_BSWAP=1 -DSTDC_ HEADERS=1 -DARGUS_SYSLOG=1 -c ./argus_parse.c i586-pc-linux-gnu-gcc -O2 -march=geode -fomit-frame-pointer -Os -pipe -I. -I../include -I/usr/include/pcap -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -D PACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE _UNISTD_H=1 -D_FILE_OFFSET_BITS=64 -DHAVE_TCP_WRAPPER=1 -DHAVE_STRING_H=1 -DHAVE_FCNTL_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 -DCONFIG_X86_BSWAP=1 -DSTDC_ HEADERS=1 -DARGUS_SYSLOG=1 -c ./argus_util.c In file included from ./argus_parse.c:120: ../include/argus_filter.h:228: error: conflicting types for 'bpf_dump' /usr/include/pcap/pcap.h:355: error: previous declaration of 'bpf_dump' was here In file included from ./argus_util.c:64: ../include/argus_filter.h:228: error: conflicting types for 'bpf_dump' /usr/include/pcap/pcap.h:355: error: previous declaration of 'bpf_dump' was here ./argus_parse.c: In function 'ArgusReadStreamSocket': ./argus_parse.c:1901: warning: ignoring return value of 'write', declared with attribute warn_unused_result ./argus_parse.c: In function 'ArgusParseResourceFile': ./argus_parse.c:3495: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result make[1]: *** [argus_parse.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: *** [argus_util.o] Error 1 make[1]: Leaving directory `/usr/portage/local/tmp/portage/net-analyzer/argus-2.0.6/work/argus-2.0.6/common' ### Done with /usr/portage/local/tmp/portage/net-analyzer/argus-2.0.6/work/argus-2.0.6/common ### Making in /usr/portage/local/tmp/portage/net-analyzer/argus-2.0.6/work/argus-2.0.6/server make[1]: Entering directory `/usr/portage/local/tmp/portage/net-analyzer/argus-2.0.6/work/argus-2.0.6/server' i586-pc-linux-gnu-gcc -O2 -march=geode -fomit-frame-pointer -Os -pipe -I. -I/usr/include/pcap -I../include -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" - DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAV E_UNISTD_H=1 -D_FILE_OFFSET_BITS=64 -DHAVE_TCP_WRAPPER=1 -DHAVE_STRING_H=1 -DHAVE_FCNTL_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 -DCONFIG_X86_BSWAP=1 -DSTDC _HEADERS=1 -c ./argus.c i586-pc-linux-gnu-gcc -O2 -march=geode -fomit-frame-pointer -Os -pipe -I. -I/usr/include/pcap -I../include -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" - DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAV E_UNISTD_H=1 -D_FILE_OFFSET_BITS=64 -DHAVE_TCP_WRAPPER=1 -DHAVE_STRING_H=1 -DHAVE_FCNTL_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 -DCONFIG_X86_BSWAP=1 -DSTDC _HEADERS=1 -c ./ArgusAuth.c In file included from ./ArgusOutput.h:83, from ./ArgusAuth.c:74: ../include/argus_filter.h:228: error: conflicting types for 'bpf_dump' /usr/include/pcap/pcap.h:355: error: previous declaration of 'bpf_dump' was here In file included from ./ArgusOutput.h:83, from ./argus.c:58: ../include/argus_filter.h:228: error: conflicting types for 'bpf_dump' /usr/include/pcap/pcap.h:355: error: previous declaration of 'bpf_dump' was here ./argus.c: In function 'ArgusParseResourceFile': ./argus.c:836: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result make[1]: *** [ArgusAuth.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: *** [argus.o] Error 1 make[1]: Leaving directory `/usr/portage/local/tmp/portage/net-analyzer/argus-2.0.6/work/argus-2.0.6/server' ### Done with /usr/portage/local/tmp/portage/net-analyzer/argus-2.0.6/work/argus-2.0.6/server >>> Source compiled. >>> Test phase [not enabled]: net-analyzer/argus-2.0.6 >>> Install argus-2.0.6 into /usr/portage/local/tmp/portage/net-analyzer/argus-2.0.6/image/ category net-analyzer !!! dolib: lib/argus_common.a does not exist !!! dolib: lib/argus_parse.a does not exist * ERROR: net-analyzer/argus-2.0.6 failed: * dolib failed * * Call stack: * ebuild.sh, line 54: Called src_install * environment, line 2264: Called die * The specific snippet of code: * dolib lib/argus_common.a lib/argus_parse.a || die "dolib failed"; * * If you need support, post the output of 'emerge --info =net-analyzer/argus-2.0.6', * the complete build log and the output of 'emerge -pqv =net-analyzer/argus-2.0.6'. * The complete build log is located at '/usr/portage/local/log/build/net-analyzer/argus-2.0.6:20100501-220007.log'. * The ebuild environment file is located at '/usr/portage/local/tmp/portage/net-analyzer/argus-2.0.6/temp/environment'. * S: '/usr/portage/local/tmp/portage/net-analyzer/argus-2.0.6/work/argus-2.0.6' * QA Notice: file does not exist: * * dolib: lib/argus_common.a does not exist * dolib: lib/argus_parse.a does not exist
Please, paste your "emerge --info" output.
I'm going to request stabilization for net-analyzer/argus-3.0.2 in nearest future and drop 2.x versions from the tree. Please, try 3.x.
argus-3.0.3.8 built and installed successfully. However, after editing /etc/argus/argus.conf to set the correct network interface, starting /etc/init.d/argus silently fails after printing its PID and stating that it is starting. Invoking argus manually (with or without the '-d' option) results in the same thing. stracing the argus process shows it to fail after: 16:23:52 writev(2, [{"argus[4900]: 07 May 10 16:23:52.665483 syntax error\n", 52}], 1argus[4900]: 07 May 10 16:23:52.665483 syntax error ) = 52 <0.000040> ... without giving any clue as to where the syntax error occurs. I'll try again with argus-3.0.2...
Right - the syntax error seems to be misuse of strace on my part (I was using "strace ... /usr/sbin/argus -- -d", and argus itself was receiving the '--' and aborting), but the next problem seems to be that argus drops privileges *then* tries to write its PID file. This means trying to write a file as argus:argus into /var/run, permissions 755 owned by root:root. Creating /var/run/argus belonging to argus:argus with permissions 755 seems to have fixed this problem, and argus is collecting data.
Stuart thank you for report. Could you open new bug for pid issue, please? One issue - one bug. Request to stabilize 3.0.8 is filled. This bug is fixed.