#13 [svn 562] Make breaks after ./configure --disable-shape

closed-fixed
nobody
None
5
2011-12-31
2011-12-30
John Doe
No

Configuring jwm svn version 562 with "./configure --disable-shape" leads to the following error in the make stage:

gcc -c -g -O2 -I/usr/include/libpng15 -I/usr/include/freetype2 -DLOCALEDIR=\"/usr/share/locale\" status.c
status.c: In function 'DrawMoveResizeWindow':
status.c:120:25: error: 'CORNER_RADIUS' undeclared (first use in this function)
status.c:120:25: note: each undeclared identifier is reported only once for each function it appears in
make[1]: *** [status.o] Error 1

The problem is the definition of CORNER_RADIUS (in jwm.h). The definition is conditional upon the shape extension being used:

/** Fixed radius of 4x4 */
#ifdef USE_SHAPE
# define CORNER_RADIUS 4
#endif

The easiest solution out is to define CORNER_RADIUS unconditionally. That is, in jwm.h, replace the above lines by:

#define CORNER_RADIUS 4

After that, jwm svn 562 compiles.

Discussion

  • Joe Wingbermuehle

    This should be fixed in revision 564 (315).
    Thanks!

     
  • Joe Wingbermuehle

    • status: open --> closed-fixed
     

Log in to post a comment.