LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: Compile error?

To: "Ron Harwood" <harwoodr@xxxxxxxxxxxxxxxx>
Subject: Re: Compile error?
Cc: linux-virtualserver@xxxxxxxxxxxx
From: Wensong Zhang <wensong@xxxxxxxxxxxx>
Date: Fri, 25 Dec 1998 13:29:36 +0800
At 09:28 98-12-24 -0600, you wrote:
>
>Hi there!
>
>When I try to compile ippfvsadm.c I get the following error...
>
>gcc -O2 -I/usr/src/linux/include -o ippfvsadm ippfvsadm.c
>ippfvsadm.c:63: warning: `struct ip_portfw_edits' declared inside parameter
>list
>ippfvsadm.c:63: warning: its scope is only this definition or declaration,
>ippfvsadm.c:63: warning: which is probably not what you want.
>ippfvsadm.c: In function `main':
>ippfvsadm.c:75: storage size of `pfw' isn't known
>ippfvsadm.c:92: `IP_PORTFW_ADD' undeclared (first use this function)
>ippfvsadm.c:92: (Each undeclared identifier is reported only once
>ippfvsadm.c:92: for each function it appears in.)
>ippfvsadm.c:97: `IP_PORTFW_DEL' undeclared (first use this function)
>ippfvsadm.c:102: `IP_PORTFW_FLUSH' undeclared (first use this function)
>ippfvsadm.c:135: `SERVER_WEIGHT_MIN' undeclared (first use this function)
>ippfvsadm.c:135: `SERVER_WEIGHT_MAX' undeclared (first use this function)
>ippfvsadm.c: In function `parse_addressport':
>ippfvsadm.c:253: `IP_PORTFW_PORT_MIN' undeclared (first use this function)
>ippfvsadm.c:253: `IP_PORTFW_PORT_MAX' undeclared (first use this function)
>ippfvsadm.c: At top level:
>ippfvsadm.c:263: warning: `struct ip_portfw_edits' declared inside parameter
>lis
>t
>ippfvsadm.c:264: conflicting types for `do_setsockopt'
>ippfvsadm.c:63: previous declaration of `do_setsockopt'
>make: *** [ippfvsadm] Error 1
>
>Am I doing something wrong?  I'm just typing 'make'...
>
>

I guess the problem you got is that you didn't configure the kernel
properly, so some data structure of virtual server were found when you were
compiling the ippfvsadm.c program.

Please use 'make menuconfig' or 'make xconfig' to set options properly
before you compile the ippfvsadm.c. Read the documents for instructions.





<Prev in Thread] Current Thread [Next in Thread>
  • Re: Compile error?, Wensong Zhang <=