Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 19070 - compiling ip_masq fails sometimes
compiling ip_masq fails sometimes
Product: Red Hat Linux
Classification: Retired
Component: kernel (Show other bugs)
i386 Linux
medium Severity high
: ---
: ---
Assigned To: Michael K. Johnson
Brock Organ
: 18706 20169 (view as bug list)
Depends On:
  Show dependency treegraph
Reported: 2000-10-13 14:37 EDT by Alexander Kourakos
Modified: 2007-04-18 12:29 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2002-12-14 21:32:52 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Alexander Kourakos 2000-10-13 14:37:39 EDT
If the kernel is compiled with
CONFIG_IP_MASQUERADE_MOD, it will fail with errors referring to 
'ip_masq_hash' and 'ip_masq_unhash'.

The fix I used is either to configure for both MASQUERADE and 
MASQUERADE_MOD, or add these lines near the end of 

extern int ip_masq_hash(struct ip_masq *);
extern int ip_masq_unhash(struct ip_masq *);

I believe that this is the same bug as #18706
Comment 1 Alexander Kourakos 2000-10-13 14:54:26 EDT
why does Bugzilla say "Red Hat Linux - 7.07.0"?
Comment 2 Bill Nottingham 2000-11-04 02:42:30 EST
*** Bug 18706 has been marked as a duplicate of this bug. ***
Comment 3 Bill Nottingham 2000-11-04 02:46:45 EST
*** Bug 20169 has been marked as a duplicate of this bug. ***
Comment 4 Need Real Name 2000-11-21 17:59:07 EST
Tryed the first solution (both MASQUERADE and MASQUERADE_MOD) did not work...
Comment 5 Need Real Name 2000-11-22 18:47:21 EST
Ok! Got it right this time. The solution with CONFIG_MASQUERADE=y and 
Note that to have CONFIG_MASQUERADE_MOD available you must enable experimental 
Comment 6 Hans Deragon 2001-04-15 16:00:44 EDT
Someone else suggested another solution in google's usenet search site.  Here
is the text:

From: aix_steve@my-deja.com (aix_steve@my-deja.com)
 Subject: Re: make[3]: *** [ip_masq.o] Error 1 
 Newsgroups: comp.os.linux.development.system
 Date: 2000-12-22 13:20:07 PST 

The problem is that the two symbols are defined in ip_masq_mod.h
which is only included if you make IP_MASQUERADING as a module.
Edit the file ./net/ipv4/ip_masq.c and add two lines:

int ip_masq_hash(struct ip_masq *ms);
int ip_masq_unhash(struct ip_masq *ms);

Put these after the #includes but before the EXPORT_SYMBOLs

After I did this, the kernel built and ran fine.

-- Steve



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