From: ghod@drycas.club.cc.cmu.edu (Just GNU it.) Subject: Re: Has anyone compiled gwm under Linux? Date: 29 Jun 1993 23:17:12 -0400
In article <20ou4k$t1j@nwfocus.wa.com>, ten0772@halcyon.com (Timothy E. Neto)
writes:
> Hello all,
>
> Hey, has anyone managed to get gwm to compile under Linux. From what I
> have managed to read, gwm won't work with flex/bison. I've check the
> FAQ, but no pertinent information there. I checked sura's archie for a
> Linux version on gwm, but nothing correlative there. So here I post.
>
> I'd rather not re-invent the wheel so to speak, but if no replies come
> forth I guess I'll have to start tweaking the lex/yacc files till
> they'll work with flex/bison.
>
> The version of gwm I've downloaded is 1.7n. The FAQ I have is the June
> 1993 edition. I'm currently running SLS 1.0 (JANA's Mar/Apr edition).
> I'm planning on upgrading to SLS 1.02 in a week or so. (Once the new
> CD-ROM arrives.) My system is a Gateway 4DX2-66V (8MB RAM, 620MB of
> Hard Disks).>
Grrr.... Show off! ;)
There is a beta version of gwm on export.lcs.mit.edu in /contrib/gwm which
identifies itself as version 1.7o (beta 3). Seeing this posting prompted me
to grab it and give it a spin. (I have it running right now in mwm emulation
mode.) Seems to work okay, and the lex/flex problem seems to have been
resolved, but there are a few caveats.
The lex/flex problem has been solved in two ways. First, in the /contrib/gwm
directory, you will find a gwm-parser.tar.Z file that contains pre-processed
lex and yacc code generated on a Sun. Using these files should help you get
around the flex/lex incompatibility trouble with older versions of gwm. The
second solution is that version 1.7o comes with wool.flex which is a specially
re-written version of wool.lex that seems to work correctly with flex. Once
you unpack the code and do an 'xmkmf', the Makefile will use wool.flex
automatically.
There's two gotchas to watch for when compiling:
When I used xmkmf to generate the Makefiles, it inserted a blank line between
the listings of source and object code files (SRCS and OBJS). make didn't
seem to like the extra lines and wouldn't work correctly until I removed them.
Second, be sure to add -DSYSV to the standard define flags in the Makefile.
I built gwm once not realizing this flag wasn't in there and the resulting
binary didn't work correctly. I built it again with the flag and that seemed
to fix things.
Overall comments on it so far:
Well, I've only had it running for about fifteen minutes, so I haven't had a
chance to form a real opinion yet, except to say the default colors look really
awful. :) Also, I can't seem to get the root menu to come up, which is
probably due to my having forgotten to set up a configuration file somewhere.
At any rate, you should be able to compile 1.7o with just the stuff in the
distrubution file without too much trouble. Make sure the pixmap library gets
built too otherwise it won't link correctly.
For the record, my setup is:
0.99.10 kernel with alpha diffs
libc 4.4
gcc 2.4.3
XFree86 1.3 (custom linked server with et4000 driver only and no PEX)
386sx 16 Mhz with 387 co-pro
4 megs RAM
4 megs swap space
Yes, you *can* run X with just 4 megs of RAM. This isn't to say I wouldn't
prefer to run it with 8, but.....
Hope this helps.
-Bill Paul
ghod@drycas.club.cc.cmu.edu