LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: [lvs-users] Through the source code ipvsadm-1.26 installation error

To: 饶俊明 <raojm@xxxxxxxxx>
Subject: Re: [lvs-users] Through the source code ipvsadm-1.26 installation error
Cc: lvs-users <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
From: Simon Horman <horms@xxxxxxxxxxxx>
Date: Mon, 27 Feb 2012 15:56:12 +0900
On Mon, Feb 27, 2012 at 02:37:09PM +0800, 饶俊明 wrote:
> Hi all
> 
> Through the source code ipvsadm-1.26 installation error , 
> error information:
> [root@lvs1 ipvsadm-1.26]# make
> make -C libipvs
> make[1]: Entering directory `/home/software/ipvsadm-1.26/libipvs'
> gcc -Wall -Wunused -Wstrict-prototypes -g -fPIC -DLIBIPVS_USE_NL  
> -DHAVE_NET_IP_VS_H -c -o libipvs.o libipvs.c
> gcc -Wall -Wunused -Wstrict-prototypes -g -fPIC -DLIBIPVS_USE_NL  
> -DHAVE_NET_IP_VS_H -c -o ip_vs_nl_policy.o ip_vs_nl_policy.c
> ar rv libipvs.a libipvs.o ip_vs_nl_policy.o
> ar: creating libipvs.a
> a - libipvs.o
> a - ip_vs_nl_policy.o
> gcc -shared -Wl,-soname,libipvs.so -o libipvs.so libipvs.o ip_vs_nl_policy.o
> make[1]: Leaving directory `/home/software/ipvsadm-1.26/libipvs'
> gcc -Wall -Wunused -Wstrict-prototypes -g  -DVERSION=\"1.26\" 
> -DSCHEDULERS=\""rr|wrr|lc|wlc|lblc|lblcr|dh|sh|sed|nq"\" -DPE_LIST=\""sip"\"  
> -DHAVE_NET_IP_VS_H -c -o ipvsadm.o ipvsadm.c
> ipvsadm.c: 在函数‘print_largenum’中:
> ipvsadm.c:1383: 警告:域宽 的类型应该是‘int’,但实参 2 的类型为‘size_t’
> gcc -Wall -Wunused -Wstrict-prototypes -g  -DVERSION=\"1.26\" 
> -DSCHEDULERS=\""rr|wrr|lc|wlc|lblc|lblcr|dh|sh|sed|nq"\" -DPE_LIST=\""sip"\"  
> -DHAVE_NET_IP_VS_H -c -o config_stream.o config_stream.c
> gcc -Wall -Wunused -Wstrict-prototypes -g  -DVERSION=\"1.26\" 
> -DSCHEDULERS=\""rr|wrr|lc|wlc|lblc|lblcr|dh|sh|sed|nq"\" -DPE_LIST=\""sip"\"  
> -DHAVE_NET_IP_VS_H -c -o dynamic_array.o dynamic_array.c
> gcc -Wall -Wunused -Wstrict-prototypes -g -o ipvsadm ipvsadm.o 
> config_stream.o dynamic_array.o libipvs/libipvs.a  -lnl
> ipvsadm.o: In function `parse_options':
> /home/software/ipvsadm-1.26/ipvsadm.c:432: undefined reference to 
> `poptGetContext'
> /home/software/ipvsadm-1.26/ipvsadm.c:435: undefined reference to 
> `poptGetNextOpt'
> /home/software/ipvsadm-1.26/ipvsadm.c:660: undefined reference to 
> `poptBadOption'
> /home/software/ipvsadm-1.26/ipvsadm.c:502: undefined reference to 
> `poptGetNextOpt'
> /home/software/ipvsadm-1.26/ipvsadm.c:667: undefined reference to 
> `poptStrerror'
> /home/software/ipvsadm-1.26/ipvsadm.c:667: undefined reference to 
> `poptBadOption'
> /home/software/ipvsadm-1.26/ipvsadm.c:670: undefined reference to 
> `poptFreeContext'
> /home/software/ipvsadm-1.26/ipvsadm.c:677: undefined reference to `poptGetArg'
> /home/software/ipvsadm-1.26/ipvsadm.c:678: undefined reference to `poptGetArg'
> /home/software/ipvsadm-1.26/ipvsadm.c:679: undefined reference to `poptGetArg'
> /home/software/ipvsadm-1.26/ipvsadm.c:690: undefined reference to `poptGetArg'
> /home/software/ipvsadm-1.26/ipvsadm.c:693: undefined reference to 
> `poptFreeContext'
> collect2: ld 返回 1
> make: *** [ipvsadm] 错误 1

Hi,

please install the development package for popt which should
give you popt.h.

_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://lists.graemef.net/mailman/listinfo/lvs-users
<Prev in Thread] Current Thread [Next in Thread>