argus 3.0.3.10 fails to build with sasl

carter at qosient.com carter at qosient.com
Mon Jun 14 23:25:23 EDT 2010


Hey Peter,
This test should be supported by autoconf on the native machine.  If you run autoconf, and then run ./configure, (using a newly generated configure script) do you get a better result?

Carter 

Sent from my Verizon Wireless BlackBerry

-----Original Message-----
From: Peter Volkov <pva at gentoo.org>
Date: Mon, 14 Jun 2010 09:30:52 
To: Carter Bullard<carter at qosient.com>
Cc: <argus-info at lists.andrew.cmu.edu>
Subject: Re: argus 3.0.3.10 fails to build with sasl

Hi Carter, I've tried argus-3.0.3.11 and it build fine with sasl. Thank
you.

BTW, I've noticed another minor issue. During ./configure I see:

checking gcc version... 
./configure: line 3574: test: -gt: unary operator expected

I've investigated this bit and found that aclocal.in checks gcc version
as:

         ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
             sed -e '/^gcc version /!d' \
            -e 's/^gcc version //' \
            -e 's/ .*//' -e 's/^[[[^0-9]]]*//' \
            -e 's/\..*//'`)

and it looks like gcc -v output changed since now this sed provides
empty output here. Also with ru_RU.UTF-8 locale this sed fails even more
as actual output is translated: 'драйвер gcc версия 4.4.4;'. I've looked
around and found that there is ax_gcc_version.m4 check in
sys-devel/autoconf-archive package (http://autoconf-archive.cryp.to/).
They check for version with $CC -dumpversion (see attached
ax_gcc_version.m4), so probably it's enough to update this with... Well,
actually I'm unsure how to fix this since I don't understand why this
check exists. My guess is that this check compares major gcc version
with 1 but since I don't believe gcc-1.x.x still exist probably it's
safe just to drop this check..

BTW, exactly same minor issue in argus-clients.

--
Peter.


В Втр, 01/06/2010 в 13:38 -0400, Carter Bullard пишет:
> The linking issue is a bit more complicated than just moving the assignment
> farther into the config, which, of course, is the right thing to do.  I've broken it
> down a bit further, and it seems to work a bit better.  
> 
> If this works for you, I'll commit it.  This is a diff from argus-3.0.3.10.
> 
> thoth:argus carter$ p4 diff configure.in
> ==== //depot/argus/argus/configure.in#34 - /home/carter/argus/argus/configure.in ====
> 255a256,257
> > CMU_SASL2(V_INCLS)
> > 
> 257c259
> < LIBS="$LIBS $LIB_SASL $LIB_OPENWRT"
> ---
> > LIBS="$LIBS $LIB_SASL"
> 334d335
> < CMU_SASL2(V_INCLS)
> 342a344,345
> > LIBS="$LIBS $LIB_OPENWRT"
> > 
> 
> What do you think?
> 
> Carter
> 
> On May 21, 2010, at 8:46 AM, Peter Volkov wrote:
> 
> > Hi Carter. I've just tried to install argus-3.0.3.10 with sasl support
> > enabled and notice that it fails to build with:
> > 
> > x86_64-pc-linux-gnu-gcc -O3 -O2 -pipe -march=native -mtune=native -ggdb -I.  -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 -DHAVE_UNISTD_H=1 -DHAVE_STRING_H=1 -DHAVE_FCNTL_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_SYS_VFS_H=1 -DHAVE_ZLIB_H=1 -DHAVE_BACKTRACE=1 -DHAVE_VFPRINTF=1 -DHAVE_STRCASECMP=1 -DHAVE_STRDUP=1 -DHAVE_STRFTIME=1 -DHAVE_INET_ATON=1 -DHAVE_SETLINEBUF=1 -DHAVE_ALARM=1 -DHAVE_STRERROR=1 -DHAVE_STRTOF=1 -DHAVE_SYS_BITYPES_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_XDRMEM_CREATE=1 -DHAVE_XDR=1 -DHAVE_VSNPRINTF=1 -DHAVE_SNPRINTF=1 -DHAVE_GETADDRINFO=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_NETINET_ETHER_H=1 -DNETINET_ETHER_H_DECLARES_ETHER_HOSTTON= -DHAVE_DECL_ETHER_HOSTTON=1 -DARGUS_THREADS=1 -DHAVE_SCHED_GET_PRIORITY_MIN=1 -DHAVE_PCAP_LIST_DATALINKS=1 -DHAVE_PCAP_SET_DATALINK=1 -DHAVE_PCAP_DATALINK_NAME_TO_VAL=1 -DHAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION=1 -DHAVE_PCAP_GET_SELECTABLE_FD=1 -DHAVE_PCAP_NEXT_EX=1 -DHAVE_PCAP_DUMP_FTELL=1 -DARGUS_SASL=1 -DSTDC_HEADERS=1 -DARGUS_SYSLOG=1 -c ArgusOutput.c
> > ArgusOutput.c: In function 'ArgusCheckClientMessage':
> > ArgusOutput.c:1236: error: 'g' undeclared (first use in this function)
> > ArgusOutput.c:1236: error: (Each undeclared identifier is reported only once
> > ArgusOutput.c:1236: error: for each function it appears in.)
> > ArgusOutput.c:1236: error: expected ';' before 'else'
> > ArgusOutput.c:1683: error: expected declaration or statement at end of input
> > make: *** [ArgusOutput.o] Error 1
> > 
> > This really looks like a simple typo. argus-3.0.3.10-sasl2-typo.patch in
> > attachment fixes this issue. 
> > 
> > \" -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 -DHAVE_STRING_H=1 -DHAVE_FCNTL_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_SYS_VFS_H=1 -DHAVE_ZLIB_H=1 -DHAVE_BACKTRACE=1 -DHAVE_VFPRINTF=1 -DHAVE_STRCASECMP=1 -DHAVE_STRDUP=1 -DHAVE_STRFTIME=1 -DHAVE_INET_ATON=1 -DHAVE_SETLINEBUF=1 -DHAVE_ALARM=1 -DHAVE_STRERROR=1 -DHAVE_STRTOF=1 -DHAVE_SYS_BITYPES_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_XDRMEM_CREATE=1 -DHAVE_XDR=1 -DHAVE_VSNPRINTF=1 -DHAVE_SNPRINTF=1 -DHAVE_GETADDRINFO=1 -DHAVE_ETHER_HOSTTON=1 -DHAVE_NETINET_ETHER_H=1 -DNETINET_ETHER_H_DECLARES_ETHER_HOSTTON= -DHAVE_DECL_ETHER_HOSTTON=1 -DARGUS_THREADS=1 -DHAVE_SCHED_GET_PRIORITY_MIN=1 -DHAVE_PCAP_LIST_DATALINKS=1 -DHAVE_PCAP_SET_DATALINK=1 -DHAVE_PCAP_DATALINK_NAME_TO_VAL=1 -DHAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION=1 -DHAVE_PCAP_GET_SELECTABLE_FD=1 -DHAVE_PCAP_NEXT_EX=1 -DHAVE_PCAP_DUMP_FTELL=1 -DARGUS_SASL=1 -DSTDC_HEADERS=1 -DARGUS_SYSLOG=1 -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 ArgusLcp.o ArgusIsis.o ArgusAuth.o Argus802.11.o ArgusApp.o ArgusEvents.o -Wl,--as-needed -lpcap  -lpthread  -lz ../lib/argus_common.a -lm
> > ArgusUtil.o: In function `ArgusWriteOutSocket':
> > /vt/portage/tmp/portage/net-analyzer/argus-3.0.3.10/work/argus-3.0.3.10/argus/ArgusUtil.c:1668: undefined reference to `sasl_encode'
> > ArgusUtil.o: In function `ArgusWriteSocket':
> > /vt/portage/tmp/portage/net-analyzer/argus-3.0.3.10/work/argus-3.0.3.10/argus/ArgusUtil.c:1405: undefined reference to `sasl_getprop'
> > 
> > argus-3.0.3.10-sasl2.patch in attachment fixes linking issue. Please apply.

> 





More information about the argus mailing list