ghelmer@dsuvax.uucp (Guy Helmer) (04/16/91)
A while ago I posted an implementation of egrep that I had found in comp.sources.unix on uunet.uu.net. After working with it quite a bit, though, I discovered that it was designed to be an add-on for a system that had an existing egrep (bleh!). So, if you grabbed the egrep I posted a while ago, it's probably a good idea to blow it away :-( I obtained the GNU grep package, and it includes what looks like a full implementation of egrep. It compiled under MINIX using gcc without many troubles other than the little problems with MINIX's include files. Apologies to the net for wasting bandwidth. -- Guy Helmer, Dakota State University Computing Services helmer@sdnet.bitnet, dsuvax!ghelmer@wunoc.wustl.edu, wupost!dsuvax!ghelmer "I'm a cowboy, on a keyboard I ride..." -- with apologies to Bon Jovi
mvharding@cup.portal.com (Michael V Harding) (04/18/91)
I've been trying to get GNU E?REP to compile under the ACK C compiler: after a while, I got it to work, but it seems to be having problems with MALLOC, even when I give it 4 MEG! Ha anybody already done this port? I have it running, but it crashes unpredictably, and with no debugger...
waltje@uwalt.nl.mugnet.org (Fred 'The Rebel' van Kempen) (04/18/91)
ghelmer@dsuvax.uucp (Guy Helmer) wrote: > -- > Guy Helmer, Dakota State University Computing Services > helmer@sdnet.bitnet, dsuvax!ghelmer@wunoc.wustl.edu, wupost!dsuvax!ghelmer > "I'm a cowboy, on a keyboard I ride..." > -- with apologies to Bon Jovi Yeah, wasn't that a Steel Horse ? Hmm, have to put in this CD again... Fred. -- MicroWalt Corporation, for MINIX Development waltje@uwalt.nl.mugnet.org Tel (+31) 252 230 205, Hoefbladhof 27, 2215 DV VOORHOUT, The Netherlands "An Operating System is what the _USERS_ think of it- me"
ghelmer@dsuvax.uucp (Guy Helmer) (04/19/91)
In <41365@cup.portal.com> mvharding@cup.portal.com (Michael V Harding) writes: > I've been trying to get GNU E?REP to compile under the ACK >C compiler: after a while, I got it to work, but it seems to be >having problems with MALLOC, even when I give it 4 MEG! Hmm. I compiled this source under MINIX-386 using gcc, and it's worked fine just chmem'ed =65536. I assume you're using ACK on a 68000-based machine, so I don't have much in the way of clues for you. -- Guy Helmer, Dakota State University Computing Services helmer@sdnet.bitnet, dsuvax!ghelmer@wunoc.wustl.edu, wupost!dsuvax!ghelmer "I'm a cowboy, on a keyboard I ride..." -- with apologies to Bon Jovi
mvharding@cup.portal.com (Michael V Harding) (04/19/91)
Never mind. GNU E?REP assumes 4 byte integers, and ther are all kinds of magic numbers in the code like 28 which means that unless I rewrite the whole thing, it won't work. I'm sure it's easier to re-compile under GCC. Too bad they didn't use LONG instead of INT where it was neede, not every C has 32 bit ints...
Christoph van Wuellen <HBO043%DJUKFA11.BITNET@cunyvm.cuny.edu> (04/20/91)
With 16-bit ints, you cannot malloc more than 64K in a single call even if you chmem' the program to 4GByte. C.v.W.
waltje@uwalt.nl.mugnet.org (Fred 'The Rebel' van Kempen) (04/28/91)
mvharding@cup.portal.com (Michael V Harding) wrote: > > I've been trying to get GNU E?REP to compile under the ACK > C compiler: after a while, I got it to work, but it seems to be > having problems with MALLOC, even when I give it 4 MEG! Ha anybody > already done this port? I have it running, but it crashes unpredictably, > and with no debugger... I have a copy of e?grep working under MINIX-PC. However, I had it around for a long time, so it may be an ancient version... Fred. -- MicroWalt Corporation, for MINIX Development waltje@uwalt.nl.mugnet.org Tel (+31) 252 230 205, Hoefbladhof 27, 2215 DV VOORHOUT, The Netherlands "An Operating System is what the _USERS_ think of it- me"
mvharding@cup.portal.com (Michael V Harding) (04/29/91)
I basically got GNU E?REP working by some tweaking of the code: the fact that size_t is a 16 bit integer can cause problems, and th E?REP code does some strange things. It isn't in a postable form yet, though... If I get enough interest (i.e. email) I'll post a diff file from e?rep 1.3