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

Bug 335347

Summary: net-misc/iputils-20100418 fails to build with <linux-headers 2.6.25 due to missing SO_MARK
Product: Gentoo Linux Reporter: Mark Wagner <carnildo>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Mark Wagner 2010-08-31 01:35:50 UTC
net-misc/iputils-20100418 uses the SO_MARK socket option, which was introduced with the 2.6.25 kernel.  When attempting to compile with older headers (such as from the 2.4 series), compilation fails.

Reproducible: Always

Steps to Reproduce:
1. Set up a system with sys-kernel/linux-headers-2.4.33.3
2. emerge '=net-misc/iputils-20100418'

Actual Results:  
ping_common.c: In function `setup':
ping_common.c:489: error: `SO_MARK' undeclared (first use in this function)
ping_common.c:489: error: (Each undeclared identifier is reported only once
ping_common.c:489: error: for each function it appears in.)
make: *** [ping_common.o] Error 1

Expected Results:  
Either the package compiles successfully, or Portage informs the user that iputils-20100418 requires linux-headers-2.6.25 or newer.
Comment 1 SpanKY gentoo-dev 2010-08-31 17:10:28 UTC
makes more sense to only use SO_MARK when it's available.  this is hardly a reason to break support with older kernels.

http://sources.gentoo.org/net-misc/iputils/iputils-20100418.ebuild?r1=1.6&r2=1.7
http://sources.gentoo.org/net-misc/iputils/files/iputils-20100418-so_mark.patch?rev=1.1