Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Apr 2002 20:24:43 -0701
From:      Jos Backus <jos@catnook.com>
To:        rsync@lists.samba.org
Cc:        cvs-all@FreeBSD.ORG
Subject:   Re: rsync breaks on FreeBSD without -O2?(fwd from grog@FreeBSD.org) PR 36998
Message-ID:  <20020421032505.GA23136@lizzy.catnook.com>
In-Reply-To: <20020420193712.O10865@va.samba.org>
References:  <20020420193712.O10865@va.samba.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Apr 20, 2002 at 07:37:12PM -0700, Martin Pool wrote:
> Apparently rsync breaks on FreeBSD if you turn off -O2 (which is the
> default.)  The breakage is apparently inside zlib.  
> 
> You'd have to think it was a compiler bug, but perhaps not.
> 
> I haven't tried to reproduce it yet.

Here's some mail from freebsd-cvs-all
(<20020420171059.A593@xor.obsecurity.org>). Bruce Evans submitted this
workaround which has been incorporated into the FreeBSD tree. I think we
should do the same. I can do the honors :-)

Jos

<quote>
On Sat, Apr 20, 2002 at 04:01:29PM -0700, Jos Backus wrote:
> On Sat, Apr 20, 2002 at 01:22:16PM -0700, Kris Kennaway wrote:
> > On Sat, Apr 20, 2002 at 01:19:47PM -0700, Anders Nordby wrote:
> > > anders      2002/04/20 13:19:47 PDT
> > > 
> > >   Modified files:
> > >     net/rsync            Makefile 
> > >   Log:
> > >   Make port set -O2 in CFLAGS. Necessary for -z (compress) option to work
> > >   properly.
> > 
> > Err, this sounds like the fault of the broken zlib code we had in the
> > source tree, which was already fixed.
> 
> rsync uses it's own slightly incompatible version of zlib. If you can point me
> to a fix I can discuss the fix with the rsync folks and commit it.
> 
> (If you don't hear from me it's because XO cut my DSL line - I'm in the
> process of switching providers.)

Here's the fix from bde which I applied to the libz in the tree:

http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/libz/infcodes.c.diff?r1=1.3&r2=1.4

Kris
</quote>

-- 
Jos Backus                 _/  _/_/_/        Santa Clara, CA
                          _/  _/   _/
                         _/  _/_/_/             
                    _/  _/  _/    _/
jos@catnook.com     _/_/   _/_/_/            use Std::Disclaimer;

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020421032505.GA23136>