On Sat, May 04, 2002 at 11:34:41AM +0200, Torsten Buslei wrote:
> 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?
You would appear to have a version of popt that does not support optional
arguments (POPT_ARGFLAG_OPTIONAL). Your fix should be fine, with the side
effect that you will have to give an argument to -p / --persistent if you
use that option.
--
Horms
|