LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: ipvsadm compile problem

To: <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: ipvsadm compile problem
From: "tong" <tong@xxxxxxxxx>
Date: Sat, 8 Dec 2001 11:11:59 +0800
I found that the previous errors (  see  bottom )  went away if  I copied
some of
the missing files ( e.g. ip_vs.h, ip_masq.h .... )
to /usr/include/linux and /usr/include/net instead of pointing include
directories to
the existing directories of those files.  However, a lot more new errors
popped up.
I then tried version 1.5 of ipvsadm in Red Hat 7.2 and got the following
error:
----------------------------------------------------------------------------
gcc -Wall -Wunused -Wstrict-prototypes -g -O2 -I/usr/src/linux/include
-DVERSION=\"1.15\" -DHAVE_POPT -c ipvsadm.c
ipvsadm.c: In function `parse_options':
ipvsadm.c:499: `IP_MASQ_F_VS_TUNNEL' undeclared (first use in this
function)
ipvsadm.c:499: (Each undeclared identifier is reported only once
ipvsadm.c:499: for each function it appears in.)
ipvsadm.c:505: `IP_MASQ_F_VS_DROUTE' undeclared (first use in this
function)
ipvsadm.c: In function `process_options':
ipvsadm.c:818: `IP_MASQ_F_VS_DROUTE' undeclared (first use in this
function)
ipvsadm.c:873: `IP_MASQ_F_VS_TUNNEL' undeclared (first use in this
function)
make: *** [ipvsadm.o] Error 1
----------------------------------------------------------------------------

Could some body please help.  Thanks.

Tong

----- Original Message -----
From: "tong" <tong@xxxxxxxxx>
To: <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Friday, December 07, 2001 5:42 PM
Subject: ipvsadm compile problem


> Hi.
> I got the following error when compiled ipvsadm version 1.20 using 'make'.
> My system is Red Hat 7.2 distribution with Kernel 2.4.x. ( I got the same
> error even after I made the new kernel with lvs module included. )
> Could some body please help.  Thanks.
>
> Tong
> -------------------------------------------------------------------------
> > In file included from /usr/include/bits/types.h:143,
> >                  from /usr/include/stdio.h:36,
> >                  from ipvsadm.c:90:
> > /usr/include/bits/pthreadtypes.h:48: parse error before `size_t'
> > /usr/include/bits/pthreadtypes.h:48: warning: no semicolon at end of
> > struct or union
> > /usr/include/bits/pthreadtypes.h:51: parse error before `__stacksize'
> > /usr/include/bits/pthreadtypes.h:51: warning: data definition has no
type
> > or storage class
> > /usr/include/bits/pthreadtypes.h:52: warning: data definition has no
type
> > or storage class
> > In file included from /usr/include/_G_config.h:44,
> >                  from /usr/include/libio.h:32,
> >                  from /usr/include/stdio.h:65,
> >                  from ipvsadm.c:90:
> > /usr/include/gconv.h:72: parse error before `size_t'
> > /usr/include/gconv.h:85: parse error before `size_t'
> > /usr/include/gconv.h:94: parse error before `size_t'
> > /usr/include/gconv.h:170: parse error before `size_t'
> > /usr/include/gconv.h:170: warning: no semicolon at end of struct or
union
> > /usr/include/gconv.h:173: parse error before `}'
> > /usr/include/gconv.h:173: warning: data definition has no type or
storage
> > class
> > In file included from /usr/include/libio.h:32,
> >                  from /usr/include/stdio.h:65,
> >                  from ipvsadm.c:90:
> > /usr/include/_G_config.h:47: field `__cd' has incomplete type
> > /usr/include/_G_config.h:50: field `__cd' has incomplete type
> > /usr/include/_G_config.h:53: confused by earlier errors, bailing out
> > make: *** [ipvsadm.o] Error 1
> >
> >
> >
> --------------------------------------------------------------------------
--
> ---
>
>
> _______________________________________________
> 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
>



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