argus 3.0.3.10 fails to build with sasl

Carter Bullard carter at qosient.com
Tue Jun 1 13:38:43 EDT 2010


Hey Peter,
Thanks for the fixes!!
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.
> 
> -- 
> Peter.
> <argus-3.0.3.10-sasl2.patch><argus-3.0.3.10-sasl2-typo.patch>

Carter Bullard
CEO/President
QoSient, LLC
150 E 57th Street Suite 12D
New York, New York  10022

+1 212 588-9133 Phone
+1 212 588-9134 Fax



-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3815 bytes
Desc: not available
URL: <https://pairlist1.pair.net/pipermail/argus/attachments/20100601/e2489c30/attachment.bin>


More information about the argus mailing list