Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 76615 - iputils causes Please, set correct KERNEL_INCLUDE during compile
Summary: iputils causes Please, set correct KERNEL_INCLUDE during compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-04 03:00 UTC by Charles Frank
Modified: 2005-01-04 15:41 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 Charles Frank 2005-01-04 03:00:23 UTC
When trying to emerge iputils during a system emerge from LiveCD, 2004.3, iputils fails.  This happens after the emerge --sync, and the .ebuild problem doesn't seem to be in the portage distributions (portage-20050102||20050103.tar.bz2).  I found this information the hard way.  I've temporarily patched my own .ebuild (solution provided in Additional Info).


Reproducible: Always
Steps to Reproduce:
1. Load up Live CD 2004.3
2. download portage-20050103.tar.bz2 or portage-20050102.tar.bz2 (niether of these have the same problem) and stage2-pentium4
3. extract, chroot
4. emerge --sync (here is where the problem comes in)
5. emerge system
5.b. Wait for iputils to come up.
6. Try to re-emerge iputils by itself . . . same result.

Actual Results:  
Patches applied (ebuild info):
021109-gcc34.patch
021109-no-pfkey-search.patch
021109-ipg-linux-2.6.patch
021109-syserror.patch
021109-uclibc-no-ether_ntohost.patch
iputils-021109-linux-udp-header.patch
>>> Source unpacked.
gcc
ar
Please, set correct KERNEL_INCLUDE
gcc -D_GNU_SOURCE -03 -march-pentium4 -pipe -Wstrict-prototypes -Wall -g -
Iinclude-glibc -include include-glibc/glibc-bugs.h -I../include tracepath.c -
lresolv -o tracepath
Please, set correct KERNEL_INCLUDE
make: *** [check-kernel] Error 1
make: *** Waiting for unfinished jobs.....

!!! ERROR: net-misc/iputils-021109-r3 failed.
!!! Function src_compile, Line 80, Exitcode 2


Expected Results:  
Should have successfully emerged (i.e. patched, compiled, installed).


Happened on a Pentium 4 laptop & a Pentium 3 desktop.

Temporary fix (plugger patch): 

removed the 1st entry in the 2nd sed of src_unpack() function:
REMOVED: -e 's:-I$(KERNEL_INCLUDE)::' \
TRIED & FAILED: -e "s:-I$(KERNEL_INCLUDE)::" \
TRIED & FAILED: -e "s:-I$(KERNEL_INCLUDE):" \
ORIGINAL: -e 's:-I$(KERNEL_INCLUDE)::' \

modified the 2nd entry in the 2nd sed of src_unpack() function: 
MODIFIED: -e "s:/usr/src/linux/include:${ROOT}/usr/include:" \
ORIGINAL: -e 's:-I/usr/src/linux/include::' \

modified the 3rd sed of src_unpack() function: 
MODIFIED: sed -i "s:-ll:-lfl -L${ROOT}/usr/lib ${LDFLAGS}:" setkey/Makefile || 
die "sed setkey failed"
ORIGINAL: sed -i "s:-ll:-lfl ${LDFLAGS}:" setkey/Makefile || die "sed setkey 
failed"

So mine looks like this: 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
set -i \
     -e "s:/usr/src/linux/include:${ROOT}/usr/include:" \
     Makefile libipsec/Makefile setkey/Makefile \
     || die "sed /usr/include failed"
use ipv6 || sed -i -e 's:IPV6_TARGETS=:#IPV6_TARGETS=:' Makefile

sed -i "s:-ll:-lfl -L${ROOT}/usr/lib ${LDFLAGS}:" setkey/Makefile || die "sed 
setkey failed"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Comment 1 SpanKY gentoo-dev 2005-01-04 15:41:29 UTC
fixed in cvs