Re: (visual) diff for large files
On Fri, 2008-05-02 at 18:54 -0500, Sergio Cuéllar Valdés wrote:
> 2008/5/2 michael <cs@networkingnewsletter.org.uk>:
> > I had a quick try (before above patch) but it fails on headers:
> >
> >
> > michael@ratty:~/src/bsd-diff/bin$ gcc --version
> > gcc (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
> > Copyright (C) 2006 Free Software Foundation, Inc.
> > This is free software; see the source for copying conditions. There is
> > NO
> > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
> > PURPOSE.
> >
> >
> > michael@ratty:~/src/bsd-diff/bin$ make
> > cd adb; make SEPFLAG=-i
> > make[1]: Entering directory `/home/michael/src/bsd-diff/bin/adb'
> > cc -O -DNUM_SYMS_CACHE=50 -c -o access.o access.c
> > In file included from access.c:1:
> > defs.h:15:25: error: machine/reg.h: No such file or directory
> > In file included from access.c:1:
> > defs.h:194: warning: conflicting types for built-in function 'round'
> > access.c: In function 'acces':
> > access.c:69: error: 'errno' undeclared (first use in this function)
> > access.c:69: error: (Each undeclared identifier is reported only once
> > access.c:69: error: for each function it appears in.)
> > access.c: In function 'setovmap':
> > access.c:142: error: 'NOVL' undeclared (first use in this function)
> > access.c:148: error: invalid use of undefined type 'struct ovlhdr'
> > make[1]: *** [access.o] Error 1
> > make[1]: Leaving directory `/home/michael/src/bsd-diff/bin/adb'
> > make: *** [adb] Error 2
>
> Hello,
>
> those errors seem very different of what I get. This are the steps I made:
>
> 1. I have unpacked the file file8.tar.gz (MD5:
> 77397e6d554361c127592b1fea2d776f) in the directory bsd-src.
> 2. Go to bin/diff directory, where there are the following files:
> * diff.c
> * diffdir.c
> * diff.h
> * diffh.c
> * diffreg.c
> * Makefile
>
Yes now I am in the right dir and apply your patch and compile I get
some execs but it still falls over with large (2.5GB) input files:
michael@ratty:/tmp/xxdiff_files
$ /home/michael/src/bsd-diff/bin/diff/diff OLDrun.log.part4
run.log.part4
diff: OLDrun.log.part4: Value too large for defined data type
Reply to: