I'm using gcc version 4.0.2 (Gentoo 4.0.2-r3, pie-8.7.8) on amd64. Building ebtables fails with: extensions/ebt_ip.c: In function ‘parse’: extensions/ebt_ip.c:316: error: invalid lvalue in assignment make: *** [extensions/ebt_ip.o] Error 1
Try this patch, works here... http://svn.exactcode.de/t2/trunk/package/security/ebtables/gcc4.patch
(In reply to comment #1) > Try this patch, works here... > > http://svn.exactcode.de/t2/trunk/package/security/ebtables/gcc4.patch Jakub, Where did you find this patch? Has it been submitted upstream? Did it come from upstream?
(In reply to comment #2) > Jakub, > Where did you find this patch? Has it been submitted upstream? Did it come from > upstream? Well, first hit in 'ebtables gcc4 patch' Google search - so, no idea whether it's been submitted upstream, but it works... :-)
Would the Gentoo people kindly upload this patch so I can emerge a working version?
(In reply to comment #4) > Would the Gentoo people kindly upload this patch so I can emerge a working > version? Not yet. Need to find the source of the patch and contact upstream about it.
(In reply to comment #5) > Not yet. Need to find the source of the patch and contact upstream about it. Well, it comes from T2 project - see http://www.t2-project.org/packages/ebtables.html; Christian Wiese <jeru@ixplanet.org> is listed as maintainer of ebtables there.
Thanks jakub ebtables-2.0.6-r1.ebuild ~x86 ~ppc ~amd64 commited to the tree. I don't really develop for gcc-4.x so I'm counting on you guys to decide if and when -r1 should go stable. For it to be marked stable it must continue to work for linux-2.4.x, linux-2.6.x, gcc-3.x and gcc-4.x Previous stable markings were x86 only.