Hi Xin Li, Apply the patch from http://www.mail-archive.com/[email protected]/msg00646.html and try to compile again.
Arménio Pinto -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Xin Li Sent: segunda-feira, 5 de Dezembro de 2005 10:07 To: [email protected] Subject: [Flow-tools] Flow-tools source code does not compile with gcc 4? Hi People, The code of version 0.68-1 I downloaded from http://cng.ateneo.edu/cng/wyu/software/flow-tools.php does not compile. I got the following errors fttlv.c: In function ‘fttlv_enc_uint32’: fttlv.c:71: error: invalid lvalue in assignment fttlv.c:74: error: invalid lvalue in assignment fttlv.c: In function ‘fttlv_enc_uint16’: fttlv.c:110: error: invalid lvalue in assignment fttlv.c:113: error: invalid lvalue in assignment fttlv.c: In function ‘fttlv_enc_uint8’: fttlv.c:148: error: invalid lvalue in assignment fttlv.c:151: error: invalid lvalue in assignment fttlv.c: In function ‘fttlv_enc_str’: fttlv.c:186: error: invalid lvalue in assignment fttlv.c:189: error: invalid lvalue in assignment fttlv.c: In function ‘fttlv_enc_ifname’: fttlv.c:233: error: invalid lvalue in assignment fttlv.c:236: error: invalid lvalue in assignment fttlv.c:239: error: invalid lvalue in assignment fttlv.c:242: error: invalid lvalue in assignment fttlv.c: In function ‘fttlv_enc_ifalias’: fttlv.c:290: error: invalid lvalue in assignment fttlv.c:293: error: invalid lvalue in assignment fttlv.c:296: error: invalid lvalue in assignment fttlv.c:299: error: invalid lvalue in assignment fttlv.c:302: error: invalid lvalue in assignment I suppose the code is fine. So it seems a complier compatibility problem. I am using Fedora Core 4 and gcc 4. The statement that the complier claimed to be wrong are like (char*)buf+= 2; It can be simply fixed like buf = (char *)buf + 2; But then I have to manually fix all that problems :( Regards, -- Xin _______________________________________________ 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
