Re: Building beta3 ....

Daniel Clausen (
Fri, 04 Sep 1998 10:30:46 +0200


I tried to build beta3 on Digital Unix 4.0d. Here
some comments:

1. During the configure-phase I turned textures off. This gave me
   compiler errors in the file 'include/afterstep/borders.c'
   The problem is that in this file some code tries to use
   the field 'backPixmap' of the ASWindow structure. But when
   turning off the textures, these fields of the ASWindow struct
   are #ifndefd (NO_TEXTURE). So no chance to compile Afterstep
   without using textures.

2. When turning off certain option (like textures or xpm :)
   some #define with a missing maco name identifiers are produced.
   This only leads to warnings so no biggie. I just wanted to mention
   it. :)

3. autoconf assumes that the compiler in use supports the options
   '-Wall -O6'. Of course mine doesn't (*smile*). This can be solved
   easily by changing the CCFLAGS in 'autoconf/Makefile.common.(lib).in'

4. In 'src/Script/Widgets/Tools.c', line 3 there's a declaration of
   'memcpy', which contraticts the one in 'usr/include/string.h'.
   I guess I can solve this by specifying some funny defines with
   the CCFLAGS though. For the moment I just deleted the line which
   produced the error.

5. In 'src/afterstep/stepgfx.c' line 184 occurs this line:
    rv = ((rv > 65535.0) ||(rv < 0.0)) ? rv -= sr : rv;

   Such code should be avoided since it leads to undefined behaviour.
   The reason for this is that the variable 'rv' is modified twice
   without an intervening sequence point. Sorry if this sounds picky
   but there are compilers which will handle this stuff differently.
   (and prolly in a way the programmer didn't intend :)
   Same of course also applies to the next 2 lines.

6. For installing the stuff, I had to use the '-i' flag for make.
   Otherwise 'make install' stops immediately, since there's no
   'install' target in the 'lib' subdirectory.

I managed to compile&link beta3 in the end (although it claims to
be beta2 :) but starting afterstep produces nothing but an X Error:

X Error of failed request:  BadValue (integer parameter out of range for 
  Major opcode of failed request:  12 (X_ConfigureWindow)
  Value in failed request:  0x0
  Serial number of failed request:  63
  Current serial number in output stream:  64
  XIO:  fatal IO error 54 (Connection reset by peer) on X server
  after 6479 requests (6479 known processed) with 0 events remaining.
  XIO:  fatal IO error 54 (Connection reset by peer) on X server    
  after 5656 requests (5656 known processed) with 0 events remaining.

No idea what went wrong though, since X is a rather black box to me.
I didn't have this problem with 1.5pre9. Anyone else experience the
same or have an idea?


"Asylum is welcoming people from other lands, and giving them
 something to hold onto -- usually a mop or a leaf blower."