os x make error...

Carter Bullard carter at qosient.com
Fri Oct 13 10:22:13 EDT 2006


Hey Peter,
Yeah, I removed the "unused variable" warnings last night, so those
should not be a problem.   I want to get rid of the tcpwrapper warnings,
but haven't found a way to do it yet.  I should just clue off of the  
APPLE
define, but I had problems with that on some old G4's a while back
and haven't tried again.

So how are the probes doing for you?  I think we've got some stability
now so I was going to release argus-3.0.  Any opinions?

Carter



On Oct 12, 2006, at 7:44 PM, Peter Van Epp wrote:

> On Thu, Oct 12, 2006 at 04:33:03PM -0400, Carter Bullard wrote:
>> Hey Poncenby,
>> I develop argus on a ppc g5 machine with the exact same kernel, etc.
>> The trick
>> maybe the version of xtools that you are using.  Here are the version
>> numbers from
>> my gcc:
>>
>> isis:/home/carter/argus/clients carter$ gcc -v
>> Using built-in specs.
>> Target: powerpc-apple-darwin8
>> Configured with: /private/var/tmp/gcc/gcc-5363.obj~28/src/ 
>> configure --
>> disable-checking -enable-werror --prefix=/usr --mandir=/share/man --
>> enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg]
>> [^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-
>> slibdir=/usr/lib --build=powerpc-apple-darwin8 --host=powerpc-apple-
>> darwin8 --target=powerpc-apple-darwin8
>> Thread model: posix
>> gcc version 4.0.1 (Apple Computer, Inc. build 5363)
>>
>> is this close at all to your setup?
>>
>> Carter
>>
> 	It looks identical to mine (newly built last week):
>
> test4:~ vanepp$ gcc -v
> Using built-in specs.
> Target: powerpc-apple-darwin8
> Configured with: /private/var/tmp/gcc/gcc-5363.obj~28/src/configure  
> --disable-checking -enable-werror --prefix=/usr --mandir=/share/man  
> --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^ 
> [cg][^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 -- 
> with-slibdir=/usr/lib --build=powerpc-apple-darwin8 --host=powerpc- 
> apple-darwin8 --target=powerpc-apple-darwin8
> Thread model: posix
> gcc version 4.0.1 (Apple Computer, Inc. build 5363)
>
> but I'm getting warnings on rc.32 in both clients and argus  
> although everything appears at a cursory glance to have built:
>
> argus-3.0.0.rc32
>
> ...
> gcc -g -g -Wall -Wmissing-prototypes -Wstrict-prototypes -Wall - 
> Wmissing-prototypes -Wstrict-prototypes -I. -I/usr/include  -I./../ 
> include  -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" - 
> DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT= 
> \"\" -DHAVE_VFPRINTF=1 -DHAVE_STRCASECMP=1 -DHAVE_STRLCAT=1 - 
> DHAVE_STRLCPY=1 -DHAVE_STRDUP=1 -DHAVE_STRFTIME=1 - 
> DHAVE_SETLINEBUF=1 -DHAVE_ALARM=1 -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_INTTYPES_H=1 -DHAVE_VSNPRINTF=1 -DHAVE_SNPRINTF=1 - 
> DHAVE_ETHER_HOSTTON=1 -DHAVE_STRUCT_ETHER_ADDR=1 - 
> DHAVE_DECL_ETHER_HOSTTON=0 -DARGUSDEBUG=1 -DHAVE_TCP_WRAPPER=1 - 
> DHAVE_SYS_SOCKIO_H=1 -DHAVE_STRING_H=1 -DHAVE_FCNTL_H=1 - 
> DHAVE_SYS_FILE_H=1 -DHAVE_SYSLOG_H=1 -DSTDC_HEADERS=1  - 
> DARGUS_SYSLOG=1 -c ArgusApp.c
> gcc -g -g -Wall -Wmissing-prototypes -Wstrict-prototypes -Wall - 
> Wmissing-prototypes -Wstrict-prototypes -I. -I/usr/include  -I./../ 
> include  -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" - 
> DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT= 
> \"\" -DHAVE_VFPRINTF=1 -DHAVE_STRCASECMP=1 -DHAVE_STRLCAT=1 - 
> DHAVE_STRLCPY=1 -DHAVE_STRDUP=1 -DHAVE_STRFTIME=1 - 
> DHAVE_SETLINEBUF=1 -DHAVE_ALARM=1 -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_INTTYPES_H=1 -DHAVE_VSNPRINTF=1 -DHAVE_SNPRINTF=1 - 
> DHAVE_ETHER_HOSTTON=1 -DHAVE_STRUCT_ETHER_ADDR=1 - 
> DHAVE_DECL_ETHER_HOSTTON=0 -DARGUSDEBUG=1 -DHAVE_TCP_WRAPPER=1 - 
> DHAVE_SYS_SOCKIO_H=1 -DHAVE_STRING_H=1 -DHAVE_FCNTL_H=1 - 
> DHAVE_SYS_FILE_H=1 -DHAVE_SYSLOG_H=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  
> ArgusAuth.o ArgusApp.o -lpcap -lwrap  ../lib/argus_common.a -lm
> /usr/bin/ld: warning multiple definitions of symbol _allow_severity
> ArgusOutput.o definition of _allow_severity in section (__DATA,__data)
> /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libwrap.dylib 
> (tcpd.o) definition of _allow_severity
> /usr/bin/ld: warning multiple definitions of symbol _main
> argus.o definition of _main in section (__TEXT,__text)
> /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libwrap.dylib 
> (tcpd.o) definition of _main
> /usr/bin/ld: warning multiple definitions of symbol _deny_severity
> ArgusOutput.o definition of _deny_severity in section (__DATA,__data)
> /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libwrap.dylib 
> (tcpd.o) definition of _deny_severity
> ### Done with /usr/local/src/argus-3.0.0.rc.32/argus
> test4:/usr/local/src/argus-3.0.0.rc.32 vanepp$ ls bin
> argus           argusbug        mkdep
>
> argus-clients-3.0.0.rc.32
>
> (these came up on FreeBSD as well)
>
> gcc -g  -Wall -Wmissing-prototypes -Wstrict-prototypes -I. -I../ 
> include  -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" - 
> DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT= 
> \"\" -DHAVE_VFPRINTF=1 -DHAVE_STRCASECMP=1 -DHAVE_STRLCAT=1 - 
> DHAVE_STRLCPY=1 -DHAVE_STRDUP=1 -DHAVE_STRFTIME=1 - 
> DHAVE_SETLINEBUF=1 -DHAVE_ALARM=1 -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_INTTYPES_H=1 -DARGUSDEBUG=1 -DARGUS_THREADS=1 - 
> DHAVE_TCP_WRAPPER=1 -DHAVE_SYS_SOCKIO_H=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 -DHAVE_STRTOF=1 - 
> DARGUS_CURSES=1 -DHAVE_DARWIN=1 -DSTDC_HEADERS=1  -DARGUS_SYSLOG - 
> c ./argus_code.c
> ./argus_code.c: In function 'Argusgen_mcode':
> ./argus_code.c:3138: warning: unused variable 'm'
> ./argus_code.c:3137: warning: unused variable 'i'
> ./argus_code.c:3137: warning: unused variable 'len'
> ./argus_code.c:3137: warning: unused variable 'mlen'
>
> ...
> gcc -g  -Wall -Wmissing-prototypes -Wstrict-prototypes -I. -I../ 
> include  -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" - 
> DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT= 
> \"\" -DHAVE_VFPRINTF=1 -DHAVE_STRCASECMP=1 -DHAVE_STRLCAT=1 - 
> DHAVE_STRLCPY=1 -DHAVE_STRDUP=1 -DHAVE_STRFTIME=1 - 
> DHAVE_SETLINEBUF=1 -DHAVE_ALARM=1 -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_INTTYPES_H=1 -DARGUSDEBUG=1 -DARGUS_THREADS=1 - 
> DHAVE_TCP_WRAPPER=1 -DHAVE_SYS_SOCKIO_H=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 -DHAVE_STRTOF=1 - 
> DARGUS_CURSES=1 -DHAVE_DARWIN=1 -DSTDC_HEADERS=1  -DARGUS_SYSLOG - 
> c ./argus_client.c
> ./argus_client.c:5210: warning: no previous prototype for  
> 'ArgusShiftArray'
> rm -f ../lib/argus_client.a; ar qc ../lib/argus_client.a  
> argus_client.o
> ranlib ../lib/argus_client.a
> making in ./clients
> ...
>
> and these are so far unique to the Mac (I haven't tried my Power5  
> Linux box yet :-)):
>
> gcc -g  -Wall -Wmissing-prototypes -Wstrict-prototypes -I. -I../ 
> include -I../common  -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" - 
> DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT= 
> \"\" -DHAVE_VFPRINTF=1 -DHAVE_STRCASECMP=1 -DHAVE_STRLCAT=1 - 
> DHAVE_STRLCPY=1 -DHAVE_STRDUP=1 -DHAVE_STRFTIME=1 - 
> DHAVE_SETLINEBUF=1 -DHAVE_ALARM=1 -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_INTTYPES_H=1 -DARGUSDEBUG=1 -DARGUS_THREADS=1 - 
> DHAVE_TCP_WRAPPER=1 -DHAVE_SYS_SOCKIO_H=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 -DHAVE_STRTOF=1 - 
> DARGUS_CURSES=1 -DHAVE_DARWIN=1 -DSTDC_HEADERS=1  -c ./radium.c
> gcc -g  -Wall -Wmissing-prototypes -Wstrict-prototypes -o radium  
> radium.o ../lib/argus_parse.a ../lib/argus_common.a ../lib/ 
> argus_client.a -lwrap
> /usr/bin/ld: warning multiple definitions of symbol _allow_severity
> radium.o definition of _allow_severity in section (__DATA,__data)
> /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libwrap.dylib 
> (tcpd.o) definition of _allow_severity
> /usr/bin/ld: warning multiple definitions of symbol _main
> ../lib/argus_parse.a(argus_main.o) definition of _main in section  
> (__TEXT,__text)
> /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libwrap.dylib 
> (tcpd.o) definition of _main
> /usr/bin/ld: warning multiple definitions of symbol _deny_severity
> radium.o definition of _deny_severity in section (__DATA,__data)
> /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libwrap.dylib 
> (tcpd.o) definition of _deny_severity
> ...
>
> Peter Van Epp / Operations and Technical Support
> Simon Fraser University, Burnaby, B.C. Canada
>





More information about the argus mailing list