Bug 29384 - ip_masq compile fails for 2.2.17-14 with custom config
Summary: ip_masq compile fails for 2.2.17-14 with custom config
Keywords:
Status: CLOSED DUPLICATE of bug 21604
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: kernel
Version: 6.2
Hardware: i386
OS: Linux
medium
low
Target Milestone: ---
Assignee: Michael K. Johnson
QA Contact: Brock Organ
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-02-25 14:01 UTC by Ned Ulbricht
Modified: 2007-04-18 16:31 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2001-02-25 14:01:14 UTC
Embargoed:


Attachments (Terms of Use)

Description Ned Ulbricht 2001-02-25 14:01:11 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.76 [en] (X11; U; Linux 2.2.17-14 i486)


Using kernel-sources-2.2.17-14.i386.rpm, compile fails in ip_masq.c ->
ip_masq.o
when "CONFIG_IP_MASQUERADE=y" and "# CONFIG_IP_MASQUERADE_MOD is not set"
in .config.

Reproducible: Didn't try
Steps to Reproduce:
1. make mrproper
2. make menuconfig
2a. Networking options  ---> 
2b. [*] IP: masquerading
2c. [ ] IP: masquerading special modules support (NEW) 
3. make dep
4. make bzImage

Actual Results:  ... lots of output ...
make[3]: Entering directory `/usr/src/linux-2.2.17/net/ipv4'
gcc -D__KERNEL__ -I/usr/src/linux-2.2.17/include -Wall -Wstrict-prototypes
-O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce
-m486 -DCPU=486   -DEXPORT_SYMTAB -c ip_masq.c
ip_masq.c:578: `ip_masq_hash' undeclared here (not in a function)
ip_masq.c:578: initializer element for `__ksymtab_ip_masq_hash.value' is
not constant
ip_masq.c:579: `ip_masq_unhash' undeclared here (not in a function)
ip_masq.c:579: initializer element for `__ksymtab_ip_masq_unhash.value' is
not constant
ip_masq.c:518: warning: `masq_port_lock' defined but not used
make[3]: *** [ip_masq.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.2.17/net/ipv4'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux-2.2.17/net/ipv4'
make[1]: *** [_subdir_ipv4] Error 2
make[1]: Leaving directory `/usr/src/linux-2.2.17/net'
make: *** [_dir_net] Error 2


Expected Results:  Successful compile


This configuration did not have a problem using
kernel-sources-2.2.16-3.i386.rpm.

In 2.2.17-14, the following declarations are now in
"linux/include/net/ip_masq_mod.h":
extern int ip_masq_hash(struct ip_masq *);
extern int ip_masq_unhash(struct ip_masq *);

In both 2.2.17-14 and 2.2.16-3, "linux/net/ipv4/ip_masq.c" contains:
#ifdef CONFIG_IP_MASQUERADE_MOD
#include <net/ip_masq_mod.h>
#endif

But in 2.2.16-3,  "ip_masq.c" contains definitions:
static int ip_masq_hash(struct ip_masq *ms)
static int ip_masq_unhash(struct ip_masq *ms)
(not sure if prototypes were declared in some .h).

Comment 1 Ned Ulbricht 2001-02-26 09:56:51 UTC

*** This bug has been marked as a duplicate of 21604 ***


Note You need to log in before you can comment on or make changes to this bug.