From owner-freebsd-current Fri Mar 7 8:27:21 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EA18B37B401 for ; Fri, 7 Mar 2003 08:27:19 -0800 (PST) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 67D5443FBD for ; Fri, 7 Mar 2003 08:27:15 -0800 (PST) (envelope-from ticso@cicely9.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [IPv6:3ffe:400:8d0:301:200:92ff:fe9b:20e7]) by srv1.cosmo-project.de (8.12.8/8.12.8) with ESMTP id h27GR07T041864 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Fri, 7 Mar 2003 17:27:02 +0100 (CET) (envelope-from ticso@cicely9.cicely.de) Received: from cicely9.cicely.de (cicely9.cicely.de [IPv6:3ffe:400:8d0:301:210:5aff:fe30:1c1a]) by cicely5.cicely.de (8.12.8/8.12.8) with ESMTP id h27GR0oL069849 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Fri, 7 Mar 2003 17:27:01 +0100 (CET) (envelope-from ticso@cicely9.cicely.de) Received: from cicely9.cicely.de (localhost [127.0.0.1]) by cicely9.cicely.de (8.12.8/8.12.8) with ESMTP id h27GQwkv004299; Fri, 7 Mar 2003 17:27:00 +0100 (CET) (envelope-from ticso@cicely9.cicely.de) Received: (from ticso@localhost) by cicely9.cicely.de (8.12.8/8.12.8/Submit) id h27GQnnI004298; Fri, 7 Mar 2003 17:26:49 +0100 (CET) Date: Fri, 7 Mar 2003 17:26:48 +0100 From: Bernd Walter To: Khairil Yusof Cc: Bruce Cran , current@FreeBSD.ORG Subject: Re: -O2 broke ppp NAT Message-ID: <20030307162648.GX886@cicely9.cicely.de> Reply-To: ticso@cicely.de References: <20030305220020.GA647@gw.tex.bogus> <1046956926.26378.4.camel@daemon.home.net> <20030306172428.GA3146@fourtytwo.brucec.backnet> <1047048436.715.38.camel@daemon.home.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1047048436.715.38.camel@daemon.home.net> X-Operating-System: FreeBSD cicely9.cicely.de 5.0-CURRENT alpha User-Agent: Mutt/1.5.3i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Mar 07, 2003 at 10:47:17PM +0800, Khairil Yusof wrote: > On Fri, 2003-03-07 at 01:24, Bruce Cran wrote: > > On Thu, Mar 06, 2003 at 09:22:06PM +0800, Khairil Yusof wrote: > > > On Thu, 2003-03-06 at 06:00, Nuno Teixeira wrote: > > > > > > > For the first time I compile current-p3 -> current-p4 with > > > > -march=pentium2 -O2 -mmmx -pipe and aparently everything works ok > > > > except ppp -nat. NAT just don't work on my network. All machines are > > > > able to ping except ftp, http, etc. > > > > > > I can confirm this. nat fails to work with -O2 for usr.sbin/ppp. It > > > compiles cleanly though, but I don't know enough about gcc optimizations > > > to find out how O2 might break it. > > Upon further testing (recompiling usr.sbin/ppp) with no optimizations > except -O -pipe. -nat still fails to work with anything other than ICMP > traffic. > > I'm gonna try rebuild world without -O2, but that's not gonna help trace > where the problem is. :( I can tell you for shure that the problem is in libalias. Natd is staticaly compiled so you need to relink it, for ppp it is sufficient to just replace libalias.so. I have not recompiled the binaries but replaced them with older versions, so I can't say for shure that it depend on compiler options. Someone else already found out, that the calculated checksums are wrong. -- B.Walter COSMO-Project http://www.cosmo-project.de ticso@cicely.de Usergroup info@cosmo-project.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message