Thanks. You're the third person to send me gcc4 patches in the past
week. 0.69 will have all this fixed, just need to get a box with gcc4
running.
--
mark
On May 19, 2005, at 1:26 PM, Mike Hunter wrote:
On May 19, "Mike Hunter" wrote:
On May 19, "Roger Weeks" wrote:
Greetings -
I'm attempting to compile flow-tools on a fedora core 4 test (yes, I
know it's a test release. it's a long story) and I get the following
from make:
Making all in lib
make[1]: Entering directory
`/var/netflow/installs/flow-tools-0.68/lib'
make all-am
make[2]: Entering directory
`/var/netflow/installs/flow-tools-0.68/lib'
source='ftio.c' object='ftio.o' libtool=no \
depfile='.deps/ftio.Po' tmpdepfile='.deps/ftio.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
gcc -I. -I./lib -I. -I. -I. -g -Wall -g -Wall -c `test -f 'ftio.c'
|| echo './'`ftio.c
ftio.c: In function 'readn':
ftio.c:2270: error: invalid lvalue in assignment
ftio.c: In function 'writen':
ftio.c:2295: error: invalid lvalue in assignment
make[2]: *** [ftio.o] Error 1
make[2]: Leaving directory
`/var/netflow/installs/flow-tools-0.68/lib'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/var/netflow/installs/flow-tools-0.68/lib'
make: *** [all-recursive] Error 1
I get the same results from 0.66 or 0.68 compiles.
This is gcc verison 4.0.0.
Can anyone tell me if this is even possible?
The line in question is:
(char*)ptr += nread;
Try changing it to this:
ptr = (void*)( ((char*)ptr) + nread);
Same story for the other line.
I don't have access to gcc4 so I can't test it.
Roger and I worked a bunch of these out and came up with a patch
(attached).
Mike
<ft68.lvalue.diff>_______________________________________________
Flow-tools mailing list
[EMAIL PROTECTED]
http://mailman.splintered.net/mailman/listinfo/flow-tools
_______________________________________________
Flow-tools mailing list
[EMAIL PROTECTED]
http://mailman.splintered.net/mailman/listinfo/flow-tools