File: PROBLEMS

package info (click to toggle)
gwm 1.8d-2
  • links: PTS
  • area: main
  • in suites: potato, woody
  • size: 5,120 kB
  • ctags: 3,030
  • sloc: ansic: 19,617; makefile: 1,763; lisp: 437; sh: 321; ml: 21
file content (280 lines) | stat: -rw-r--r-- 9,989 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
  ____                      _ _       _   _             
 / ___|___  _ __ ___  _ __ (_) | __ _| |_(_) ___  _ __  
| |   / _ \| '_ ` _ \| '_ \| | |/ _` | __| |/ _ \| '_ \ 
| |__| (_) | | | | | | |_) | | | (_| | |_| | (_) | | | |
 \____\___/|_| |_| |_| .__/|_|_|\__,_|\__|_|\___/|_| |_|
                     |_|                                
 ____            _     _                    
|  _ \ _ __ ___ | |__ | | ___ _ __ ___  ___ 
| |_) | '__/ _ \| '_ \| |/ _ \ '_ ` _ \/ __|
|  __/| | | (_) | |_) | |  __/ | | | | \__ \
|_|   |_|  \___/|_.__/|_|\___|_| |_| |_|___/
                                            


/*****************************************************************************\
* 				   CONTENTS                                   *
\*****************************************************************************/

[1] Errors while compiling parsers
[2] Compiling on DEC alphas
[3] Compiling on GWM and XPM on HP9000 series 300/400/800 computers
[4] Undefined function: strcasecmp when linking
[5] Error message when loading gwm ld: unrecognized option: -p
[6] Errors on SPARCS (sun4) bus error in (color-make value)
[7] Error in loading: gwm not linked with Xlib
[8] On HP machines: /bin/ld: Unsatisfied symbols:   XError (data)
[9] Error in wl_event.c after line 80
[10] Type errors in malloc.c
[11] GWM crashes on a HP/Apollo 68040:
[12] Compiling on a NeXT with c-Xist:
[13] Compiling with FLEX instead of LEX
[14] makdepend complains: includes EXTERN.h more than once!
[15] runtime WOOL ERROR: Internal error: bus error: (color-make value)
[16] Undefined function XmbTextPropertyToTextList at link time


/*****************************************************************************\
* 				   DETAILS                                    *
\*****************************************************************************/

[1] Errors while compiling parsers
==================================

Gwm can ONLY run with standard lex and yacc, it cannot work with flex, bison,
byacc or others. If you dont have them (linux, FreeBSD, NetBSD...) do a:

      cp gwm-parsers/lex.yy.c . ; cp gwm-parsers/y.tab.c

and all should work OK.

[2] Compiling on DEC alphas
===========================

GWM may not run on 64-bit machines where integers are not the same size as
pointers (DEC alphas, but runs ok on SGI R4000s). If there are
problems, try either the define -DLONG_ALIGN, or the -taso flag, or
the -misaligned flag, or compile it on a DEC 5000 and translate the
32-bit binary with the "mx" utility.

[3] Compiling on GWM and XPM on HP9000 series 300/400/800 computers
===================================================================

Makefile for hp300:

XLIBDIR   =
C_COMPILER= gcc -pipe -traditional
DEFINES = -DSYSV -DX11R4 -DSECURE -DSTATS -DUSER_DEBUG

Makefile for hp800:

XLIBDIR   =
LIBS = -lX11R3 hpXError.o
DEFINES = -DSYSV -DX11R3 -DSECURE -DSTATS -DUSER_DEBUG

------------------------------------------------------------------------------

[4] Undefined function: strcasecmp when linking
===============================================

add the flag -DNEED_STRCASECMP to the makefile (needed only in the
subdirectory xpm, actually).

------------------------------------------------------------------------------

[5] Error message when loading gwm ld: unrecognized option: -p
==============================================================
ld: unrecognized option: -p
ld: unrecognized option: -m

in Makefile, change -Lxpm by -L xpm

------------------------------------------------------------------------------

[6] Errors on SPARCS (sun4) bus error in (color-make value)
===========================================================

* GWM seemed to crash when compiled with -O with SUN's cc

* do NOT compile with the cc flags "-dalign", or use the define -DDOUBLE_ALIGN
  Symptom: at runtime gwm crashes with message:

      WOOL ERROR: Internal error: bus error
      [5] (color-make value)


------------------------------------------------------------------------------

[7] Error in loading: gwm not linked with Xlib
==============================================

(a lot of _X... undefined references)
Might happen, just do a 

      rm -f gwm;make

------------------------------------------------------------------------------

[8] On HP machines: /bin/ld: Unsatisfied symbols:   XError (data)
=================================================================

change in gwm.c line 34:

extern XErrorHandler XError;

to:

extern int XError();

------------------------------------------------------------------------------

[9] Error in wl_event.c after line 80
=====================================

add -DNO_STRUCTURE_OFFSETS to DEFINES

------------------------------------------------------------------------------

[10] Type errors in malloc.c
============================
malloc.c:286: conflicting types for `malloc'
wool.h:200: previous declaration of `malloc'
malloc.c:490: conflicting types for `realloc'
wool.h:200: previous declaration of `realloc'
malloc.c:536: conflicting types for `calloc'
wool.h:200: previous declaration of `calloc'

===> add -DVOID_MALLOC to compile options.

Any other errors: use -DUSE_STANDARD_MALLOC. This bypasses the gwm-provided
malloc which provided debugging (stats) info, and was much faster than old
SYSV mallocs, but is no more faster than most modern mallocs. Bypassing GWM
malloc will get rid of any compiling errors anyways.

------------------------------------------------------------------------------

[11] GWM crashes on a HP/Apollo 68040:
======================================
with:
C source file "malloc.c" line 415
WOOL ERROR: assertion failed: op -> ov_magic == MAGIC
GWM: -- cannot decorate windows, aborting

apply this patch:

% diff -c gwm.c.orig gwm.c
*** gwm.c.orig	Sun Oct 13 14:37:02 1991
--- gwm.c	Sun Oct 13 14:37:45 1991
***************
*** 720,727 ****
  		}
  	    }
  	    GWM_ProcessingExistingWindows = 0;
! 	    if (children)
! 		Free((char *) children);
  	}
      }END_OF_ALL_SCREENS;
  }
--- 720,727 ----
  		}
  	    }
  	    GWM_ProcessingExistingWindows = 0;
! /*	    if (children)			*/
! /*		Free((char *) children);	*/
  	}
      }END_OF_ALL_SCREENS;
  }

------------------------------------------------------------------------------

[12] Compiling on a NeXT with c-Xist:
=====================================

To: colas@mirsa.inria.fr
Subject: GWM1.7n on NeXT
Date: Mon, 12 Oct 92 13:33:29 -0400
From: anderson@sapir.cog.jhu.edu

Colas,

I used to use gwm regularly when I used a Sun - a year ago, though, I
got rid of my Sun and switched to a NeXT. Until recently, I didn't use
X of any sort on my NeXT, but I've installed co-Xist and its
associated development environment now, so I thought I'd bring up gwm
again. You asked that if people bring up gwm on a new machine, they
let you know what had to be done to get it to work, so here's a data
point for you.

I started from the file gwm-1.7n.tar.Z which I found on export. I
tried using imake to build it but found it too hard to make the
necessary modifications. The other procedure, with plain make, worked
fine (after I figured out how to do it).

The version of c-Xist I'm using is 3.0 beta - not yet released, but
coming out soon and presently in beta test. This is a full
implementation of X11R5 (the current release version is 2.1.2, based
on X11R4). I'm running version 3.0 of NeXTstep on a NeXTdimension
(full color) system. The system software (cc, etc.) is based on gcc
1.9x: i.e., a pre-release version of gcc2 with lots of
(undocumented...) NeXT-specific stuff.

I managed to get gwm to compile under this setup with the following
set of defines:

DEFINES = -DX11R5 -DSECURE -DUSER_DEBUG -DHAS_STRCHR -DDO_NOT_REDEFINE_MALLOC -DNO_STRUCTURE_OFFSETS

Each of the changes from your proposed "vanilla bsd" defines was
necessary to get some part of gwm to compile. I didn't try
"-DUSE_STANDARD_MALLOC" instead of "-DDO_NOT_REDEFINE_MALLOC", but at
least the latter works.

I used plain cc (no "-traditional": that breaks the rather wierd new
setup of include files under NS3.0, and isn't necesary anyway). The
only other changes I made in the Make.NeXT file were to put stuff in
/usr/bin/X11 and /usr/lib/X11 (instead of /usr/local/...) because
that's where all the co-Xist stuff lives anyway.

I haven't tested it at all extensively, but I do know that it runs and
seems to behave as it should. Thanks a lot for your efforts. I should
mention also that once I stopped trying to be clever and just did what
your directions told me to do, building gwm from this distribution
turned out to be very straightforward.

Best regards,
--Steve Anderson
Dept. of Cognitive Science
The Johns Hopkins University
<anderson@sapir.cog.jhu.edu>

------------------------------------------------------------------------------

[13] Compiling with FLEX instead of LEX
=======================================

use wool.flex intead of wool.lex
(Code donated by Olaf Kirch <okir@mathematik.th-darmstadt.de>)

------------------------------------------------------------------------------

[14] makdepend complains: includes EXTERN.h more than once!
===========================================================

That's normal. Gwm uses EXTERN.h and INTERN.h to better manage public/private
info in .h, which was not intended by makedepend. ignore these messages.

------------------------------------------------------------------------------

[15] runtime WOOL ERROR: Internal error: bus error: (color-make value)
======================================================================

seems to happen on some SUNs, notably Solaris ones. define:
      -DUSE_STANDARD_MALLOC
and recompile EVERYTHING (do a make clean before make)

------------------------------------------------------------------------------

[16] Undefined function XmbTextPropertyToTextList at link time
==============================================================

You have X11R5 X11 libraries. Upgrade to X11R6, or add the compile flag -DX11R5
: