LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Error while compiling ipvsadm

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Error while compiling ipvsadm
From: Torsten Buslei <mail@xxxxxxxxx>
Date: Sat, 04 May 2002 11:34:41 +0200
Hi all,

I've just compiled and installed a new Kernel (2.4.18 with patch 2.4.19-pre8 and linux-2.4.18-ipvs-1.0.2.patch.gz).

After reboot (everything's fine till here), I want to compile the IPVSADM (file: ipvs-1.0.2.tar.gz or ipvsadm-1.20.tar.gz, same problem whith both files)

Now I've got the following error-messages:

newton:/home/tobu/ipvsadm # make
gcc -Wall -Wunused -Wstrict-prototypes -g -O2 -I/usr/src/linux/include -I.. -I. -DVERSION=\"1.20\" -DSCHEDULERS=\""rr|wrr|lc|wlc|lblc|dh|sh"\" -DHAVE_POPT -DHAVE_NET_IP_VS_H -o ipvsadm.o -c ipvsadm.c
ipvsadm.c: In function `parse_options':
ipvsadm.c:345: `POPT_ARGFLAG_OPTIONAL' undeclared (first use in this function)
ipvsadm.c:345: (Each undeclared identifier is reported only once
ipvsadm.c:345: for each function it appears in.)
make: *** [ipvsadm.o] Error 1
newton:/home/tobu/ipvsadm #

I've comment out this part of the line 345 of ipvsadm.c:

{"persistent", 'p', POPT_ARG_STRING/*|POPT_ARGFLAG_OPTIONAL*/,
                &optarg, 'p'},

After a make and make install I can use IPVSADM. Now my question: Is this OK, or did I worse mistake? Anybody else, who has this error?

Torsten



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