Re: NAT problems when world+kernel compiled with -O2

From: Ruslan Ermilov <ru_at_FreeBSD.org>
Date: Tue, 16 Mar 2004 21:27:33 +0200
On Tue, Mar 16, 2004 at 06:36:12PM +0100, Bernd Walter wrote:
> On Tue, Mar 16, 2004 at 09:49:44AM -0500, Mike Jakubik wrote:
> > Hello,
> > 
> > I ran a cvsup on current yesterday at around 9:50pm EST. Being curious if
> > the world compiles with -O2 yet, I gave it a shot. everything compiled
> > fine, no errors. After a mergemaster, and the reboot everything seemed
> > fine. At this point I went over to my windows machine (which uses the fbsd
> > box as a nat gateway) and I noticed that internet was not working. I was
> > unable to establish any TCP connections to the internet. DNS however was
> > working fine and TCP connections to the box itself worked as well.
> > Internet was also accessible from the fbsd box. I couldn?t find any
> > obvious errors in the configuration (it was not changed since the last
> > cvsup, ~3 weeks ago), so I decided to recompile without -O2, and
> > everything started working ok again. I understand that -O2 is not
> > officially supported, but maybe this can point out some problem that
> > should be looked in to. Here are my make.conf options that were used:
> 
> Yes - libalias doesn't like -O2.
> Recompile libalias without -O2 and maybe without setting CPUTYPE and
> you are fine.
> IIRC packets go out fine, but incoming packets just get into natd and
> never come out again.
> 
Yes, I see a lot of warnings in libalias if compiled with -O2 and with
WARNS=2.  As such, I think it's unsafe to declare world as -O2 safe
just yet.


Cheers,
-- 
Ruslan Ermilov
FreeBSD committer
ru_at_FreeBSD.org

Received on Tue Mar 16 2004 - 10:27:41 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:47 UTC