LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: error in installing ipvsadm

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: error in installing ipvsadm
From: "Aihua Liu" <liuah@xxxxxxxxxxxxxxxxx>
Date: Wed, 25 Jun 2003 13:37:31 +0800
Hello,
>  I have patched the linux 2.4.18 kernel with ipvs.
>  Then trying to install the administration
>package,ipvsadm-1.21.
> when I have given the make command, the output is as
>follows:
>
>[root@ganeshl ipvsadm-1.21]# make
>gcc -Wall -Wunused -Wstrict-prototypes -g -O2
>-I/usr/src/linux/include -I.. -I.
>-DVERSION=\"1.21\"
>-DSCHEDULERS=\""rr|wrr|lc|wlc|lblc|dh|sh"\"
>-DHAVE_POPT -DHAVE_NET_IP_VS_H -o ipvsadm.o -c
>ipvsadm.c
>In file included from ipvsadm.c:119:
>libipvs/libipvs.h:14:23: net/ip_vs.h: No such file or
>directory

Gcc can't find ip_vs.h in /usr/src/linux/include/net.
You can copy /usr/src/linux/net/ipv4/ipvs/ip_vs.h to
/usr/src/linux/include/net/ and recomplie it.

>In file included from ipvsadm.c:119:
>libipvs/libipvs.h:45: warning: `struct
>ip_vs_rule_user' declared inside parameter list
>libipvs/libipvs.h:45: warning: its scope is only this
>definition or declaration, which is probably not what
>you want
>libipvs/libipvs.h:52: warning: `struct
>ip_vs_service_user' declared inside parameter list
>libipvs/libipvs.h:54: warning: `struct
>ip_vs_service_user' declared inside parameter list
>libipvs/libipvs.h:59: warning: `struct
>ip_vs_service_user' declared inside parameter list
>libipvs/libipvs.h:63: warning: `struct
>ip_vs_dest_user' declared inside parameter list
>libipvs/libipvs.h:65: warning: `struct
>ip_vs_dest_user' declared inside parameter list
>libipvs/libipvs.h:71: parse error before "fwmark"
>libipvs/libipvs.h:71: warning: function declaration
>isn't a prototype
>ipvsadm.c:199: `IP_VS_SO_SET_MAX' undeclared here (not
>in a function)
>ipvsadm.c:199: `IP_VS_BASE_CTL' undeclared here (not
>in a function)
>ipvsadm.c:199: confused by earlier errors, bailing out
>make: *** [ipvsadm.o] Error 1
>
>
>please help me come out of this error!
>  Iam a linux newbie
>ravikumar
>
>__________________________________
>Do you Yahoo!?
>SBC Yahoo! DSL - Now only $29.95 per month!
>http://sbc.yahoo.com
>_______________________________________________
>LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
>Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
>or go to http://www.in-addr.de/mailman/listinfo/lvs-users

= = = = = = = = = = = = = = = = = = = =
*******************************************

 Aihua Liu
  浪潮北京公司HPSD
  电话:010-62988886-6747(办公室)
        010-62977570(宿舍)
 liuah@xxxxxxxxxxxxxxxxx

*******************************************
                     2003-06-25



<Prev in Thread] Current Thread [Next in Thread>