home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / gwm18a.zip / PROBLEMS < prev    next >
Text File  |  1995-07-03  |  10KB  |  278 lines

  1.   ____                      _ _       _   _             
  2.  / ___|___  _ __ ___  _ __ (_) | __ _| |_(_) ___  _ __  
  3. | |   / _ \| '_ ` _ \| '_ \| | |/ _` | __| |/ _ \| '_ \ 
  4. | |__| (_) | | | | | | |_) | | | (_| | |_| | (_) | | | |
  5.  \____\___/|_| |_| |_| .__/|_|_|\__,_|\__|_|\___/|_| |_|
  6.                      |_|                                
  7.  ____            _     _                    
  8. |  _ \ _ __ ___ | |__ | | ___ _ __ ___  ___ 
  9. | |_) | '__/ _ \| '_ \| |/ _ \ '_ ` _ \/ __|
  10. |  __/| | | (_) | |_) | |  __/ | | | | \__ \
  11. |_|   |_|  \___/|_.__/|_|\___|_| |_| |_|___/
  12.                                             
  13.  
  14.  
  15. /*****************************************************************************\
  16. *                    CONTENTS                                   *
  17. \*****************************************************************************/
  18.  
  19. [1] Errors while compiling parsers
  20. [2] Compiling on DEC alphas
  21. [3] Compiling on GWM and XPM on HP9000 series 300/400/800 computers
  22. [4] Undefined function: strcasecmp when linking
  23. [5] Error message when loading gwm
  24. [6] Errors on SPARCS (sun4)
  25. [7] Error in loading: gwm not linked with Xlib
  26. [8] On HP machines: /bin/ld: Unsatisfied symbols:   XError (data)
  27. [9] Error in wl_event.c after line 80
  28. [10] Type errors in malloc.c
  29. [11] GWM crashes on a HP/Apollo 68040:
  30. [12] Compiling on a NeXT with c-Xist:
  31. [13] Compiling with FLEX instead of LEX
  32. [14] makdepend complains: includes EXTERN.h more than once!
  33. [15] runtime WOOL ERROR: Internal error: bus error: (color-make value)
  34. [16] Undefined function XmbTextPropertyToTextList at link time
  35.  
  36.  
  37. /*****************************************************************************\
  38. *                    DETAILS                                    *
  39. \*****************************************************************************/
  40.  
  41. [1] Errors while compiling parsers
  42. ==================================
  43.  
  44. Gwm can ONLY run with standard lex and yacc, it cannot work with flex, bison,
  45. byacc or others. If you dont have them (linux, FreeBSD, NetBSD...) do a:
  46.  
  47.       cp gwm-parsers/lex.yy.c . ; cp gwm-parsers/y.tab.c
  48.  
  49. and all should work OK.
  50.  
  51. [2] Compiling on DEC alphas
  52. ===========================
  53.  
  54. GWM does not run on 64-bit machines where pointers are not 4 bit long (so not
  55. on alphas, but runs ok on SGI R4000s). Compile it on a DEC 5000 and translate
  56. the 32-bit binary with the "mx" utility
  57.  
  58. [3] Compiling on GWM and XPM on HP9000 series 300/400/800 computers
  59. ===================================================================
  60.  
  61. Makefile for hp300:
  62.  
  63. XLIBDIR   =
  64. C_COMPILER= gcc -pipe -traditional
  65. DEFINES = -DSYSV -DX11R4 -DSECURE -DSTATS -DUSER_DEBUG
  66.  
  67. Makefile for hp800:
  68.  
  69. XLIBDIR   =
  70. LIBS = -lX11R3 hpXError.o
  71. DEFINES = -DSYSV -DX11R3 -DSECURE -DSTATS -DUSER_DEBUG
  72.  
  73. ------------------------------------------------------------------------------
  74.  
  75. [4] Undefined function: strcasecmp when linking
  76. ===============================================
  77.  
  78. add the flag -DNEED_STRCASECMP to the makefile (needed only in the
  79. subdirectory xpm, actually).
  80.  
  81. ------------------------------------------------------------------------------
  82.  
  83. [5] Error message when loading gwm
  84. ==================================
  85. ld: unrecognized option: -p
  86. ld: unrecognized option: -m
  87.  
  88. in Makefile, change -Lxpm by -L xpm
  89.  
  90. ------------------------------------------------------------------------------
  91.  
  92. [6] Errors on SPARCS (sun4)
  93. ===========================
  94.  
  95. * GWM seemed to crash when compiled with -O with SUN's cc
  96.  
  97. * do NOT compile with the cc flags "-dalign", or use the define -DDOUBLE_ALIGN
  98.   Symptom: at runtime gwm crashes with message:
  99.  
  100.       WOOL ERROR: Internal error: bus error
  101.       [5] (color-make value)
  102.  
  103.  
  104. ------------------------------------------------------------------------------
  105.  
  106. [7] Error in loading: gwm not linked with Xlib
  107. ==============================================
  108.  
  109. (a lot of _X... undefined references)
  110. Might happen, just do a 
  111.  
  112.       rm -f gwm;make
  113.  
  114. ------------------------------------------------------------------------------
  115.  
  116. [8] On HP machines: /bin/ld: Unsatisfied symbols:   XError (data)
  117. =================================================================
  118.  
  119. change in gwm.c line 34:
  120.  
  121. extern XErrorHandler XError;
  122.  
  123. to:
  124.  
  125. extern int XError();
  126.  
  127. ------------------------------------------------------------------------------
  128.  
  129. [9] Error in wl_event.c after line 80
  130. =====================================
  131.  
  132. add -DNO_STRUCTURE_OFFSETS to DEFINES
  133.  
  134. ------------------------------------------------------------------------------
  135.  
  136. [10] Type errors in malloc.c
  137. ============================
  138. malloc.c:286: conflicting types for `malloc'
  139. wool.h:200: previous declaration of `malloc'
  140. malloc.c:490: conflicting types for `realloc'
  141. wool.h:200: previous declaration of `realloc'
  142. malloc.c:536: conflicting types for `calloc'
  143. wool.h:200: previous declaration of `calloc'
  144.  
  145. ===> add -DVOID_MALLOC to compile options.
  146.  
  147. Any other errors: use -DUSE_STANDARD_MALLOC. This bypasses the gwm-provided
  148. malloc which provided debugging (stats) info, and was much faster than old
  149. SYSV mallocs, but is no more faster than most modern mallocs. Bypassing GWM
  150. malloc will get rid of any compiling errors anyways.
  151.  
  152. ------------------------------------------------------------------------------
  153.  
  154. [11] GWM crashes on a HP/Apollo 68040:
  155. ======================================
  156. with:
  157. C source file "malloc.c" line 415
  158. WOOL ERROR: assertion failed: op -> ov_magic == MAGIC
  159. GWM: -- cannot decorate windows, aborting
  160.  
  161. apply this patch:
  162.  
  163. % diff -c gwm.c.orig gwm.c
  164. *** gwm.c.orig    Sun Oct 13 14:37:02 1991
  165. --- gwm.c    Sun Oct 13 14:37:45 1991
  166. ***************
  167. *** 720,727 ****
  168.           }
  169.           }
  170.           GWM_ProcessingExistingWindows = 0;
  171. !         if (children)
  172. !         Free((char *) children);
  173.       }
  174.       }END_OF_ALL_SCREENS;
  175.   }
  176. --- 720,727 ----
  177.           }
  178.           }
  179.           GWM_ProcessingExistingWindows = 0;
  180. ! /*        if (children)            */
  181. ! /*        Free((char *) children);    */
  182.       }
  183.       }END_OF_ALL_SCREENS;
  184.   }
  185.  
  186. ------------------------------------------------------------------------------
  187.  
  188. [12] Compiling on a NeXT with c-Xist:
  189. =====================================
  190.  
  191. To: colas@mirsa.inria.fr
  192. Subject: GWM1.7n on NeXT
  193. Date: Mon, 12 Oct 92 13:33:29 -0400
  194. From: anderson@sapir.cog.jhu.edu
  195.  
  196. Colas,
  197.  
  198. I used to use gwm regularly when I used a Sun - a year ago, though, I
  199. got rid of my Sun and switched to a NeXT. Until recently, I didn't use
  200. X of any sort on my NeXT, but I've installed co-Xist and its
  201. associated development environment now, so I thought I'd bring up gwm
  202. again. You asked that if people bring up gwm on a new machine, they
  203. let you know what had to be done to get it to work, so here's a data
  204. point for you.
  205.  
  206. I started from the file gwm-1.7n.tar.Z which I found on export. I
  207. tried using imake to build it but found it too hard to make the
  208. necessary modifications. The other procedure, with plain make, worked
  209. fine (after I figured out how to do it).
  210.  
  211. The version of c-Xist I'm using is 3.0 beta - not yet released, but
  212. coming out soon and presently in beta test. This is a full
  213. implementation of X11R5 (the current release version is 2.1.2, based
  214. on X11R4). I'm running version 3.0 of NeXTstep on a NeXTdimension
  215. (full color) system. The system software (cc, etc.) is based on gcc
  216. 1.9x: i.e., a pre-release version of gcc2 with lots of
  217. (undocumented...) NeXT-specific stuff.
  218.  
  219. I managed to get gwm to compile under this setup with the following
  220. set of defines:
  221.  
  222. DEFINES = -DX11R5 -DSECURE -DUSER_DEBUG -DHAS_STRCHR -DDO_NOT_REDEFINE_MALLOC -DNO_STRUCTURE_OFFSETS
  223.  
  224. Each of the changes from your proposed "vanilla bsd" defines was
  225. necessary to get some part of gwm to compile. I didn't try
  226. "-DUSE_STANDARD_MALLOC" instead of "-DDO_NOT_REDEFINE_MALLOC", but at
  227. least the latter works.
  228.  
  229. I used plain cc (no "-traditional": that breaks the rather wierd new
  230. setup of include files under NS3.0, and isn't necesary anyway). The
  231. only other changes I made in the Make.NeXT file were to put stuff in
  232. /usr/bin/X11 and /usr/lib/X11 (instead of /usr/local/...) because
  233. that's where all the co-Xist stuff lives anyway.
  234.  
  235. I haven't tested it at all extensively, but I do know that it runs and
  236. seems to behave as it should. Thanks a lot for your efforts. I should
  237. mention also that once I stopped trying to be clever and just did what
  238. your directions told me to do, building gwm from this distribution
  239. turned out to be very straightforward.
  240.  
  241. Best regards,
  242. --Steve Anderson
  243. Dept. of Cognitive Science
  244. The Johns Hopkins University
  245. <anderson@sapir.cog.jhu.edu>
  246.  
  247. ------------------------------------------------------------------------------
  248.  
  249. [13] Compiling with FLEX instead of LEX
  250. =======================================
  251.  
  252. use wool.flex intead of wool.lex
  253. (Code donated by Olaf Kirch <okir@mathematik.th-darmstadt.de>)
  254.  
  255. ------------------------------------------------------------------------------
  256.  
  257. [14] makdepend complains: includes EXTERN.h more than once!
  258. ===========================================================
  259.  
  260. That's normal. Gwm uses EXTERN.h and INTERN.h to better manage public/private
  261. info in .h, which was not intended by makedepend. ignore these messages.
  262.  
  263. ------------------------------------------------------------------------------
  264.  
  265. [15] runtime WOOL ERROR: Internal error: bus error: (color-make value)
  266. ======================================================================
  267.  
  268. seems to happen on some SUNs. define either (first one perhaps better)
  269.       -DUSE_STANDARD_MALLOC
  270. or    -DDOUBLE_ALIGN
  271.  
  272. ------------------------------------------------------------------------------
  273.  
  274. [16] Undefined function XmbTextPropertyToTextList at link time
  275. ==============================================================
  276.  
  277. You have X11R5 X11 libraries. Upgrade to X11R6, or add the compile flag -DX11R5
  278.