[netflow-tools] "Fatal error - exiting immediately"
Tony and Robyn Lewis
gnutered at yahoo.com.au
Thu Nov 17 13:15:41 EST 2005
Damien Miller wrote:
>
> Try this, it shouldn't matter unless your compiler is buggy.
me at mymachine:~/softflowd-0.9.7$ patch -p0 <../patchfile2
patching file softflowd.c
Hunk #1 succeeded at 1752 (offset -3 lines).
me at mymachine:~/softflowd-0.9.7$ make
gcc -g -O2 -DFLOW_SPLAY -DEXPIRY_RB -I. -c -o
softflowd.o softflowd.c
softflowd.c: In function 'accept_control':
softflowd.c:1097: warning: pointer targets in passing argument 1 of
'fgets' differ in signedness
softflowd.c:1101: warning: pointer targets in passing argument 1 of
'__builtin_strchr' differ in signedness
softflowd.c:1101: warning: pointer targets in assignment differ in
signedness
softflowd.c:1109: warning: pointer targets in passing argument 1 of
'strlen' differ in signedness
softflowd.c:1109: warning: pointer targets in passing argument 1 of
'__builtin_strcmp' differ in signedness
softflowd.c:1109: warning: pointer targets in passing argument 1 of
'strlen' differ in signedness
... snip ...
softflowd.c:1160: warning: pointer targets in passing argument 1 of
'__builtin_strcmp' differ in signedness
softflowd.c:1160: warning: pointer targets in passing argument 1 of
'__builtin_strcmp' differ in signedness
softflowd.c: In function 'main':
softflowd.c:1749: error: incompatible type for argument 1 of 'memset'
make: *** [softflowd.o] Error 1
> What version of gcc are you using? something from the 4.x series perhaps?
me at mymachine:~/softflowd-0.9.7$ gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v
--enable-languages=c,c++,java,f95,objc,ada,treelang --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls
--program-suffix=-4.0 --enable-__cxa_atexit
--enable-libstdcxx-allocator=mt --enable-clocale=gnu
--enable-libstdcxx-debug --enable-java-gc=boehm --enable-java-awt=gtk
--enable-gtk-cairo
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre
--enable-mpfr --disable-werror --enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.0.2 (Debian 4.0.2-2)
Aha! I reconfigured and remade with gcc-3.3 and she seems to be working.
Is GCC 4.0 buggy?
Tony
More information about the netflow-tools
mailing list