Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 335347 - net-misc/iputils-20100418 fails to build with <linux-headers 2.6.25 due to missing SO_MARK
Summary: net-misc/iputils-20100418 fails to build with <linux-headers 2.6.25 due to mi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-31 01:35 UTC by Mark Wagner
Modified: 2010-08-31 17:10 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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