LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 10-05-2001, 04:49 PM   #1
lsgreer
LQ Newbie
 
Registered: Oct 2001
Location: Kunsan, South Korea
Distribution: Redhat
Posts: 2

Rep: Reputation: 0
Post ip_masq.c question - Kernel compiling


RE-POST
Subject: Re: Your ip_masq.c question last May.

Dear Janåke Rönnblom,

Thanks for your quick reply and guidance. It was very helpful.

As you suspected, I had failed to activate IP: masquerading special modules support (CONFIG_IP_MASQUERADE_MOD). The X based configuration tool I was using (make xconfig) initially indicated that this CONFIG_IP_MASQUERADE_MOD was an "experinmental" package. Being a newbie and since this was the first time I compiled my own kernel, I of course avoided any 'experimental' features. Your message made me realize I had to dig much deeper into the documentation to successfully compile my first linux kernel.

Another nuance that tripped me up for a while was relying on the RedHat 6.X distribution of a modutils rpm (which includes modprobe and depmod). I did this since I am upgrading a RedHat 6.1 system. However, I found that I could not compile my modules for the 2.2.19 kernel successfully until I used the latest RedHat 7.1 modutils rpm. The implicit (and not explicit) explanation for this is buried in the Kernel Documentation/modules.txt that came with the source.

Thanks again for your help.

Maybe you can also post this message some place where other newbies will see it, and thus avoid having to answer this question again.

Sincerely

Leonard Greer
Seoul, Korea

On Wed, 3 Oct 2001, [ISO-8859-1] Rönnblom Janåke /Teknous wrote:

> >
> >Dear Rnnblom Janke /Teknous,
> >I have noted your question last May about ip_masq.c in the Linux2.2.19 kernel.
> >I am a newbie who is experiencing the same problems compiling the Redhat version of this kernel.
> >After considerable research, you are the only other person I could find reporting this problem I have now.
> >Can you please advise me how you got the 2.2.19 kernel to
> >eventually compile after experiencing the errors you mentioned on http://www.trustix.org/pipermail/tsl...y/000441.html?
> >I would appreciate any suggestion you could provide.

>> Leonard Greer - Seoul, Korea


REPLY----
> Sure not a problem. The problem seems to be related to ip_masquerading and the patches that trustix has added
>
> If you activate ip_masquerading
>
> IP: masquerading (CONFIG_IP_MASQUERADE) [Y/n/?]
>
> you MUST activate [Yes] the
>
> IP: masquerading special modules support (CONFIG_IP_MASQUERADE_MOD)
>
> or you can't compile the kernel.
>

Leonard Greer's errors :

cc -D__KERNEL__ -I/usr/src/linux-2.2.19/include -Wall -Wstrict-prototypes-O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce-m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=686
-DEXPORT_SYMTAB -c ip_masq.c
ip_masq.c:575: `ip_masq_hash' undeclared here (not in a function)
ip_masq.c:575: initializer element for `__ksymtab_ip_masq_hash.value' is
not constant
ip_masq.c:576: `ip_masq_unhash' undeclared here (not in a function)
ip_masq.c:576: initializer element for `__ksymtab_ip_masq_unhash.value' is
not constant
ip_masq.c:515: warning: `masq_port_lock' defined but not used
make[3]: *** [ip_masq.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.2.19/net/ipv4'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux-2.2.19/net/ipv4'
make[1]: *** [_subdir_ipv4] Error 2
make[1]: Leaving directory `/usr/src/linux-2.2.19/net'
make: *** [_dir_net] Error 2
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
After Compiling Kernel question. bbmak Linux - Software 3 04-22-2005 10:43 PM
question about kernel compiling? slackwbas Slackware 2 03-02-2005 07:55 AM
Question about compiling the kernel? QzarBaron Mandriva 4 07-07-2004 06:29 PM
another kernel compiling question twinkers Slackware 3 10-04-2003 05:33 AM
Kernel Compiling question... 65_289 Linux - Software 1 03-23-2003 11:41 PM


All times are GMT -5. The time now is 11:00 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration