LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

build ipvsadm-1.24-5.src.rpm fail in rhel4 u2 box

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: build ipvsadm-1.24-5.src.rpm fail in rhel4 u2 box
From: Cauchy Song <cauchy.song@xxxxxxxxx>
Date: Thu, 08 Dec 2005 11:17:25 +0800
I installed kernel-2.6.14-1.1644_FC4.i686.rpm from
http://download.fedora.redhat.com/pub/fedora/linux/core/updates/4/i386/,
and build ipvsadm-1.24-5.src.rpm from
http://www.linux-vs.org/software/kernel-2.6/:

[root@ranger-scm src]# pwd
/usr/src
[root@ranger-scm src]# ls -l
total 16
drwxr-xr-x 4 root root 4096 Dec 8 10:01 kernels
lrwxrwxrwx 1 root root 30 Dec 8 10:39 linux ->
kernels/2.6.14-1.1644_FC4-i686
drwxr-xr-x 7 root root 4096 Dec 7 18:14 redhat


# rpmbuild --rebuild ipvsadm-1.24-5.src.rpm
...
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.63042
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd ipvsadm-1.24
+ LANG=C
+ export LANG
+ unset DISPLAY
+ CFLAGS='-O2 -g -pipe -m32 -march=i386 -mtune=pentium4'
+ make
make -C libipvs
make[1]: Entering directory `/usr/src/redhat/BUILD/ipvsadm-1.24/libipvs'
gcc -Wall -Wunused -Wstrict-prototypes -g -O2 -I/usr/src/linux/include
-DHAVE_NET_IP_VS_H -c -o libipvs.o libipvs.c
ar rv libipvs.a libipvs.o
ar: creating libipvs.a
a - libipvs.o
make[1]: Leaving directory `/usr/src/redhat/BUILD/ipvsadm-1.24/libipvs'
gcc -Wall -Wunused -Wstrict-prototypes -g -O2 -I/usr/src/linux/include
-I.. -I. -DVERSION=\"1.24\"
-DSCHEDULERS=\""rr|wrr|lc|wlc|lblc|lblcr|dh|sh|sed|nq"\" -DHAVE_POPT
-DHAVE_NET_IP_VS_H -c -o ipvsadm.o ipvsadm.c
In file included from /usr/src/linux/include/asm/param.h:1,
from /usr/src/linux/include/linux/param.h:4,
from /usr/include/sys/param.h:24,
from ipvsadm.c:104:
/usr/src/linux/include/linux/config.h:6:2: #error including kernel
header in userspace; use the glibc headers instead!
make: *** [ipvsadm.o] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.63042 (%build)




<Prev in Thread] Current Thread [Next in Thread>
  • build ipvsadm-1.24-5.src.rpm fail in rhel4 u2 box, Cauchy Song <=