Hello (please Cc me)
The latest upstream version of libnet-rawip-perl won't compile with gcc-4.0 and produces lot of the below quoted errors. I produced a patch but would like a real C programmer to verify what I tried. I tried to understand the changelog of gcc-4.0 and think I learned that the left hand side has to be a "plain simple variable without any frills" and as a typecast never changes the actual value the removing it should be fine, or? thanks, -christian- "pktr" and "user" are "struct"s and "ihl" an "u_int". RawIP.xs: In function 'XS_Net__RawIP_dispatch': RawIP.xs:1287: error: invalid lvalue in assignment RawIP.xs: In function 'XS_Net__RawIP_loop': RawIP.xs:1309: error: invalid lvalue in assignment SID_i386 [EMAIL PROTECTED]:~/debian/perl/t$ diff ../libnet-rawip-perl-0.20/RawIP.xs RawIP.xs 762c762 < (u_char*)pktr = (u_char*)pktr + (ihl*4 - 20); --- > pktr = (u_char*)pktr + (ihl*4 - 20); 788c788 < (u_char*)pktr = (u_char*)pktr + (doff*4 - 20); --- > pktr = (u_char*)pktr + (doff*4 - 20); 821c821 < (u_char*)pktr = (u_char*)pktr + (ihl*4 - 20); --- > pktr = (u_char*)pktr + (ihl*4 - 20); 861c861 < (u_char*)pktr = (u_char*)pktr + (ihl*4 - 20); --- > pktr = (u_char*)pktr + (ihl*4 - 20); 895c895 < (u_char*)pktr = (u_char*)pktr + (ihl*4 - 20); --- > pktr = (u_char*)pktr + (ihl*4 - 20); 1287c1287 < (u_char *)user = SvIV(user); --- > user = SvIV(user); 1309c1309 < (u_char *)user = SvIV(user); --- > user = SvIV(user); -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]