ast@cs.vu.nl (Andy Tanenbaum) (10/12/90)
In comp.sources.unix, flex was just posted again. Although it won't fit on PCs with 64K+64K, it might be of interest on the 68000s. I don't know if this is a new version of flex. If anyone checks it out, please post your findings. Andy Tanenbaum (ast@cs.vu.nl)
evans@syd.dit.CSIRO.AU (Bruce.Evans) (10/22/90)
Here are diffs to compile Flex 2.3.6 under Minix-386. They might work on Minix-ST. Some sort of yacc is needed to compile it. I used byacc. Almost all that was necessary was to define USG and _POSIX_SOURCE. These defines are required for compiling almost any net progam under Minix. Note, to compile under Minix you define USG :-). Defining _MINIX is at best useless. It mainly provides prototypes for BSD string functions. I have edited the standard header files to make compiling net programs easier. It is possible that flex requires some of the changes. #! /bin/sh # Contents: flex-2.3.6.dif # Wrapped by gnu@besplex on Mon Oct 22 21:21:46 1990 PATH=/bin:/usr/bin:/usr/ucb ; export PATH if test -f 'flex-2.3.6.dif' -a "${1}" != "-c" ; then echo shar: Will not clobber existing file \"'flex-2.3.6.dif'\" else echo shar: Extracting \"'flex-2.3.6.dif'\" \(1640 characters\) sed "s/^X//" >'flex-2.3.6.dif' <<'END_OF_FILE' Xdiff -c2 flex-2.3.6/orig/Makefile flex-2.3.6/Makefile X*** flex-2.3.6/orig/Makefile Thu Jun 28 04:44:07 1990 X--- flex-2.3.6/Makefile Mon Oct 22 21:17:53 1990 X*************** X*** 41,46 **** X # preformatted versions will be installed if INSTALLMAN=cat. X DESTDIR = X! BINDIR = /usr/local X! LIBDIR = /usr/local/lib X AUXDIR = /usr/local/lib X MANDIR = /usr/man/manl X--- 41,46 ---- X # preformatted versions will be installed if INSTALLMAN=cat. X DESTDIR = X! BINDIR = /usr/local/bin X! LIBDIR = /usr/local/lib/i386 X AUXDIR = /usr/local/lib X MANDIR = /usr/man/manl X*************** X*** 53,58 **** X SKELETON_FILE = $(DESTDIR)$(AUXDIR)/flex.skel X SKELFLAGS = -DDEFAULT_SKELETON_FILE=\"$(SKELETON_FILE)\" X! CFLAGS = -O X! LDFLAGS = -s X X COMPRESSION = X--- 53,58 ---- X SKELETON_FILE = $(DESTDIR)$(AUXDIR)/flex.skel X SKELFLAGS = -DDEFAULT_SKELETON_FILE=\"$(SKELETON_FILE)\" X! CFLAGS = -O -DUSG -D_POSIX_SOURCE X! LDFLAGS = X X COMPRESSION = X*************** X*** 103,106 **** X--- 103,107 ---- X flex : $(FLEXOBJS) X $(CC) $(CFLAGS) -o flex $(LDFLAGS) $(FLEXOBJS) X+ chmem =400000 flex X X first_flex: Xdiff -c2 flex-2.3.6/orig/flexdef.h flex-2.3.6/flexdef.h X*** flex-2.3.6/orig/flexdef.h Tue Sep 4 01:34:09 1990 X--- flex-2.3.6/flexdef.h Mon Oct 22 21:18:50 1990 X*************** X*** 867,871 **** X--- 867,877 ---- X /* The Unix kernel calls used here */ X X+ #ifdef _POSIX_SOURCE X+ /* The i/o counts are unsigned and some of the char*'s may be const char* */ X+ #include <sys/types.h> X+ #include <unistd.h> X+ #else X extern int read PROTO((int, char*, int)); X extern int unlink PROTO((char*)); X extern int write PROTO((int, char*, int)); X+ #endif END_OF_FILE if test 1640 -ne `wc -c <'flex-2.3.6.dif'`; then echo shar: \"'flex-2.3.6.dif'\" unpacked with wrong size! fi # end of 'flex-2.3.6.dif' fi echo shar: End of shell archive. exit 0 -- Bruce Evans evans@syd.dit.csiro.au