Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 119489

Summary: ebtables-2.0.6 does not build with gcc-4.x
Product: Gentoo Linux Reporter: Christoph Dwertmann <cdwertmann>
Component: [OLD] GCC PortingAssignee: solar (RETIRED) <solar>
Status: RESOLVED FIXED    
Severity: normal CC: gcc-porting, jakub, x86
Priority: High    
Version: 2005.1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 117482    

Description Christoph Dwertmann 2006-01-18 15:17:43 UTC
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 &#8216;parse&#8217;:
extensions/ebt_ip.c:316: error: invalid lvalue in assignment
make: *** [extensions/ebt_ip.o] Error 1
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-01-19 03:45:33 UTC
Try this patch, works here...

http://svn.exactcode.de/t2/trunk/package/security/ebtables/gcc4.patch
Comment 2 solar (RETIRED) gentoo-dev 2006-01-19 07:32:47 UTC
(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?
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-01-19 10:45:11 UTC
(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... :-)
Comment 4 Christoph Dwertmann 2006-01-19 10:57:24 UTC
Would the Gentoo people kindly upload this patch so I can emerge a working version?
Comment 5 solar (RETIRED) gentoo-dev 2006-01-19 11:12:27 UTC
(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.

Comment 6 Jakub Moc (RETIRED) gentoo-dev 2006-01-19 11:18:51 UTC
(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.
Comment 7 solar (RETIRED) gentoo-dev 2006-01-19 13:36:31 UTC
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.