LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: [lvs-users] lvs-users Digest, Vol 109, Issue 6

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: [lvs-users] lvs-users Digest, Vol 109, Issue 6
From: "Ryan O'Hara" <rohara@xxxxxxxxxx>
Date: Thu, 09 Feb 2012 19:56:57 -0600
On 02/09/2012 07:35 PM, 饶俊明 wrote:
> Hello
>
> Use the source code ipvsadm-1.26.tar.gz install the lvs tool, run the make 
> command, reported the following error:
> [root@lvs1 ipvsadm-1.26]# make
> make -C libipvs
> make[1]: Entering directory `/home/software/ipvsadm-1.26/libipvs'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/home/software/ipvsadm-1.26/libipvs'
> 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
>
> OS Version: Redhat enterprise 6;
> Kernel Version: 2.6.32-71.el6.x86_64;

Do you have the popt-static package installed? Try that or modify the 
Makefile such that POPT_LIB is set to "-lpopt".

Ryan


_______________________________________________
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>